Commit f0c4caac authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.NodeInstances: Add dummydata after import

parent 06f477fe
...@@ -922,13 +922,16 @@ QList<ServerNodeInstance> NodeInstanceServer::setupScene(const CreateSceneComman ...@@ -922,13 +922,16 @@ QList<ServerNodeInstance> NodeInstanceServer::setupScene(const CreateSceneComman
if (!command.fileUrl().isEmpty()) { if (!command.fileUrl().isEmpty()) {
engine()->setBaseUrl(command.fileUrl()); engine()->setBaseUrl(command.fileUrl());
m_fileUrl = command.fileUrl(); m_fileUrl = command.fileUrl();
}
addImports(command.imports());
if (!command.fileUrl().isEmpty()) {
QStringList dummyDataDirectoryList = dummyDataDirectories(QFileInfo(command.fileUrl().toLocalFile()).path()); QStringList dummyDataDirectoryList = dummyDataDirectories(QFileInfo(command.fileUrl().toLocalFile()).path());
foreach(const QString &dummyDataDirectory, dummyDataDirectoryList) foreach(const QString &dummyDataDirectory, dummyDataDirectoryList)
loadDummyDataFiles(dummyDataDirectory); loadDummyDataFiles(dummyDataDirectory);
} }
addImports(command.imports());
static_cast<QGraphicsScenePrivate*>(QObjectPrivate::get(m_declarativeView->scene()))->processDirtyItemsEmitted = true; static_cast<QGraphicsScenePrivate*>(QObjectPrivate::get(m_declarativeView->scene()))->processDirtyItemsEmitted = true;
QList<ServerNodeInstance> instanceList = createInstances(command.instances()); QList<ServerNodeInstance> instanceList = createInstances(command.instances());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment