From 9b353b7a2f4664eabab8abc1d0096ea81845e4a8 Mon Sep 17 00:00:00 2001
From: Kai Koehne <kai.koehne@nokia.com>
Date: Fri, 8 Jan 2010 11:24:22 +0100
Subject: [PATCH] Fix default "hello world" qml file to not use anchors

Some things like reparenting do not work right now in the Design mode
for anchored items, and we are missing a way to inform the user.
Using absolute positions for positioning therefore avoids confusion
for first time users.
---
 src/plugins/qmlprojectmanager/qmlnewprojectwizard.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/plugins/qmlprojectmanager/qmlnewprojectwizard.cpp b/src/plugins/qmlprojectmanager/qmlnewprojectwizard.cpp
index ced52f6cd6b..9fc257008a0 100644
--- a/src/plugins/qmlprojectmanager/qmlnewprojectwizard.cpp
+++ b/src/plugins/qmlprojectmanager/qmlnewprojectwizard.cpp
@@ -109,8 +109,9 @@ Core::GeneratedFiles QmlNewProjectWizard::generateFiles(const QWizard *w,
         << "    width: 200" << endl
         << "    height: 200" << endl
         << "    Text {" << endl
+        << "        x: 66" << endl
+        << "        y: 93" << endl
         << "        text: \"Hello World\"" << endl
-        << "        anchors.centerIn: parent" << endl
         << "    }" << endl
         << "}" << endl;
 
-- 
GitLab