aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2017-08-01 15:37:05 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2017-08-02 17:00:52 +0000
commitdbf9bd444b35023aaf6cf68b1f2b6b8561d40c55 (patch)
tree1fefe7f891289ff6883d67c5d8e2c66b4a502a1d /share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json
parentd6591625c3cb3bcbd226ffdaa55e1a1c2851de66 (diff)
Wizards: Refresh the basic Qt Quick Application wizard
It now really creates an empty project. Also, adapt the QtQuickPrototype template accordingly. Change-Id: I0749805211df080c88cad1b9c2d476d56836c18a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json')
-rw-r--r--share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json196
1 files changed, 196 insertions, 0 deletions
diff --git a/share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json b/share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json
new file mode 100644
index 0000000000..521d046e93
--- /dev/null
+++ b/share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json
@@ -0,0 +1,196 @@
+{
+ "version": 1,
+ "supportedProjectTypes": [ "CMakeProjectManager.CMakeProject", "Qbs.QbsProject", "Qt4ProjectManager.Qt4Project" ],
+ "id": "U.QtQuickApplicationEmpty",
+ "category": "F.Application",
+ "trDescription": "Creates a Qt Quick application that contains an empty window.",
+ "trDisplayName": "Qt Quick Application - Empty",
+ "trDisplayCategory": "Application",
+ "icon": "icon.png",
+ "featuresRequired": [ "QtSupport.Wizards.FeatureQt.5.6" ],
+ "enabled": "%{JS: [ %{Plugins} ].indexOf('QmakeProjectManager') >= 0 || [ %{Plugins} ].indexOf('QbsProjectManager') >= 0 || [ %{Plugins} ].indexOf('CMakeProjectManager') >= 0}",
+
+ "options":
+ [
+ { "key": "ProjectFile", "value": "%{JS: '%{BuildSystem}' === 'qmake' ? '%{ProFile}' : ('%{BuildSystem}' === 'cmake' ? '%{CMakeFile}' : '%{QbsFile}')}" },
+ { "key": "ProFile", "value": "%{JS: Util.fileName('%{ProjectDirectory}/%{ProjectName}', 'pro')}" },
+ { "key": "QbsFile", "value": "%{JS: Util.fileName('%{ProjectDirectory}/%{ProjectName}', 'qbs')}" },
+ { "key": "CMakeFile", "value": "%{ProjectDirectory}/CMakeLists.txt" },
+ { "key": "MainCppFileName", "value": "%{JS: 'main.' + Util.preferredSuffix('text/x-c++src')}" },
+ { "key": "QtQuickVersion", "value": "%{JS: %{QtVersion}.QtQuickVersion}" },
+ { "key": "QtQuickWindowVersion", "value": "%{JS: %{QtVersion}.QtQuickWindowVersion}" },
+ { "key": "QtQuickVirtualKeyboardImport", "value": "%{JS: %{QtVersion}.QtQuickVirtualKeyboardImport}" },
+ { "key": "QtQuickFeature", "value": "QtSupport.Wizards.FeatureQtQuick.%{QtQuickVersion}" },
+ { "key": "UseVirtualKeyboardByDefault", "value": "%{JS: [ %{Plugins} ].indexOf('Boot2Qt') >= 0 || [ %{Plugins} ].indexOf('Boot2QtQdb') >= 0}" },
+ { "key": "SetQPAPhysicalSize", "value": "%{UseVirtualKeyboardByDefault}" }
+ ],
+
+ "pages":
+ [
+ {
+ "trDisplayName": "Project Location",
+ "trShortTitle": "Location",
+ "typeId": "Project"
+ },
+ {
+ "trDisplayName": "Define Build System",
+ "trShortTitle": "Build System",
+ "typeId": "Fields",
+ "enabled": "%{JS: ! %{IsSubproject}}",
+ "data":
+ [
+ {
+ "name": "BuildSystem",
+ "trDisplayName": "Build system:",
+ "type": "ComboBox",
+ "data":
+ {
+ "index": 0,
+ "items":
+ [
+ {
+ "trKey": "qmake",
+ "value": "qmake",
+ "condition": "%{JS: [ %{Plugins} ].indexOf('QmakeProjectManager') >= 0}"
+ },
+ {
+ "trKey": "CMake",
+ "value": "cmake",
+ "condition": "%{JS: [ %{Plugins} ].indexOf('CMakeProjectManager') >= 0}"
+ },
+ {
+ "trKey": "Qbs",
+ "value": "qbs",
+ "condition": "%{JS: [ %{Plugins} ].indexOf('QbsProjectManager') >= 0}"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "trDisplayName": "Define Project Details",
+ "trShortTitle": "Details",
+ "typeId": "Fields",
+ "data":
+ [
+ {
+ "name": "QtVersion",
+ "trDisplayName": "Minimal required Qt version:",
+ "type": "ComboBox",
+ "data":
+ {
+ "index": 0,
+ "items":
+ [
+ {
+ "trKey": "Qt 5.9",
+ "value":
+ "{
+ 'QtQuickVersion': '2.9',
+ 'QtQuickWindowVersion': '2.2',
+ 'QtQuickVirtualKeyboardImport': 'QtQuick.VirtualKeyboard 2.1'
+ }"
+ },
+ {
+ "trKey": "Qt 5.8",
+ "value":
+ "{
+ 'QtQuickVersion': '2.8',
+ 'QtQuickWindowVersion': '2.2',
+ 'QtQuickVirtualKeyboardImport': 'QtQuick.VirtualKeyboard 2.1'
+ }"
+ },
+ {
+ "trKey": "Qt 5.7",
+ "value":
+ "{
+ 'QtQuickVersion': '2.7',
+ 'QtQuickWindowVersion': '2.2',
+ 'QtQuickVirtualKeyboardImport': 'QtQuick.VirtualKeyboard 2.1'
+ }"
+ },
+ {
+ "trKey": "Qt 5.6",
+ "value":
+ "{
+ 'QtQuickVersion': '2.6',
+ 'QtQuickWindowVersion': '2.2',
+ 'QtQuickVirtualKeyboardImport': 'QtQuick.Enterprise.VirtualKeyboard 2.0'
+ }"
+ }
+ ]
+ }
+ },
+ {
+ "name": "UseVirtualKeyboard",
+ "trDisplayName": "Use Qt Virtual Keyboard.",
+ "type": "CheckBox",
+ "data":
+ {
+ "checked": "%{JS: %{UseVirtualKeyboardByDefault}}"
+ }
+ }
+ ]
+ },
+ {
+ "trDisplayName": "Kit Selection",
+ "trShortTitle": "Kits",
+ "typeId": "Kits",
+ "enabled": "%{JS: ! %{IsSubproject}}",
+ "data": {
+ "projectFilePath": "%{ProjectFile}",
+ "requiredFeatures": [ "QtSupport.Wizards.FeatureQt", "%{QtQuickFeature}" ]
+ }
+ },
+ {
+ "trDisplayName": "Project Management",
+ "trShortTitle": "Summary",
+ "typeId": "Summary"
+ }
+ ],
+ "generators":
+ [
+ {
+ "typeId": "File",
+ "data":
+ [
+ {
+ "source": "../app.pro",
+ "target": "%{ProFile}",
+ "openAsProject": true,
+ "condition": "%{JS: '%{BuildSystem}' === 'qmake'}"
+ },
+ {
+ "source": "../CMakeLists.txt",
+ "target": "CMakeLists.txt",
+ "openAsProject": true,
+ "condition": "%{JS: '%{BuildSystem}' === 'cmake'}"
+ },
+ {
+ "source": "../app.qbs",
+ "target": "%{QbsFile}",
+ "openAsProject": true,
+ "condition": "%{JS: '%{BuildSystem}' === 'qbs'}"
+ },
+ {
+ "source": "../main.cpp",
+ "target": "%{MainCppFileName}"
+ },
+ {
+ "source": "main.qml.tpl",
+ "target": "main.qml",
+ "openInEditor": true
+ },
+ {
+ "source": "qml.qrc"
+ },
+ {
+ "source": "../git.ignore",
+ "target": ".gitignore",
+ "condition": "%{JS: !%{IsSubproject} && '%{VersionControl}' === 'G.Git'}"
+ }
+ ]
+ }
+ ]
+}