mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05: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:
1 parent
527743a845
commit
f5171310bf
12 files changed
+220
-16
No files matched your search
@@ -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