(#396) Stopped using Qwt-based magnifier

This commit is contained in:
Pål Hagen 2015-09-01 11:16:59 +02:00
parent ba1b2ec110
commit eee14d790b

View File

@ -22,7 +22,6 @@
#include "qwt_plot_grid.h"
#include "qwt_legend.h"
#include "qwt_scale_engine.h"
#include "qwt_plot_magnifier.h"
#include "qwt_plot_panner.h"
//--------------------------------------------------------------------------------------------------
@ -36,13 +35,6 @@ RiuWellLogTracePlot::RiuWellLogTracePlot(QWidget* parent)
m_legend = new QwtLegend(this);
insertLegend(m_legend, QwtPlot::TopLegend);
QwtPlotMagnifier* magnifierDepth = new QwtPlotMagnifier(canvas());
magnifierDepth->setWheelModifiers(Qt::ControlModifier);
magnifierDepth->setAxisEnabled(QwtPlot::yLeft, true);
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);