Skip to content
Snippets Groups Projects
Commit 33d66233 authored by Kai Koehne's avatar Kai Koehne Committed by con
Browse files

QmlWizards: Use 'QtQuick 1.0' namespace

Use the 'QtQuick 1.0' namespace introduced in 4.7.1. This makes them in
line with the examples/demos we ship in the SDK, but breaks for 4.7.0
(e.g. N900).

Task-number: QTCREATORBUG-3243
parent e15e62c3
No related branches found
No related tags found
No related merge requests found
import Qt 4.7
import QtQuick 1.0
Rectangle {
width: 360
......
......@@ -63,7 +63,7 @@ QString QmlFileWizard::fileContents(const QString &fileName) const
// str << CppTools::AbstractEditorSupport::licenseTemplate();
// 100:62 is the 'golden ratio'
str << QLatin1String("import Qt 4.7\n")
str << QLatin1String("import QtQuick 1.0\n")
<< QLatin1String("\n")
<< QLatin1String("Rectangle {\n")
<< QLatin1String(" width: 100\n")
......
......@@ -114,7 +114,7 @@ Core::GeneratedFiles QmlProjectApplicationWizard::generateFiles(const QWizard *w
QTextStream out(&contents);
out
<< "import Qt 4.7" << endl
<< "import QtQuick 1.0" << endl
<< endl
<< "Rectangle {" << endl
<< " width: 360" << endl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment