mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#396) Using white background color in plot widget and plot canvas
This commit is contained in:
parent
c065b8350c
commit
6362ffa311
@ -41,6 +41,9 @@ public:
|
||||
|
||||
RiuWellLogTracePlot* createTracePlot();
|
||||
|
||||
private:
|
||||
void setDefults();
|
||||
|
||||
private:
|
||||
QHBoxLayout* m_layout;
|
||||
QList<RiuWellLogTracePlot*> m_tracePlots;
|
||||
|
@ -25,6 +25,7 @@
|
||||
RiuWellLogTracePlot::RiuWellLogTracePlot(QWidget* parent)
|
||||
: QwtPlot(parent)
|
||||
{
|
||||
setDefaults();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -33,3 +34,17 @@ RiuWellLogTracePlot::RiuWellLogTracePlot(QWidget* parent)
|
||||
RiuWellLogTracePlot::~RiuWellLogTracePlot()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuWellLogTracePlot::setDefaults()
|
||||
{
|
||||
QPalette newPalette(palette());
|
||||
newPalette.setColor(QPalette::Background, Qt::white);
|
||||
setPalette(newPalette);
|
||||
|
||||
setAutoFillBackground(true);
|
||||
setCanvasBackground(Qt::white);
|
||||
}
|
||||
|
@ -34,5 +34,7 @@ public:
|
||||
RiuWellLogTracePlot(QWidget* parent = NULL);
|
||||
virtual ~RiuWellLogTracePlot();
|
||||
|
||||
private:
|
||||
void setDefaults();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user