mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
(#396) Added grid to well log trace plot. Using light gray solid lines.
This commit is contained in:
parent
2bac87972f
commit
513e9d9075
@ -19,12 +19,17 @@
|
||||
|
||||
#include "RiuWellLogTracePlot.h"
|
||||
|
||||
#include "qwt_plot_grid.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuWellLogTracePlot::RiuWellLogTracePlot(QWidget* parent)
|
||||
: QwtPlot(parent)
|
||||
{
|
||||
m_grid = new QwtPlotGrid();
|
||||
m_grid->attach(this);
|
||||
|
||||
setDefaults();
|
||||
}
|
||||
|
||||
@ -33,6 +38,8 @@ RiuWellLogTracePlot::RiuWellLogTracePlot(QWidget* parent)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuWellLogTracePlot::~RiuWellLogTracePlot()
|
||||
{
|
||||
m_grid->detach();
|
||||
delete m_grid;
|
||||
}
|
||||
|
||||
|
||||
@ -53,4 +60,8 @@ void RiuWellLogTracePlot::setDefaults()
|
||||
{
|
||||
canvasFrame->setFrameShape(QFrame::NoFrame);
|
||||
}
|
||||
|
||||
QPen gridPen(Qt::SolidLine);
|
||||
gridPen.setColor(Qt::lightGray);
|
||||
m_grid->setPen(gridPen);
|
||||
}
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
#include "qwt_plot.h"
|
||||
|
||||
class QwtPlotGrid;
|
||||
|
||||
//==================================================================================================
|
||||
//
|
||||
// RiuWellLogTracePlot
|
||||
@ -36,5 +38,8 @@ public:
|
||||
|
||||
private:
|
||||
void setDefaults();
|
||||
|
||||
private:
|
||||
QwtPlotGrid* m_grid;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user