mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 00:42:12 -05:00
#4326 Invert Grid Cross Plot Y-axis when displaying DEPTH
This commit is contained in:
1 parent
86e20df7c6
commit
c8184065e3
2 files changed
+19
No files matched your search
@@ -884,6 +884,23 @@ void RimGridCrossPlotDataSet::fieldChangedByUi(const caf::PdmFieldHandle* change
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimGridCrossPlotDataSet::childFieldChangedByUi(const caf::PdmFieldHandle* changedChildField)
|
||||||
|
{
|
||||||
|
if (changedChildField == &m_yAxisProperty)
|
||||||
|
{
|
||||||
|
if (m_yAxisProperty->resultVariable() == "DEPTH")
|
||||||
|
{
|
||||||
|
RimGridCrossPlot* plot;
|
||||||
|
this->firstAncestorOrThisOfTypeAsserted(plot);
|
||||||
|
plot->setYAxisInverted(true);
|
||||||
|
triggerPlotNameUpdateAndReplot();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -149,6 +149,8 @@ protected:
|
|||||||
|
|
||||||
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
||||||
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||||
|
void childFieldChangedByUi(const caf::PdmFieldHandle* changedChildField) override;
|
||||||
|
|
||||||
QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions,
|
QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions,
|
||||||
bool* useOptionsOnly) override;
|
bool* useOptionsOnly) override;
|
||||||
void triggerPlotNameUpdateAndReplot();
|
void triggerPlotNameUpdateAndReplot();
|
||||||
|
|||||||
Reference in new issue
Block a user