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:
Magne Sjaastad authored and GitHub committed 2023-03-09 12:46:55 +01:00
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;
}
}
}
//--------------------------------------------------------------------------------------------------