aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates/wizards/files/qtquick2/wizard.json
blob: 0fa070cf934997c974b2f8ae032aba9e80230b02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
    "version": 1,
    "supportedProjectTypes": [ ],
    "id": "Q.Qml.2",
    "category": "R.Qt",
    "trDescription": "Creates a QML file with boilerplate code, starting with \"import QtQuick 2.0\".",
    "trDisplayName": "QML File (Qt Quick 2)",
    "trDisplayCategory": "Qt",
    "iconText": "qml",
    "enabled": "%{JS: value('Plugins').indexOf('QmlJSEditor') >= 0}",

    "options": { "key": "DefaultSuffix", "value": "%{JS: Util.preferredSuffix('text/x-qml')}" },

    "pages" :
    [
        {
            "trDisplayName": "Location",
            "trShortTitle": "Location",
            "typeId": "File"
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators" :
    [
        {
            "typeId": "File",
            "data":
            {
                "source": "file.qml.tpl",
                "target": "%{JS: Util.fileName(value('TargetPath'), value('DefaultSuffix'))}",
                "openInEditor": true
            }
        }
    ]
}