mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9591 Janitor: remove unused parameter in RiuPlotWigdet::createPlotCurve.
This commit is contained in:
parent
7d3fbf1234
commit
6b631b3d5a
@ -1139,7 +1139,7 @@ void RimPlotCurve::setParentPlotNoReplot( RiuPlotWidget* plotWidget )
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto color = RiaColorTools::toQColor( m_curveAppearance->color() );
|
auto color = RiaColorTools::toQColor( m_curveAppearance->color() );
|
||||||
m_plotCurve = m_parentPlot->createPlotCurve( this, "", color );
|
m_plotCurve = m_parentPlot->createPlotCurve( this, "" );
|
||||||
m_plotCurve->updateErrorBarsAppearance( m_showErrorBars, color );
|
m_plotCurve->updateErrorBarsAppearance( m_showErrorBars, color );
|
||||||
|
|
||||||
// PERFORMANCE NOTE
|
// PERFORMANCE NOTE
|
||||||
|
@ -561,7 +561,7 @@ void RimVfpPlot::populatePlotWidgetWithPlotData( RiuPlotWidget* plotWidget, cons
|
|||||||
for ( auto idx = 0u; idx < plotData.size(); idx++ )
|
for ( auto idx = 0u; idx < plotData.size(); idx++ )
|
||||||
{
|
{
|
||||||
QColor qtClr = RiaColorTables::summaryCurveDefaultPaletteColors().cycledQColor( idx );
|
QColor qtClr = RiaColorTables::summaryCurveDefaultPaletteColors().cycledQColor( idx );
|
||||||
RiuPlotCurve* curve = m_plotWidget->createPlotCurve( nullptr, plotData.curveTitle( idx ), qtClr );
|
RiuPlotCurve* curve = m_plotWidget->createPlotCurve( nullptr, plotData.curveTitle( idx ) );
|
||||||
|
|
||||||
curve->setAppearance( RiuQwtPlotCurveDefines::LineStyleEnum::STYLE_SOLID,
|
curve->setAppearance( RiuQwtPlotCurveDefines::LineStyleEnum::STYLE_SOLID,
|
||||||
RiuQwtPlotCurveDefines::CurveInterpolationEnum::INTERPOLATION_POINT_TO_POINT,
|
RiuQwtPlotCurveDefines::CurveInterpolationEnum::INTERPOLATION_POINT_TO_POINT,
|
||||||
|
@ -1740,8 +1740,7 @@ void RimEnsembleCurveSet::updateEnsembleCurves( const std::vector<RimSummaryCase
|
|||||||
|
|
||||||
if ( !m_plotCurveForLegendText )
|
if ( !m_plotCurveForLegendText )
|
||||||
{
|
{
|
||||||
m_plotCurveForLegendText =
|
m_plotCurveForLegendText = plot->plotWidget()->createPlotCurve( nullptr, "" );
|
||||||
plot->plotWidget()->createPlotCurve( nullptr, "", RiaColorTools::toQColor( m_color ) );
|
|
||||||
}
|
}
|
||||||
m_plotCurveForLegendText->attachToPlot( plot->plotWidget() );
|
m_plotCurveForLegendText->attachToPlot( plot->plotWidget() );
|
||||||
updateEnsembleLegendItem();
|
updateEnsembleLegendItem();
|
||||||
|
@ -179,7 +179,7 @@ public:
|
|||||||
|
|
||||||
virtual void updateAxes() = 0;
|
virtual void updateAxes() = 0;
|
||||||
|
|
||||||
virtual RiuPlotCurve* createPlotCurve( RimPlotCurve* ownerRimCurve, const QString& title, const QColor& color ) = 0;
|
virtual RiuPlotCurve* createPlotCurve( RimPlotCurve* ownerRimCurve, const QString& title ) = 0;
|
||||||
|
|
||||||
virtual const QColor& backgroundColor() const = 0;
|
virtual const QColor& backgroundColor() const = 0;
|
||||||
|
|
||||||
|
@ -832,7 +832,7 @@ void RiuQtChartsPlotWidget::updateAxes()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiuPlotCurve* RiuQtChartsPlotWidget::createPlotCurve( RimPlotCurve* ownerRimCurve, const QString& title, const QColor& color )
|
RiuPlotCurve* RiuQtChartsPlotWidget::createPlotCurve( RimPlotCurve* ownerRimCurve, const QString& title )
|
||||||
{
|
{
|
||||||
return new RiuQtChartsPlotCurve( ownerRimCurve, title );
|
return new RiuQtChartsPlotCurve( ownerRimCurve, title );
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ public:
|
|||||||
void updateLegend() override;
|
void updateLegend() override;
|
||||||
void updateAxes() override;
|
void updateAxes() override;
|
||||||
|
|
||||||
RiuPlotCurve* createPlotCurve( RimPlotCurve* ownerRimCurve, const QString& title, const QColor& color ) override;
|
RiuPlotCurve* createPlotCurve( RimPlotCurve* ownerRimCurve, const QString& title ) override;
|
||||||
|
|
||||||
QtCharts::QChart* qtChart();
|
QtCharts::QChart* qtChart();
|
||||||
|
|
||||||
|
@ -1326,7 +1326,7 @@ RiuPlotAxis RiuQwtPlotWidget::createNextPlotAxis( RiaDefines::PlotAxis axis )
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiuPlotCurve* RiuQwtPlotWidget::createPlotCurve( RimPlotCurve* ownerRimCurve, const QString& title, const QColor& color )
|
RiuPlotCurve* RiuQwtPlotWidget::createPlotCurve( RimPlotCurve* ownerRimCurve, const QString& title )
|
||||||
{
|
{
|
||||||
return new RiuQwtPlotCurve( ownerRimCurve, title );
|
return new RiuQwtPlotCurve( ownerRimCurve, title );
|
||||||
}
|
}
|
||||||
|
@ -157,7 +157,7 @@ public:
|
|||||||
void updateLegend() override;
|
void updateLegend() override;
|
||||||
void updateAxes() override;
|
void updateAxes() override;
|
||||||
|
|
||||||
RiuPlotCurve* createPlotCurve( RimPlotCurve* ownerRimCurve, const QString& title, const QColor& color ) override;
|
RiuPlotCurve* createPlotCurve( RimPlotCurve* ownerRimCurve, const QString& title ) override;
|
||||||
|
|
||||||
void detachItems( RiuPlotWidget::PlotItemType plotItemType ) override;
|
void detachItems( RiuPlotWidget::PlotItemType plotItemType ) override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user