mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 14:03:18 -06:00
#6033 Surface Properties : Change name to Surface Result
This commit is contained in:
parent
cff19c621f
commit
869f6ce39b
@ -105,8 +105,9 @@ void RimSurfaceInView::setSurface( RimSurface* surf )
|
||||
m_resultDefinition->setCheckState( true );
|
||||
|
||||
m_resultDefinition->assignDefaultProperty();
|
||||
m_resultDefinition->updateMinMaxValues();
|
||||
}
|
||||
|
||||
m_resultDefinition->updateMinMaxValues();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -160,6 +161,17 @@ void RimSurfaceInView::loadDataAndUpdate()
|
||||
{
|
||||
surface()->loadDataIfRequired();
|
||||
|
||||
if ( surface()->surfaceData() && surface()->surfaceData()->propertyNames().empty() )
|
||||
{
|
||||
m_resultDefinition.uiCapability()->setUiTreeChildrenHidden( true );
|
||||
m_resultDefinition->setCheckState( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_resultDefinition.uiCapability()->setUiTreeChildrenHidden( false );
|
||||
m_resultDefinition->setCheckState( true );
|
||||
}
|
||||
|
||||
m_resultDefinition->updateMinMaxValues();
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ RimSurfaceResultDefinition::RimSurfaceResultDefinition()
|
||||
m_legendConfig.uiCapability()->setUiTreeChildrenHidden( false );
|
||||
m_legendConfig = new RimRegularLegendConfig;
|
||||
|
||||
setName( "Result Property" );
|
||||
setName( "Surface Result" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_surfaceInView, "SurfaceInView", "Surface In View", "", "", "" );
|
||||
m_surfaceInView.uiCapability()->setUiHidden( true );
|
||||
|
Loading…
Reference in New Issue
Block a user