mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user