aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates
diff options
context:
space:
mode:
authorChristian Gagneraud <chgans@gmail.com>2019-05-10 22:14:18 +1200
committerChristian Gagneraud <chgans@gmail.com>2019-05-10 11:45:52 +0000
commit71751bb2fca71558e1a619ccb715c50b58a914bf (patch)
tree3d46659ddbeaa88f4f5ab6c765d088ca1a74e56e /share/qtcreator/templates
parentcf6421d3d1409eb68a7dda2c21ec3ee4e9c57f50 (diff)
Export Wizard values to JavaScript macro (Fixes)
This fixes a few misses from e0d38ae4140d6101b483fde25158fc94b34a3a64 Change-Id: Ibd0253ca4045afe3745cafeca2f57b083e141bd3 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'share/qtcreator/templates')
-rw-r--r--share/qtcreator/templates/wizards/projects/plaincpp/wizard.json8
-rw-r--r--share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json2
-rw-r--r--share/qtcreator/templates/wizards/projects/qtquickapplication/scroll/wizard.json2
-rw-r--r--share/qtcreator/templates/wizards/projects/qtquickapplication/stack/wizard.json2
-rw-r--r--share/qtcreator/templates/wizards/projects/qtquickapplication/swipe/wizard.json2
-rw-r--r--share/qtcreator/templates/wizards/projects/qtquickuiprototype/wizard.json2
-rw-r--r--share/qtcreator/templates/wizards/projects/vcs/bazaar/wizard.json2
-rw-r--r--share/qtcreator/templates/wizards/projects/vcs/cvs/wizard.json2
-rw-r--r--share/qtcreator/templates/wizards/projects/vcs/git/wizard.json2
-rw-r--r--share/qtcreator/templates/wizards/projects/vcs/mercurial/wizard.json2
-rw-r--r--share/qtcreator/templates/wizards/projects/vcs/subversion/wizard.json2
11 files changed, 14 insertions, 14 deletions
diff --git a/share/qtcreator/templates/wizards/projects/plaincpp/wizard.json b/share/qtcreator/templates/wizards/projects/plaincpp/wizard.json
index bf48c26108..af7e84362d 100644
--- a/share/qtcreator/templates/wizards/projects/plaincpp/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/plaincpp/wizard.json
@@ -7,7 +7,7 @@
"trDisplayName": "Plain C++ Application",
"trDisplayCategory": "Non-Qt Project",
"icon": "../../global/consoleapplication.png",
- "enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0 && ([ %{Plugins} ].indexOf('QmakeProjectManager') >= 0 || [ %{Plugins} ].indexOf('QbsProjectManager') >= 0 || [ %{Plugins} ].indexOf('CMakeProjectManager') >= 0)}",
+ "enabled": "%{JS: value('Plugins').indexOf('CppEditor') >= 0 && (value('Plugins').indexOf('QmakeProjectManager') >= 0 || value('Plugins').indexOf('QbsProjectManager') >= 0 || value('Plugins').indexOf('CMakeProjectManager') >= 0)}",
"options":
[
@@ -44,17 +44,17 @@
{
"trKey": "qmake",
"value": "qmake",
- "condition": "%{JS: [ %{Plugins} ].indexOf('QmakeProjectManager') >= 0}"
+ "condition": "%{JS: value('Plugins').indexOf('QmakeProjectManager') >= 0}"
},
{
"trKey": "CMake",
"value": "cmake",
- "condition": "%{JS: [ %{Plugins} ].indexOf('CMakeProjectManager') >= 0}"
+ "condition": "%{JS: value('Plugins).indexOf('CMakeProjectManager') >= 0}"
},
{
"trKey": "Qbs",
"value": "qbs",
- "condition": "%{JS: [ %{Plugins} ].indexOf('QbsProjectManager') >= 0}"
+ "condition": "%{JS: value('Plugins').indexOf('QbsProjectManager') >= 0}"
}
]
}
diff --git a/share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json b/share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json
index 91b7e3b860..329fc6c14a 100644
--- a/share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/qtquickapplication/empty/wizard.json
@@ -164,7 +164,7 @@
"type": "CheckBox",
"data":
{
- "checked": "%{JS: %{UseVirtualKeyboardByDefault}}"
+ "checked": "%{UseVirtualKeyboardByDefault}"
}
}
]
diff --git a/share/qtcreator/templates/wizards/projects/qtquickapplication/scroll/wizard.json b/share/qtcreator/templates/wizards/projects/qtquickapplication/scroll/wizard.json
index 301e915b86..f03b62635a 100644
--- a/share/qtcreator/templates/wizards/projects/qtquickapplication/scroll/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/qtquickapplication/scroll/wizard.json
@@ -215,7 +215,7 @@
"type": "CheckBox",
"data":
{
- "checked": "%{JS: %{UseVirtualKeyboardByDefault}}"
+ "checked": "%{UseVirtualKeyboardByDefault}"
}
}
]
diff --git a/share/qtcreator/templates/wizards/projects/qtquickapplication/stack/wizard.json b/share/qtcreator/templates/wizards/projects/qtquickapplication/stack/wizard.json
index 96b3a439b9..6640901abe 100644
--- a/share/qtcreator/templates/wizards/projects/qtquickapplication/stack/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/qtquickapplication/stack/wizard.json
@@ -233,7 +233,7 @@
"type": "CheckBox",
"data":
{
- "checked": "%{JS: %{UseVirtualKeyboardByDefault}}"
+ "checked": "%{UseVirtualKeyboardByDefault}"
}
}
]
diff --git a/share/qtcreator/templates/wizards/projects/qtquickapplication/swipe/wizard.json b/share/qtcreator/templates/wizards/projects/qtquickapplication/swipe/wizard.json
index 5f15dbffbe..2b6ac53030 100644
--- a/share/qtcreator/templates/wizards/projects/qtquickapplication/swipe/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/qtquickapplication/swipe/wizard.json
@@ -233,7 +233,7 @@
"type": "CheckBox",
"data":
{
- "checked": "%{JS: %{UseVirtualKeyboardByDefault}}"
+ "checked": "%{UseVirtualKeyboardByDefault}"
}
}
]
diff --git a/share/qtcreator/templates/wizards/projects/qtquickuiprototype/wizard.json b/share/qtcreator/templates/wizards/projects/qtquickuiprototype/wizard.json
index 508e0b41ff..79900ca557 100644
--- a/share/qtcreator/templates/wizards/projects/qtquickuiprototype/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/qtquickuiprototype/wizard.json
@@ -124,7 +124,7 @@
"type": "CheckBox",
"data":
{
- "checked": "%{JS: %{UseVirtualKeyboardByDefault}}"
+ "checked": "%{UseVirtualKeyboardByDefault}"
}
}
]
diff --git a/share/qtcreator/templates/wizards/projects/vcs/bazaar/wizard.json b/share/qtcreator/templates/wizards/projects/vcs/bazaar/wizard.json
index 9e4d494f45..a8b4d041e7 100644
--- a/share/qtcreator/templates/wizards/projects/vcs/bazaar/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/vcs/bazaar/wizard.json
@@ -7,7 +7,7 @@
"trDisplayName": "Bazaar Clone (Or Branch)",
"trDisplayCategory": "Import Project",
"icon": "icon.png",
- "enabled": "%{JS: [ %{Plugins} ].indexOf('Bazaar') >= 0}",
+ "enabled": "%{JS: value('Plugins').indexOf('Bazaar') >= 0}",
"options":
[
diff --git a/share/qtcreator/templates/wizards/projects/vcs/cvs/wizard.json b/share/qtcreator/templates/wizards/projects/vcs/cvs/wizard.json
index 15dc344567..10969e3da8 100644
--- a/share/qtcreator/templates/wizards/projects/vcs/cvs/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/vcs/cvs/wizard.json
@@ -7,7 +7,7 @@
"trDisplayName": "CVS Checkout",
"trDisplayCategory": "Import Project",
"icon": "icon.png",
- "enabled": "%{JS: [ %{Plugins} ].indexOf('CVS') >= 0}",
+ "enabled": "%{JS: value('Plugins').indexOf('CVS') >= 0}",
"options":
[
diff --git a/share/qtcreator/templates/wizards/projects/vcs/git/wizard.json b/share/qtcreator/templates/wizards/projects/vcs/git/wizard.json
index be1cd42904..7bebb5c83d 100644
--- a/share/qtcreator/templates/wizards/projects/vcs/git/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/vcs/git/wizard.json
@@ -7,7 +7,7 @@
"trDisplayName": "Git Clone",
"trDisplayCategory": "Import Project",
"icon": "icon.png",
- "enabled": "%{JS: [ %{Plugins} ].indexOf('Git') >= 0}",
+ "enabled": "%{JS: value('Plugins').indexOf('Git') >= 0}",
"options":
[
diff --git a/share/qtcreator/templates/wizards/projects/vcs/mercurial/wizard.json b/share/qtcreator/templates/wizards/projects/vcs/mercurial/wizard.json
index 9fe95ba049..75bd410861 100644
--- a/share/qtcreator/templates/wizards/projects/vcs/mercurial/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/vcs/mercurial/wizard.json
@@ -7,7 +7,7 @@
"trDisplayName": "Mercurial Clone",
"trDisplayCategory": "Import Project",
"icon": "icon.png",
- "enabled": "%{JS: [ %{Plugins} ].indexOf('Mercurial') >= 0}",
+ "enabled": "%{JS: value('Plugins').indexOf('Mercurial') >= 0}",
"options":
[
diff --git a/share/qtcreator/templates/wizards/projects/vcs/subversion/wizard.json b/share/qtcreator/templates/wizards/projects/vcs/subversion/wizard.json
index 7048c37dd6..aef8a28b9a 100644
--- a/share/qtcreator/templates/wizards/projects/vcs/subversion/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/vcs/subversion/wizard.json
@@ -7,7 +7,7 @@
"trDisplayName": "Subversion Checkout",
"trDisplayCategory": "Import Project",
"icon": "icon.png",
- "enabled": "%{JS: [ %{Plugins} ].indexOf('Subversion') >= 0}",
+ "enabled": "%{JS: value('Plugins').indexOf('Subversion') >= 0}",
"options":
[