(#396) Added panning of the depth axis (left mouse button + move)

This commit is contained in:
Pål Hagen 2015-08-31 14:54:48 +02:00
parent f186e07742
commit adba5ba6fc

View File

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