(#396) Handling scroll wheel event to zoom all well log trace plots

This commit is contained in:
Pål Hagen
2015-09-01 11:14:58 +02:00
parent 8485e76bf5
commit ba1b2ec110
4 changed files with 69 additions and 10 deletions

View File

@@ -24,7 +24,9 @@
class RimWellLogPlot;
class RiuWellLogTracePlot;
class QHBoxLayout;
class QWheelEvent;
//==================================================================================================
//
@@ -36,18 +38,22 @@ class RiuWellLogPlot : public QWidget
Q_OBJECT
public:
RiuWellLogPlot(QWidget* parent = NULL);
RiuWellLogPlot(RimWellLogPlot* dataModelPlot, QWidget* parent = NULL);
virtual ~RiuWellLogPlot();
RiuWellLogTracePlot* createTracePlot();
void setDepthRange(double minDepth, double maxDepth);
protected:
void wheelEvent(QWheelEvent* event);
private:
void setDefults();
private:
QHBoxLayout* m_layout;
QHBoxLayout* m_layout;
QList<RiuWellLogTracePlot*> m_tracePlots;
RimWellLogPlot* m_dataModelPlot;
};