mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#396) Added panning of the depth axis (left mouse button + move)
This commit is contained in:
parent
f186e07742
commit
adba5ba6fc
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user