Commit 1c6a3b9d authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Check for QtQuick 2.1 in states editor

Task-number: QTCREATORBUG-9298
Change-Id: I8660e7d9614e77d23e1ef6515904941505f410dd
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent b9ff6e65
......@@ -135,7 +135,8 @@ void StatesEditorView::addState()
if ((rootStateGroup().allStates().count() < 1) && //QtQuick import might be missing
(!model()->hasImport(Import::createLibraryImport("QtQuick", "1.0"), true)
&& !model()->hasImport(Import::createLibraryImport("QtQuick", "1.1"), true)
&& !model()->hasImport(Import::createLibraryImport("QtQuick", "2.0"), true)))
&& !model()->hasImport(Import::createLibraryImport("QtQuick", "2.0"), true)
&& !model()->hasImport(Import::createLibraryImport("QtQuick", "2.1"), true)))
model()->changeImports(QList<Import>() << Import::createLibraryImport("QtQuick", "1.0"), QList<Import>());
ModelNode newState = rootStateGroup().addState(newStateName);
setCurrentState(newState);
......
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