aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates/wizards/files/cppheader/wizard.json
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/wizards/files/cppheader/wizard.json')
-rw-r--r--share/qtcreator/templates/wizards/files/cppheader/wizard.json11
1 files changed, 7 insertions, 4 deletions
diff --git a/share/qtcreator/templates/wizards/files/cppheader/wizard.json b/share/qtcreator/templates/wizards/files/cppheader/wizard.json
index efb0ea8119..36956636a3 100644
--- a/share/qtcreator/templates/wizards/files/cppheader/wizard.json
+++ b/share/qtcreator/templates/wizards/files/cppheader/wizard.json
@@ -3,13 +3,16 @@
"supportedProjectTypes": [ ],
"id": "C.Header",
"category": "O.C++",
- "trDescription": "Creates a C++ header file that you can add to a C++ project.",
- "trDisplayName": "C++ Header File",
- "trDisplayCategory": "C++",
+ "trDescription": "Creates a header file that you can add to a C/C++ project.",
+ "trDisplayName": "C/C++ Header File",
+ "trDisplayCategory": "C/C++",
"iconText": "h",
"enabled": "%{JS: value('Plugins').indexOf('CppEditor') >= 0}",
- "options": { "key": "FileName", "value": "%{JS: Util.fileName(value('TargetPath'), Util.preferredSuffix('text/x-c++hdr'))}" },
+ "options": [
+ { "key": "DefaultSuffix", "value": "%{JS: Util.preferredSuffix('text/x-c++hdr')}" },
+ { "key": "FileName", "value": "%{JS: Util.fileName(value('TargetPath'), value('DefaultSuffix'))}" }
+ ],
"pages" :
[