aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates/wizards/projects/qtforpythonapplication/qtquickapplication/wizard.json
blob: b1b75fc0885a354ad104cfcf5bdb5648baf689f2 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
    "version": 1,
    "supportedProjectTypes": [ "PythonProject" ],
    "id": "F.QtQuickQtForPythonApplicationEmpty",
    "category": "F.ApplicationPySide",
    "trDescription": "Creates a Qt Quick application that contains an empty window.",
    "trDisplayName": "Qt Quick Application - Empty",
    "trDisplayCategory": "Application (Qt for Python)",
    "icon": "../icons/icon.png",
    "iconKind": "Themed",
    "enabled": "%{JS: value('Plugins').indexOf('Python') >= 0 && (!value('Platform').length || ['Desktop', 'DockerDeviceType', 'GenericLinuxOsType'].includes(value('Platform')))}",

    "options":
    [
        { "key": "SrcFileName", "value": "main.py" },
        { "key": "QmlFileName", "value": "main.qml" },
        { "key": "PyProjectFile", "value": "%{JS: Util.fileName('%{ProjectName}', 'pyproject')}" },
        { "key": "QtQuickVersion", "value": "%{JS: value('QtVersion').QtQuickVersion}" },
        { "key": "QtQuickWindowVersion", "value": "%{JS: value('QtVersion').QtQuickWindowVersion}" },
        { "key": "PySideVersion", "value": "%{JS: value('QtVersion').PySideVersion}" }
    ],

    "pages":
    [
        {
            "trDisplayName": "Project Location",
            "trShortTitle": "Location",
            "typeId": "Project"
        },
        {
            "trDisplayName": "Define Project Details",
            "trShortTitle": "Details",
            "typeId": "PythonConfiguration",
            "data":
            {
                "index": 0,
                "items":
                [
                    {
                        "trKey": "PySide 6",
                        "value":
                        {
                            "QtQuickVersion": "",
                            "QtQuickWindowVersion": "",
                            "PySideVersion": "PySide6"
                        }
                    },
                    {
                        "trKey": "PySide 5.15",
                        "value":
                        {
                            "QtQuickVersion": "2.15",
                            "QtQuickWindowVersion": "2.15",
                            "PySideVersion": "PySide2"
                        }
                    },
                    {
                        "trKey": "PySide 5.14",
                        "value":
                        {
                            "QtQuickVersion": "2.14",
                            "QtQuickWindowVersion": "2.14",
                            "PySideVersion": "PySide2"
                        }
                    },
                    {
                        "trKey": "PySide 5.13",
                        "value":
                        {
                            "QtQuickVersion": "2.13",
                            "QtQuickWindowVersion": "2.13",
                            "PySideVersion": "PySide2"
                        }
                    },
                    {
                        "trKey": "PySide 5.12",
                        "value":
                        {
                            "QtQuickVersion": "2.12",
                            "QtQuickWindowVersion": "2.12",
                            "PySideVersion": "PySide2"
                        }
                    }
                ]
            }
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators":
    [
        {
            "typeId": "File",
            "data":
            [
                {
                    "source": "../main_qtquick.py",
                    "target": "%{SrcFileName}"
                },
                {
                    "source": "main.pyproject",
                    "target": "%{PyProjectFile}",
                    "openAsProject": true
                },
                {
                    "source": "main.qml.tpl",
                    "target": "%{QmlFileName}",
                    "openInEditor": true
                },
                {
                    "source": "../../git.ignore",
                    "target": ".gitignore",
                    "condition": "%{JS: !value('IsSubproject') && value('VersionControl') === 'G.Git'}"
                }
            ]
        }
    ]
}