mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor LayoutOptions to improve readability
* Make it possible to use designated initializer list - remove default constructor - move static member to outer scope * Add helper function to add field on same row
This commit is contained in:
@@ -248,8 +248,8 @@ void RimStimPlanModelTemplate::defineUiOrdering( QString uiConfigName, caf::PdmU
|
||||
pressureDataSourceGroup->add( &m_dynamicEclipseCase );
|
||||
pressureDataSourceGroup->add( &m_timeStep );
|
||||
pressureDataSourceGroup->add( &m_initialPressureEclipseCase );
|
||||
pressureDataSourceGroup->add( &m_useTableForInitialPressure, { true, 2, 1 } );
|
||||
pressureDataSourceGroup->add( &m_editPressureTable, { false, 1, 0 } );
|
||||
pressureDataSourceGroup->add( &m_useTableForInitialPressure, { .newRow = true, .totalColumnSpan = 2, .leftLabelColumnSpan = 1 } );
|
||||
pressureDataSourceGroup->add( &m_editPressureTable, { .newRow = false, .totalColumnSpan = 1, .leftLabelColumnSpan = 0 } );
|
||||
pressureDataSourceGroup->add( &m_useTableForPressure );
|
||||
pressureDataSourceGroup->add( &m_useEqlnumForPressureInterpolation );
|
||||
m_initialPressureEclipseCase.uiCapability()->setUiReadOnly( m_useTableForInitialPressure() );
|
||||
|
||||
Reference in New Issue
Block a user