diff --git a/share/qtcreator/templates/qmlapp/qml/app/main.qml b/share/qtcreator/templates/qmlapp/qml/app/main.qml index b41cc09f18759d5edf66d5c33c356968817b4576..42136251dc1a4b525cf14daa24e14d4236685ad1 100644 --- a/share/qtcreator/templates/qmlapp/qml/app/main.qml +++ b/share/qtcreator/templates/qmlapp/qml/app/main.qml @@ -1,4 +1,4 @@ -import QtQuick 1.0 +import Qt 4.7 Rectangle { width: 200 diff --git a/src/plugins/qmljseditor/qmlfilewizard.cpp b/src/plugins/qmljseditor/qmlfilewizard.cpp index 4829b4c1380fa2066f57a27947428f016ec83171..3687f5ef3b3a2a756ec4424babfbecb3ba730596 100644 --- a/src/plugins/qmljseditor/qmlfilewizard.cpp +++ b/src/plugins/qmljseditor/qmlfilewizard.cpp @@ -62,7 +62,7 @@ QString QmlFileWizard::fileContents(const QString &fileName) const QTextStream str(&contents); // str << CppTools::AbstractEditorSupport::licenseTemplate(); - str << QLatin1String("import QtQuick 1.0\n") + str << QLatin1String("import Qt 4.7\n") << QLatin1String("\n") << QLatin1String("Rectangle {\n") << QLatin1String(" width: 640\n") diff --git a/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp b/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp index 7d3b44f1d96c85dbc8c4b28c89c8338a24d2fcc4..c58241c2c899f0ada9058942b4be730e8fc12ebb 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp @@ -114,7 +114,7 @@ Core::GeneratedFiles QmlProjectApplicationWizard::generateFiles(const QWizard *w QTextStream out(&contents); out - << "import QtQuick 1.0" << endl + << "import Qt 4.7" << endl << endl << "Rectangle {" << endl << " width: 200" << endl