#8662 QtCharts: Implement tooltip when hovering over curves

This commit is contained in:
Kristian Bendiksen
2022-03-11 16:02:30 +01:00
parent 560917a481
commit c00aea75fb
14 changed files with 365 additions and 56 deletions

View File

@@ -20,6 +20,7 @@
#include "RiaPreferences.h"
#include "RimEnsembleCurveInfoTextProvider.h"
#include "RimSummaryPlot.h"
#include "RiuPlotCurve.h"
@@ -32,7 +33,7 @@
RiuSummaryQtChartsPlot::RiuSummaryQtChartsPlot( RimSummaryPlot* plot )
: RiuSummaryPlot( plot )
{
m_plotWidget = new RiuQtChartsPlotWidget( plot );
m_plotWidget = new RiuQtChartsPlotWidget( plot, nullptr, new RimEnsembleCurveInfoTextProvider );
m_plotWidget->setContextMenuPolicy( Qt::CustomContextMenu );
connect( m_plotWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( showContextMenu( QPoint ) ) );
@@ -43,7 +44,6 @@ RiuSummaryQtChartsPlot::RiuSummaryQtChartsPlot( RimSummaryPlot* plot )
m_plotWidget->setInternalLegendVisible( true );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------