From e35c53e7f8cfae60eee280cce85c12e708e1ed20 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Thu, 11 Nov 2010 11:39:57 +0100 Subject: QmlWizards: Unify templates Unify the original qml file generated by Qt Quick UI / Qt Quick Application wizards. Use a default size of 360x360. Furthermore, add a MouseArea such that clicking on the app will close it (demonstrating the use of Qt.quit()). Reviewed-by: Alessandro Portale --- share/qtcreator/templates/qmlapp/qml/app/main.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/qtcreator/templates/qmlapp/qml/app/main.qml b/share/qtcreator/templates/qmlapp/qml/app/main.qml index 42136251dc..4ef3a885a1 100644 --- a/share/qtcreator/templates/qmlapp/qml/app/main.qml +++ b/share/qtcreator/templates/qmlapp/qml/app/main.qml @@ -1,10 +1,16 @@ import Qt 4.7 Rectangle { - width: 200 - height: 323 + width: 360 + height: 360 Text { text: "Hello World" anchors.centerIn: parent } + MouseArea { + anchors.fill: parent + onClicked: { + Qt.quit(); + } + } } -- cgit v1.2.1