From e1295099f9731191ca4ab1c0ea9187fa48e03ab8 Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Mon, 11 May 2009 16:15:30 +0200 Subject: [PATCH] Generate a nicer "Hello World" QML app. --- .../qmlprojectmanager/qmlnewprojectwizard.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmlprojectmanager/qmlnewprojectwizard.cpp b/src/plugins/qmlprojectmanager/qmlnewprojectwizard.cpp index efe12b0c2ba..fdf576b06ae 100644 --- a/src/plugins/qmlprojectmanager/qmlnewprojectwizard.cpp +++ b/src/plugins/qmlprojectmanager/qmlnewprojectwizard.cpp @@ -226,8 +226,16 @@ Core::GeneratedFiles QmlNewProjectWizard::generateFiles(const QWizard *w, QString contents; QTextStream out(&contents); - out << "Text {" << endl - << " text: \"Hello, world!\"" << endl + + out + << "Rect {" << endl + << " width: 200" << endl + << " height: 200" << endl + << " color: \"white\"" << endl + << " Text {" << endl + << " text: \"Hello World\"" << endl + << " anchors.centeredIn: parent" << endl + << " }" << endl << "}" << endl; Core::GeneratedFile generatedMainFile(mainFileName); -- GitLab