Make sure to apply the changes, when changing properties.

--HG--
branch : gsoc2012-gui-editor
hg/feature/sse2
dfighter1985 12 years ago
parent 057960d056
commit 9042de4ab2

@ -3300,9 +3300,6 @@ namespace NLGUI
v->setParent( g ); v->setParent( g );
// Invalidate so it shows up!
v->invalidateCoords();
notifyAdditionWatchers( v->getId() ); notifyAdditionWatchers( v->getId() );
return v; return v;

@ -124,7 +124,8 @@ namespace GUIEditor
e->setPosRef( Hotspot_TL ); e->setPosRef( Hotspot_TL );
// Apply the new settings // Apply the new settings
e->invalidateCoords(); e->setActive( false );
e->setActive( true );
} }
} }

@ -111,6 +111,12 @@ namespace GUIEditor
if( e == NULL ) if( e == NULL )
return; return;
e->setProperty( propName.toUtf8().constData(), propValue.toUtf8().constData() ); e->setProperty( propName.toUtf8().constData(), propValue.toUtf8().constData() );
// Make sure the changes are applied
bool active = e->getActive();
e->setActive( !active );
e->setActive( active );
} }
void CPropBrowserCtrl::setupProperties( const std::string &type, const CInterfaceElement *element ) void CPropBrowserCtrl::setupProperties( const std::string &type, const CInterfaceElement *element )

@ -47,7 +47,7 @@
<property> <property>
<name>line_maxw</name> <name>line_maxw</name>
<type>int</type> <type>int</type>
<default>0</default> <default>100</default>
</property> </property>
<property> <property>
<name>multi_line_space</name> <name>multi_line_space</name>

Loading…
Cancel
Save