mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add option to avoid updating parent plot
This commit is contained in:
parent
71deeb8954
commit
e416d6557a
@ -135,7 +135,7 @@ void RimPlotCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedField, con
|
|||||||
{
|
{
|
||||||
if (changedField == &m_showCurve)
|
if (changedField == &m_showCurve)
|
||||||
{
|
{
|
||||||
this->updateCurveVisibility();
|
this->updateCurveVisibility(true);
|
||||||
if (m_showCurve()) loadDataAndUpdate(true);
|
if (m_showCurve()) loadDataAndUpdate(true);
|
||||||
}
|
}
|
||||||
else if (changedField == &m_curveName)
|
else if (changedField == &m_curveName)
|
||||||
@ -180,7 +180,7 @@ caf::PdmFieldHandle* RimPlotCurve::objectToggleField()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimPlotCurve::updateCurveVisibility()
|
void RimPlotCurve::updateCurveVisibility(bool updateParent)
|
||||||
{
|
{
|
||||||
bool isVisibleInPossibleParent = true;
|
bool isVisibleInPossibleParent = true;
|
||||||
|
|
||||||
@ -199,7 +199,10 @@ void RimPlotCurve::updateCurveVisibility()
|
|||||||
m_qwtPlotCurve->detach();
|
m_qwtPlotCurve->detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
updateZoomInParentPlot();
|
if (updateParent)
|
||||||
|
{
|
||||||
|
updateZoomInParentPlot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -207,7 +210,7 @@ void RimPlotCurve::updateCurveVisibility()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimPlotCurve::updateCurvePresentation(bool updatePlotLegend)
|
void RimPlotCurve::updateCurvePresentation(bool updatePlotLegend)
|
||||||
{
|
{
|
||||||
this->updateCurveVisibility();
|
this->updateCurveVisibility(updatePlotLegend);
|
||||||
|
|
||||||
if (updatePlotLegend)
|
if (updatePlotLegend)
|
||||||
{
|
{
|
||||||
|
@ -92,7 +92,7 @@ public:
|
|||||||
|
|
||||||
QString curveName() const { return m_curveName; }
|
QString curveName() const { return m_curveName; }
|
||||||
|
|
||||||
void updateCurveVisibility();
|
void updateCurveVisibility(bool updateParent);
|
||||||
void updateLegendEntryVisibilityAndPlotLegend();
|
void updateLegendEntryVisibilityAndPlotLegend();
|
||||||
void updateLegendEntryVisibilityNoPlotUpdate();
|
void updateLegendEntryVisibilityNoPlotUpdate();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user