Bug fix: curve point tracker not always on top of all curves

This commit is contained in:
Ruben Thoms
2020-10-19 11:06:01 +02:00
committed by Magne Sjaastad
parent 08b4fec678
commit 69a2bc673a

View File

@@ -45,6 +45,10 @@ RiuQwtCurvePointTracker::RiuQwtCurvePointTracker( QwtPlot* pl
this->setTrackerMode( QwtPicker::AlwaysOn );
m_plotMarker = new QwtPlotMarker;
// Have this marker always on top of all curves/plot items.
double zAlwaysOnTop = 99999999;
m_plotMarker->setZ( zAlwaysOnTop );
auto color = RiuGuiTheme::getColorByVariableName( "markerColor" );
// QwtPlotMarker takes ownership of the symbol, it is deleted in destructor of QwtPlotMarker