summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/qml')
-rw-r--r--share/qtcreator/templates/qml/qtquick_1_1/main.qmlproject2
-rw-r--r--share/qtcreator/templates/qml/qtquick_1_1/template.xml2
-rw-r--r--share/qtcreator/templates/qml/qtquick_2_0/main.qmlproject2
-rw-r--r--share/qtcreator/templates/qml/qtquick_2_0/template.xml2
-rw-r--r--share/qtcreator/templates/qml/qtquick_2_1/main.qml17
-rw-r--r--share/qtcreator/templates/qml/qtquick_2_1/main.qmlproject21
-rw-r--r--share/qtcreator/templates/qml/qtquick_2_1/template.xml6
-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
-rw-r--r--share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qmlproject2
-rw-r--r--share/qtcreator/templates/qml/qtquickcontrols_1_0/template.xml2
-rw-r--r--share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml25
-rw-r--r--share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qmlproject21
-rw-r--r--share/qtcreator/templates/qml/qtquickcontrols_1_1/template.xml6
15 files changed, 146 insertions, 6 deletions
diff --git a/share/qtcreator/templates/qml/qtquick_1_1/main.qmlproject b/share/qtcreator/templates/qml/qtquick_1_1/main.qmlproject
index 558f68d035..63dafff88e 100644
--- a/share/qtcreator/templates/qml/qtquick_1_1/main.qmlproject
+++ b/share/qtcreator/templates/qml/qtquick_1_1/main.qmlproject
@@ -1,4 +1,4 @@
-/* File generated by Qt Creator, version 2.7.0 */
+/* File generated by Qt Creator */
import QmlProject 1.1
diff --git a/share/qtcreator/templates/qml/qtquick_1_1/template.xml b/share/qtcreator/templates/qml/qtquick_1_1/template.xml
index 6eedaea32c..51b653bafe 100644
--- a/share/qtcreator/templates/qml/qtquick_1_1/template.xml
+++ b/share/qtcreator/templates/qml/qtquick_1_1/template.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<template openeditor="main.qml" priority="C"
+<template openeditor="main.qml" priority="F"
featuresRequired="QtSupport.Wizards.FeatureQtQuickProject, QtSupport.Wizards.FeatureQtQuick, QtSupport.Wizards.FeatureQtQuick.1.1">
<displayname>Qt Quick 1.1</displayname>
<description>Creates a Qt Quick 1 UI project with a single QML file that contains the main view. You can review Qt Quick 1 UI projects in the QML Viewer 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 4.8 or newer.</description>
diff --git a/share/qtcreator/templates/qml/qtquick_2_0/main.qmlproject b/share/qtcreator/templates/qml/qtquick_2_0/main.qmlproject
index 558f68d035..63dafff88e 100644
--- a/share/qtcreator/templates/qml/qtquick_2_0/main.qmlproject
+++ b/share/qtcreator/templates/qml/qtquick_2_0/main.qmlproject
@@ -1,4 +1,4 @@
-/* File generated by Qt Creator, version 2.7.0 */
+/* File generated by Qt Creator */
import QmlProject 1.1
diff --git a/share/qtcreator/templates/qml/qtquick_2_0/template.xml b/share/qtcreator/templates/qml/qtquick_2_0/template.xml
index 14889d0e6b..9caad365ea 100644
--- a/share/qtcreator/templates/qml/qtquick_2_0/template.xml
+++ b/share/qtcreator/templates/qml/qtquick_2_0/template.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<template openeditor="main.qml" priority="A"
+<template openeditor="main.qml" priority="E"
featuresRequired="QtSupport.Wizards.FeatureQtQuickProject, QtSupport.Wizards.FeatureQtQuick, QtSupport.Wizards.FeatureQtQuick.2">
<displayname>Qt Quick 2.0</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.0 or newer.</description>
diff --git a/share/qtcreator/templates/qml/qtquick_2_1/main.qml b/share/qtcreator/templates/qml/qtquick_2_1/main.qml
new file mode 100644
index 0000000000..88ea490076
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquick_2_1/main.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.1
+
+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_1/main.qmlproject b/share/qtcreator/templates/qml/qtquick_2_1/main.qmlproject
new file mode 100644
index 0000000000..558f68d035
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquick_2_1/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_1/template.xml b/share/qtcreator/templates/qml/qtquick_2_1/template.xml
new file mode 100644
index 0000000000..86e9074adb
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquick_2_1/template.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<template openeditor="main.qml" priority="C"
+ featuresRequired="QtSupport.Wizards.FeatureQtQuickProject, QtSupport.Wizards.FeatureQtQuick, QtSupport.Wizards.FeatureQtQuick.2">
+ <displayname>Qt Quick 2.1</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.1 or newer.</description>
+</template>
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>
diff --git a/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qmlproject b/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qmlproject
index 558f68d035..63dafff88e 100644
--- a/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qmlproject
+++ b/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qmlproject
@@ -1,4 +1,4 @@
-/* File generated by Qt Creator, version 2.7.0 */
+/* File generated by Qt Creator */
import QmlProject 1.1
diff --git a/share/qtcreator/templates/qml/qtquickcontrols_1_0/template.xml b/share/qtcreator/templates/qml/qtquickcontrols_1_0/template.xml
index 48a2b441ed..a0f35614d1 100644
--- a/share/qtcreator/templates/qml/qtquickcontrols_1_0/template.xml
+++ b/share/qtcreator/templates/qml/qtquickcontrols_1_0/template.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<template openeditor="main.qml" priority="B"
+<template openeditor="main.qml" priority="D"
featuresRequired="QtSupport.Wizards.FeatureQtQuickProject, QtSupport.Wizards.FeatureQtQuick, QtSupport.Wizards.FeatureQtQuick.2, QtSupport.Wizards.FeatureQtQuick.Controls">
<displayname>Qt Quick Controls 1.0</displayname>
<description>Creates a Qt Quick 2 UI project with a single QML file that contains the main view and uses Qt Quick Controls. You can review Qt Quick 2 UI projects in the QML Scene and you need not build them. This project requires that you have installed Qt Quick Controls for your Qt version. Requires Qt 5.1 or newer.</description>
diff --git a/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml b/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml
new file mode 100644
index 0000000000..74609d82c8
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml
@@ -0,0 +1,25 @@
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Window 2.0
+
+ApplicationWindow {
+ title: qsTr("Hello World")
+ width: 640
+ height: 480
+
+ menuBar: MenuBar {
+ Menu {
+ title: qsTr("File")
+ MenuItem {
+ text: qsTr("Exit")
+ onTriggered: Qt.quit();
+ }
+ }
+ }
+
+ Button {
+ text: qsTr("Hello World")
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.verticalCenter: parent.verticalCenter
+ }
+}
diff --git a/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qmlproject b/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qmlproject
new file mode 100644
index 0000000000..558f68d035
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquickcontrols_1_1/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/qtquickcontrols_1_1/template.xml b/share/qtcreator/templates/qml/qtquickcontrols_1_1/template.xml
new file mode 100644
index 0000000000..a2c09247b3
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquickcontrols_1_1/template.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<template openeditor="main.qml" priority="B"
+ featuresRequired="QtSupport.Wizards.FeatureQtQuickProject, QtSupport.Wizards.FeatureQtQuick, QtSupport.Wizards.FeatureQtQuick.2, QtSupport.Wizards.FeatureQtQuick.Controls">
+ <displayname>Qt Quick Controls 1.1</displayname>
+ <description>Creates a Qt Quick 2 UI project with a single QML file that contains the main view and uses Qt Quick Controls. You can review Qt Quick 2 UI projects in the QML Scene and you need not build them. This project requires that you have installed Qt Quick Controls for your Qt version. Requires Qt 5.2 or newer.</description>
+</template>