mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4326 Invert Grid Cross Plot Y-axis when displaying DEPTH
This commit is contained in:
parent
86e20df7c6
commit
c8184065e3
@ -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 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,
|
||||
bool* useOptionsOnly) override;
|
||||
void triggerPlotNameUpdateAndReplot();
|
||||
|
Loading…
Reference in New Issue
Block a user