Implemented 'Change color of list view #6512'. Style of list widget can now be changed in style sheet by using the dynamic property state="ExternalInput".

This commit is contained in:
rubenthoms authored and Gaute Lindkvist committed 2020-09-25 14:32:06 +02:00
1 parent 23f581d7a0
commit 719feac15e
5 files changed
+24 -7

No files matched your search

@@ -703,9 +703,11 @@ void RimExtrudedCurveIntersection::setPushButtonText( bool buttonEnable, caf::Pd
//--------------------------------------------------------------------------------------------------
void RimExtrudedCurveIntersection::setBaseColor( bool enable, caf::PdmUiListEditorAttribute* attribute )
{
if ( attribute && enable )
// if ( attribute && enable )
if ( attribute )
{
attribute->m_baseColor.setRgb( 255, 220, 255 );
attribute->m_qssState = enable ? "ExternalInput" : QString();
// attribute->m_baseColor.setRgb( 255, 220, 255 );
}
}