#9369 Curve Probing: Show data from other curves in tooltip text

Optionally show data from other curves in tooltip text when hoovering over a curve point
This commit is contained in:
Magne Sjaastad
2022-10-17 19:48:24 +02:00
parent 7c2941aedd
commit 760bfaeec2
19 changed files with 268 additions and 57 deletions

View File

@@ -219,6 +219,15 @@ QPointF RiuQwtCurvePointTracker::closestCurvePoint( const QPoint& cursorPosition
{
*valueAxisValueString = valueAxisScaleDraw->label( valueAxisSampleVal ).text();
}
auto additionalText = m_curveInfoTextProvider->additionalText( dynamic_cast<RiuPlotCurve*>( closestCurve ),
closestPointSampleIndex );
if ( !additionalText.isEmpty() )
{
*valueAxisValueString += "\n";
*valueAxisValueString += additionalText;
}
}
return samplePoint;