From adba5ba6fca94efb2178f829b80c405ea3bd4721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Mon, 31 Aug 2015 14:54:48 +0200 Subject: [PATCH] (#396) Added panning of the depth axis (left mouse button + move) --- ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp b/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp index b88adfd23b..18ed8d5f83 100644 --- a/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp @@ -22,6 +22,7 @@ #include "qwt_plot_grid.h" #include "qwt_scale_engine.h" #include "qwt_plot_magnifier.h" +#include "qwt_plot_panner.h" //-------------------------------------------------------------------------------------------------- /// @@ -38,6 +39,12 @@ RiuWellLogTracePlot::RiuWellLogTracePlot(QWidget* parent) magnifierDepth->setAxisEnabled(QwtPlot::yRight, false); magnifierDepth->setAxisEnabled(QwtPlot::xTop, false); magnifierDepth->setAxisEnabled(QwtPlot::xBottom, false); + + QwtPlotPanner* panner = new QwtPlotPanner(canvas()); + panner->setAxisEnabled(QwtPlot::yLeft, true); + panner->setAxisEnabled(QwtPlot::yRight, false); + panner->setAxisEnabled(QwtPlot::xTop, false); + panner->setAxisEnabled(QwtPlot::xBottom, false); setDefaults(); }