#6630 Fix QGridLayout warnings in RiaPreferences

* m_showGridBox is added with a layout that assumes no label.
* but the label was hidden on the wrong grid box
This commit is contained in:
Gaute Lindkvist 2020-09-30 14:26:58 +02:00 committed by Magne Sjaastad
parent bf9bd6edbc
commit 914d7d6a11

View File

@ -231,7 +231,7 @@ RiaPreferences::RiaPreferences( void )
m_showInfoBox.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::HIDDEN );
CAF_PDM_InitField( &m_showGridBox, "showGridBox", true, "Show Grid Box in New Projects", "", "", "" );
m_showInfoBox.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::HIDDEN );
m_showGridBox.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::HIDDEN );
CAF_PDM_InitFieldNoDefault( &lastUsedProjectFileName, "lastUsedProjectFileName", "Last Used Project File", "", "", "" );
lastUsedProjectFileName.uiCapability()->setUiHidden( true );