mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-26 02:20:54 +00:00
Make sure to apply the changes, when changing properties.
This commit is contained in:
parent
43019419af
commit
2dbf68d6e4
4 changed files with 10 additions and 6 deletions
|
@ -3300,9 +3300,6 @@ namespace NLGUI
|
|||
|
||||
v->setParent( g );
|
||||
|
||||
// Invalidate so it shows up!
|
||||
v->invalidateCoords();
|
||||
|
||||
notifyAdditionWatchers( v->getId() );
|
||||
|
||||
return v;
|
||||
|
|
|
@ -123,8 +123,9 @@ namespace GUIEditor
|
|||
e->setParentPosRef( Hotspot_TL );
|
||||
e->setPosRef( Hotspot_TL );
|
||||
|
||||
// Apply the new settings
|
||||
e->invalidateCoords();
|
||||
// Apply the new settings
|
||||
e->setActive( false );
|
||||
e->setActive( true );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -111,6 +111,12 @@ namespace GUIEditor
|
|||
if( e == NULL )
|
||||
return;
|
||||
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 )
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<property>
|
||||
<name>line_maxw</name>
|
||||
<type>int</type>
|
||||
<default>0</default>
|
||||
<default>100</default>
|
||||
</property>
|
||||
<property>
|
||||
<name>multi_line_space</name>
|
||||
|
|
Loading…
Reference in a new issue