diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2010-11-11 11:39:57 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2010-11-12 13:54:54 +0100 |
commit | e35c53e7f8cfae60eee280cce85c12e708e1ed20 (patch) | |
tree | 8e3974a88ad4704f4414b7eb944fa3c90a19a1eb /share | |
parent | 8f85202fb1153069f0991caaee9d0f9ede22eb0c (diff) | |
download | qt-creator-e35c53e7f8cfae60eee280cce85c12e708e1ed20.tar.gz |
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
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/templates/qmlapp/qml/app/main.qml | 10 |
1 files changed, 8 insertions, 2 deletions
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(); + } + } } |