Skip to content

Commit

Permalink
(#396) Added panning of the depth axis (left mouse button + move)
Browse files Browse the repository at this point in the history
  • Loading branch information
palhagen committed Aug 31, 2015
1 parent f186e07 commit adba5ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "qwt_plot_grid.h"
#include "qwt_scale_engine.h"
#include "qwt_plot_magnifier.h"
#include "qwt_plot_panner.h"

//--------------------------------------------------------------------------------------------------
///
Expand All @@ -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();
}
Expand Down

0 comments on commit adba5ba

Please sign in to comment.