diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2014-09-18 16:00:51 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-09-30 10:56:32 +0200 |
commit | 31b83d27e8e46156db10cc25f36772682f0ff103 (patch) | |
tree | 8058a23f0b06cb548369c85edbe59fd60a094e3b /share | |
parent | f51fcacacb6f67590a8a09e433b8b976b493a270 (diff) | |
download | qt-creator-31b83d27e8e46156db10cc25f36772682f0ff103.tar.gz |
ResourceEditor: Replace ResourceWizard with a JsonWizard
Change-Id: I0fb76c8627f65329d1bfebecf44cc3c75e6b07b5
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/templates/wizards/files/qrc/file.qrc | 2 | ||||
-rw-r--r-- | share/qtcreator/templates/wizards/files/qrc/wizard.json | 37 |
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 + } + } + ] +} |