mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add option for word wrap in label and checkbox
* Add support for word wrap in checkbox label * QLabelEditor: Add word wrap and support for wide label Add support for one label widget spanning the area usually consumed by a label widget and an editor widget. * Use word wrap in summary calculation dialog
This commit is contained in:
@@ -396,6 +396,14 @@ void RimUserDefinedCalculation::defineEditorAttribute( const caf::PdmFieldHandle
|
||||
attrib->m_buttonText = "Open Help Page";
|
||||
}
|
||||
}
|
||||
else if ( field == &m_helpText )
|
||||
{
|
||||
auto* attrib = dynamic_cast<caf::PdmUiLabelEditorAttribute*>( attribute );
|
||||
if ( attrib )
|
||||
{
|
||||
attrib->m_useWordWrap = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user