forked from qt-creator/qt-creator
QmlDesigner: Fix wrong order after dropping a item in the navigator
The component complete command is reparenting a item so it is appended. To get the right order the ChildrenChangedCommand should be sent after ComponentCompletedCommand. Change-Id: Id4c1025fc7b4d7f25a7db7511029013c24441dd3 Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -177,16 +177,16 @@ void Qt5InformationNodeInstanceServer::collectItemChangesAndSendChangeCommands()
|
||||
if (!propertyChangedList.isEmpty())
|
||||
nodeInstanceClient()->valuesChanged(createValuesChangedCommand(propertyChangedList));
|
||||
|
||||
if (!m_parentChangedSet.isEmpty()) {
|
||||
sendChildrenChangedCommand(m_parentChangedSet.toList());
|
||||
m_parentChangedSet.clear();
|
||||
}
|
||||
|
||||
if (!m_completedComponentList.isEmpty()) {
|
||||
nodeInstanceClient()->componentCompleted(createComponentCompletedCommand(m_completedComponentList));
|
||||
m_completedComponentList.clear();
|
||||
}
|
||||
|
||||
if (!m_parentChangedSet.isEmpty()) {
|
||||
sendChildrenChangedCommand(m_parentChangedSet.toList());
|
||||
m_parentChangedSet.clear();
|
||||
}
|
||||
|
||||
slowDownRenderTimer();
|
||||
nodeInstanceClient()->flush();
|
||||
nodeInstanceClient()->synchronizeWithClientProcess();
|
||||
|
Reference in New Issue
Block a user