mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1829 Summary: Update name and plot when changing case in a summary curve
This commit is contained in:
parent
ee25b8424d
commit
e97a8ccb87
@ -535,6 +535,11 @@ void RimSummaryCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
|
||||
|
||||
plot->updateAxes();
|
||||
}
|
||||
else if (changedField == &m_summaryCase)
|
||||
{
|
||||
plot->updateCaseNameHasChanged();
|
||||
this->onLoadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -767,7 +767,7 @@ void RimSummaryPlot::addCurve(RimSummaryCurve* curve)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlot::removeCurve(RimSummaryCurve* curve)
|
||||
void RimSummaryPlot::deleteCurve(RimSummaryCurve* curve)
|
||||
{
|
||||
if (curve)
|
||||
{
|
||||
@ -801,7 +801,7 @@ void RimSummaryPlot::removeCurvesAssosiatedWithCase(RimSummaryCase* summaryCase)
|
||||
}
|
||||
for (RimSummaryCurve* summaryCurve : summaryCurvesToDelete)
|
||||
{
|
||||
removeCurve(summaryCurve);
|
||||
deleteCurve(summaryCurve);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,6 +60,7 @@ public:
|
||||
QString description() const;
|
||||
|
||||
void addCurve(RimSummaryCurve* curve);
|
||||
void deleteCurve(RimSummaryCurve* curve);
|
||||
void addCurveFilter(RimSummaryCurveFilter* curveFilter);
|
||||
void removeCurvesAssosiatedWithCase(RimSummaryCase* summaryCase);
|
||||
|
||||
@ -118,8 +119,6 @@ private:
|
||||
void updateTimeAxis();
|
||||
void setZoomIntervalsInQwtPlot();
|
||||
|
||||
void removeCurve(RimSummaryCurve* curve);
|
||||
|
||||
// RimViewWindow overrides
|
||||
|
||||
virtual QWidget* createViewWidget(QWidget* mainWindowParent) override;
|
||||
|
Loading…
Reference in New Issue
Block a user