diff options
Diffstat (limited to 'share/qtcreator/templates/wizards/files/qtquick2/wizard.json')
-rw-r--r-- | share/qtcreator/templates/wizards/files/qtquick2/wizard.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qtcreator/templates/wizards/files/qtquick2/wizard.json b/share/qtcreator/templates/wizards/files/qtquick2/wizard.json index ead52b1687..0fa070cf93 100644 --- a/share/qtcreator/templates/wizards/files/qtquick2/wizard.json +++ b/share/qtcreator/templates/wizards/files/qtquick2/wizard.json @@ -9,6 +9,8 @@ "iconText": "qml", "enabled": "%{JS: value('Plugins').indexOf('QmlJSEditor') >= 0}", + "options": { "key": "DefaultSuffix", "value": "%{JS: Util.preferredSuffix('text/x-qml')}" }, + "pages" : [ { @@ -29,7 +31,7 @@ "data": { "source": "file.qml.tpl", - "target": "%{JS: Util.fileName(value('TargetPath'), Util.preferredSuffix('text/x-qml'))}", + "target": "%{JS: Util.fileName(value('TargetPath'), value('DefaultSuffix'))}", "openInEditor": true } } |