(#396) Using white background color in plot widget and plot canvas

This commit is contained in:
Pål Hagen 2015-08-31 09:34:41 +02:00
parent c065b8350c
commit 6362ffa311
3 changed files with 20 additions and 0 deletions

View File

@ -41,6 +41,9 @@ public:
RiuWellLogTracePlot* createTracePlot();
private:
void setDefults();
private:
QHBoxLayout* m_layout;
QList<RiuWellLogTracePlot*> m_tracePlots;

View File

@ -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);
}

View File

@ -34,5 +34,7 @@ public:
RiuWellLogTracePlot(QWidget* parent = NULL);
virtual ~RiuWellLogTracePlot();
private:
void setDefaults();
};