mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
#1797 TOF-Acc Sat Plot: Add mouse tracking with data info
This commit is contained in:
parent
6e1e55ffba
commit
a9b316febb
@ -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);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user