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