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
2023-03-09 12:46:55 +01:00
committed by GitHub
parent 527743a845
commit f5171310bf
12 changed files with 220 additions and 16 deletions

View File

@@ -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;
}
}
}
//--------------------------------------------------------------------------------------------------