diff options
| author | Alessandro Portale <alessandro.portale@qt.io> | 2022-02-18 14:52:01 +0100 |
|---|---|---|
| committer | Alessandro Portale <alessandro.portale@qt.io> | 2022-02-18 15:55:22 +0000 |
| commit | a0d19e088e65038815c2c43533d2244c7139d92d (patch) | |
| tree | e102659d43f91f2ceb7c04ce2bdccdddc5bcc901 | |
| parent | 4cbe956722af219be73b6720ad8c804b4cfebd82 (diff) | |
| download | qt-creator-a0d19e088e65038815c2c43533d2244c7139d92d.tar.gz | |
Wizards: Remove the .ui.qml wizard
Qt Creator does not offer editing .ui.qml documents, so it should not
produce them. For creating and editing .ui.qml, please use Qt Design
Studio.
Fixes: QTCREATORBUG-27085
Change-Id: I8bce9379a4bff8762a694067c25a0b266c41c417
Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io>
Reviewed-by: hjk <hjk@qt.io>
3 files changed, 0 insertions, 101 deletions
diff --git a/share/qtcreator/templates/wizards/classes/qtquickui/file.qml.tpl b/share/qtcreator/templates/wizards/classes/qtquickui/file.qml.tpl deleted file mode 100644 index d5287a5f9e..0000000000 --- a/share/qtcreator/templates/wizards/classes/qtquickui/file.qml.tpl +++ /dev/null @@ -1,4 +0,0 @@ -import QtQuick 2.4 - -%{FormClass} { -} diff --git a/share/qtcreator/templates/wizards/classes/qtquickui/fileForm.ui.qml.tpl b/share/qtcreator/templates/wizards/classes/qtquickui/fileForm.ui.qml.tpl deleted file mode 100644 index 96a8ae4f57..0000000000 --- a/share/qtcreator/templates/wizards/classes/qtquickui/fileForm.ui.qml.tpl +++ /dev/null @@ -1,6 +0,0 @@ -import QtQuick 2.4 - -Item { - width: 400 - height: 400 -} diff --git a/share/qtcreator/templates/wizards/classes/qtquickui/wizard.json b/share/qtcreator/templates/wizards/classes/qtquickui/wizard.json deleted file mode 100644 index e8bd200d75..0000000000 --- a/share/qtcreator/templates/wizards/classes/qtquickui/wizard.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "version": 1, - "supportedProjectTypes": [ ], - "id": "R.QtQuickUi", - "category": "R.Qt", - "trDescription": "Creates a Qt Quick Designer UI form along with a matching QML file for implementation purposes. You can add the form and file to an existing Qt Quick Project.", - "trDisplayName": "QtQuick UI File", - "trDisplayCategory": "Qt", - "iconText": "ui.qml", - "featuresRequired": [ "QtSupport.Wizards.FeatureQtQuick.UiFiles" ], - "enabled": "%{JS: value('Plugins').indexOf('QmlJSEditor') >= 0}", - - "options" : [ - { "key": "QmlFile", "value": "%{Class}.%{JS: Util.preferredSuffix('text/x-qml')}" }, - { "key": "UiFile", "value": "%{FormClass}.%{JS: Util.preferredSuffix('application/x-qt.ui+qml')}" } - ], - - "pages" : - [ - { - "trDisplayName": "Define Class", - "trShortTitle": "Details", - "typeId": "Fields", - "data" : - [ - { - "name": "Class", - "trDisplayName": "Component name:", - "mandatory": true, - "type": "LineEdit", - "data": { - "validator": "(?:[A-Z_][a-zA-Z_0-9]*|)", - "fixup": "%{JS: '%{INPUT}'.charAt(0).toUpperCase() + '%{INPUT}'.slice(1) }" - } - }, - - { - "name": "Sp1", - "type": "Spacer", - "data": { "factor": 2 } - }, - { - "name": "FormClass", - "trDisplayName": "Component form name:", - "mandatory": true, - "type": "LineEdit", - "data": { - "validator": "(?:[A-Z_][a-zA-Z_0-9]*|)", - "fixup": "%{JS: '%{INPUT}'.charAt(0).toUpperCase() + '%{INPUT}'.slice(1) }", - "trText": "%{Class}Form" - } - }, - { - "name": "TargetPath", - "type": "PathChooser", - "trDisplayName": "Path:", - "mandatory": true, - "data": - { - "kind": "directory", - "basePath": "%{InitialPath}", - "path": "%{InitialPath}" - } - } - ] - }, - { - "trDisplayName": "Project Management", - "trShortTitle": "Summary", - "typeId": "Summary" - } - ], - "generators" : - [ - { - "typeId": "File", - "data": [ - { - "source": "file.qml.tpl", - "target": "%{TargetPath}/%{QmlFile}", - "openInEditor": true - }, - { - "source": "fileForm.ui.qml.tpl", - "target": "%{TargetPath}/%{UiFile}", - "openInEditor": true - } - ] - } - ] -} |
