mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-05 23:09:04 +00:00
Update coords when changing something.
This commit is contained in:
parent
2a7452d2da
commit
ade36f7852
1 changed files with 22 additions and 0 deletions
|
@ -494,6 +494,10 @@ namespace GUIEditor
|
||||||
return;
|
return;
|
||||||
e->setProperty( propName.toUtf8().constData(), propValue.toUtf8().constData() );
|
e->setProperty( propName.toUtf8().constData(), propValue.toUtf8().constData() );
|
||||||
|
|
||||||
|
CInterfaceGroup *g = e->getParent();
|
||||||
|
if( g != NULL )
|
||||||
|
g->updateCoords();
|
||||||
|
|
||||||
|
|
||||||
// Make sure the changes are applied
|
// Make sure the changes are applied
|
||||||
bool active = e->getActive();
|
bool active = e->getActive();
|
||||||
|
@ -631,6 +635,16 @@ namespace GUIEditor
|
||||||
|
|
||||||
e->setProperty( propName.toUtf8().constData(), v );
|
e->setProperty( propName.toUtf8().constData(), v );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
CInterfaceElement *e = CWidgetManager::getInstance()->getElementFromId( currentElement );
|
||||||
|
if( e != NULL )
|
||||||
|
{
|
||||||
|
CInterfaceGroup *g = e->getParent();
|
||||||
|
if( g != NULL )
|
||||||
|
g->updateCoords();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -643,6 +657,10 @@ namespace GUIEditor
|
||||||
return;
|
return;
|
||||||
|
|
||||||
e->setProperty( propName.toUtf8().constData(), v.toUtf8().constData() );
|
e->setProperty( propName.toUtf8().constData(), v.toUtf8().constData() );
|
||||||
|
|
||||||
|
CInterfaceGroup *g = e->getParent();
|
||||||
|
if( g != NULL )
|
||||||
|
g->updateCoords();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPropBrowserCtrl::onTexturePropertyChanged( QtProperty *p, const QString &v )
|
void CPropBrowserCtrl::onTexturePropertyChanged( QtProperty *p, const QString &v )
|
||||||
|
@ -654,6 +672,10 @@ namespace GUIEditor
|
||||||
return;
|
return;
|
||||||
|
|
||||||
e->setProperty( propName.toUtf8().constData(), v.toUtf8().constData() );
|
e->setProperty( propName.toUtf8().constData(), v.toUtf8().constData() );
|
||||||
|
|
||||||
|
CInterfaceGroup *g = e->getParent();
|
||||||
|
if( g != NULL )
|
||||||
|
g->updateCoords();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPropBrowserCtrl::enablePropertyWatchers()
|
void CPropBrowserCtrl::enablePropertyWatchers()
|
||||||
|
|
Loading…
Reference in a new issue