summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/qml/qtquick_2_2
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/qml/qtquick_2_2')
-rw-r--r--share/qtcreator/templates/qml/qtquick_2_2/main.qml17
-rw-r--r--share/qtcreator/templates/qml/qtquick_2_2/main.qmlproject21
-rw-r--r--share/qtcreator/templates/qml/qtquick_2_2/template.xml6
3 files changed, 44 insertions, 0 deletions
diff --git a/share/qtcreator/templates/qml/qtquick_2_2/main.qml b/share/qtcreator/templates/qml/qtquick_2_2/main.qml
new file mode 100644
index 0000000000..0190f166d3
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquick_2_2/main.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.2
+
+Rectangle {
+ width: 360
+ height: 360
+ Text {
+ anchors.centerIn: parent
+ text: "Hello World"
+ }
+ MouseArea {
+ anchors.fill: parent
+ onClicked: {
+ Qt.quit();
+ }
+ }
+}
+
diff --git a/share/qtcreator/templates/qml/qtquick_2_2/main.qmlproject b/share/qtcreator/templates/qml/qtquick_2_2/main.qmlproject
new file mode 100644
index 0000000000..558f68d035
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquick_2_2/main.qmlproject
@@ -0,0 +1,21 @@
+/* File generated by Qt Creator, version 2.7.0 */
+
+import QmlProject 1.1
+
+Project {
+// QTC_REPLACE main.qml WITH main
+ mainFile: "main.qml"
+
+ /* Include .qml, .js, and image files from current directory and subdirectories */
+ QmlFiles {
+ directory: "."
+ }
+ JavaScriptFiles {
+ directory: "."
+ }
+ ImageFiles {
+ directory: "."
+ }
+ /* List of plugin directories passed to QML runtime */
+ // importPaths: [ "../exampleplugin" ]
+}
diff --git a/share/qtcreator/templates/qml/qtquick_2_2/template.xml b/share/qtcreator/templates/qml/qtquick_2_2/template.xml
new file mode 100644
index 0000000000..c070ec2158
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquick_2_2/template.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<template openeditor="main.qml" priority="A"
+ featuresRequired="QtSupport.Wizards.FeatureQtQuickProject, QtSupport.Wizards.FeatureQtQuick, QtSupport.Wizards.FeatureQtQuick.2">
+ <displayname>Qt Quick 2.2</displayname>
+ <description>Creates a Qt Quick 2 UI project with a single QML file that contains the main view. You can review Qt Quick 2 UI projects in the QML Scene and you need not build them. You do not need to have the development environment installed on your computer to create and run this type of project. Requires Qt 5.2 or newer.</description>
+</template>