summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/templates/wizards/files/qrc/file.qrc2
-rw-r--r--share/qtcreator/templates/wizards/files/qrc/wizard.json37
2 files changed, 39 insertions, 0 deletions
diff --git a/share/qtcreator/templates/wizards/files/qrc/file.qrc b/share/qtcreator/templates/wizards/files/qrc/file.qrc
new file mode 100644
index 0000000000..807350da3b
--- /dev/null
+++ b/share/qtcreator/templates/wizards/files/qrc/file.qrc
@@ -0,0 +1,2 @@
+<RCC/>
+
diff --git a/share/qtcreator/templates/wizards/files/qrc/wizard.json b/share/qtcreator/templates/wizards/files/qrc/wizard.json
new file mode 100644
index 0000000000..9a56551526
--- /dev/null
+++ b/share/qtcreator/templates/wizards/files/qrc/wizard.json
@@ -0,0 +1,37 @@
+{
+ "version": 1,
+ "kind": "file",
+ "id": "F.Resource",
+ "category": "R.Qt",
+ "trDescription": "Creates a Qt Resource file (.qrc).",
+ "trDisplayName": "Qt Resource File",
+ "trDisplayCategory": "Qt",
+ "icon": "../../global/genericfilewizard.png",
+ "featuresRequired": [ "Plugin.ResourceEditor" ],
+
+ "pages" :
+ [
+ {
+ "trDisplayName": "Location",
+ "trShortTitle": "Location",
+ "typeId": "File"
+ },
+ {
+ "trDisplayName": "Project Management",
+ "trShortTitle": "Summary",
+ "typeId": "Summary"
+ }
+ ],
+ "generators" :
+ [
+ {
+ "typeId": "File",
+ "data":
+ {
+ "source": "file.qrc",
+ "target": "%{JS: Cpp.fileName('%{TargetPath}', '%{JS: Util.preferredSuffix('application/vnd.qt.xml.resource')}')}",
+ "openInEditor": true
+ }
+ }
+ ]
+}