forked from qt-creator/qt-creator
QmlDesigner.NodeInstances: Fix drag and drop bug
This commit is contained in:
@@ -274,10 +274,13 @@ void NodeInstanceServer::completeComponent(const CompleteComponentCommand &comma
|
||||
}
|
||||
}
|
||||
|
||||
m_completedComponentList.append(instanceList);
|
||||
|
||||
nodeInstanceClient()->valuesChanged(createValuesChangedCommand(instanceList));
|
||||
nodeInstanceClient()->informationChanged(createAllInformationChangedCommand(instanceList, true));
|
||||
nodeInstanceClient()->pixmapChanged(createPixmapChangedCommand(instanceList));
|
||||
nodeInstanceClient()->componentCompleted(createComponentCompletedCommand(instanceList));
|
||||
|
||||
startRenderTimer();
|
||||
}
|
||||
|
||||
void NodeInstanceServer::addImports(const QVector<AddImportContainer> &containerVector)
|
||||
@@ -881,6 +884,11 @@ void NodeInstanceServer::findItemChangesAndSendChangeCommands()
|
||||
}
|
||||
}
|
||||
|
||||
if (!m_completedComponentList.isEmpty()) {
|
||||
nodeInstanceClient()->componentCompleted(createComponentCompletedCommand(m_completedComponentList));
|
||||
m_completedComponentList.clear();
|
||||
}
|
||||
|
||||
slowDownRenderTimer();
|
||||
nodeInstanceClient()->flush();
|
||||
}
|
||||
|
||||
@@ -138,6 +138,7 @@ private:
|
||||
QVector<InstancePropertyPair> m_changedPropertyList;
|
||||
QStringList m_importList;
|
||||
QSet<ServerNodeInstance> m_dirtyInstanceSet;
|
||||
QList<ServerNodeInstance> m_completedComponentList;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user