forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import Qt 4.7
|
import QtQuick 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 360
|
width: 360
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ QString QmlFileWizard::fileContents(const QString &fileName) const
|
|||||||
// str << CppTools::AbstractEditorSupport::licenseTemplate();
|
// str << CppTools::AbstractEditorSupport::licenseTemplate();
|
||||||
|
|
||||||
// 100:62 is the 'golden ratio'
|
// 100:62 is the 'golden ratio'
|
||||||
str << QLatin1String("import Qt 4.7\n")
|
str << QLatin1String("import QtQuick 1.0\n")
|
||||||
<< QLatin1String("\n")
|
<< QLatin1String("\n")
|
||||||
<< QLatin1String("Rectangle {\n")
|
<< QLatin1String("Rectangle {\n")
|
||||||
<< QLatin1String(" width: 100\n")
|
<< QLatin1String(" width: 100\n")
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ Core::GeneratedFiles QmlProjectApplicationWizard::generateFiles(const QWizard *w
|
|||||||
QTextStream out(&contents);
|
QTextStream out(&contents);
|
||||||
|
|
||||||
out
|
out
|
||||||
<< "import Qt 4.7" << endl
|
<< "import QtQuick 1.0" << endl
|
||||||
<< endl
|
<< endl
|
||||||
<< "Rectangle {" << endl
|
<< "Rectangle {" << endl
|
||||||
<< " width: 360" << endl
|
<< " width: 360" << endl
|
||||||
|
|||||||
Reference in New Issue
Block a user