#1797 TOF-Acc Sat Plot: Add mouse tracking with data info

This commit is contained in:
Bjørnar Grip Fjær 2017-08-22 13:11:50 +02:00
parent 6e1e55ffba
commit a9b316febb

View File

@ -23,6 +23,7 @@
#include "RimTofAccumulatedPhaseFractionsPlot.h"
#include "RiuMainWindow.h"
#include "RiuQwtCurvePointTracker.h"
#include "cafSelectionManager.h"
@ -30,6 +31,7 @@
#include "qwt_legend.h"
#include "qwt_plot_grid.h"
#include "qwt_plot_layout.h"
#include <QFocusEvent>
#include <QHBoxLayout>
@ -266,9 +268,9 @@ void RiuTofAccumulatedPhaseFractionsPlot::setCommonPlotBehaviour(QwtPlot* plot)
plot->canvas()->setMouseTracking(true);
plot->canvas()->installEventFilter(plot);
// plot->plotLayout()->setAlignCanvasToScales(true);
plot->plotLayout()->setAlignCanvasToScales(true);
// new RiuQwtCurvePointTracker(plot, true);
new RiuQwtCurvePointTracker(plot, true);
}
//--------------------------------------------------------------------------------------------------