diff options
author | jkobus <jaroslaw.kobus@digia.com> | 2013-11-06 16:42:25 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@digia.com> | 2013-11-11 15:27:35 +0100 |
commit | c31b03f1d0fecec559de5a877f2ea3d4e52b1dbc (patch) | |
tree | e6e1599036a2d584b9f6b1e5ddde68d7de412a60 /share | |
parent | a0554422dcb4c7508470e6bcb0bd03b947496d96 (diff) |
Restructure qtquick templates, read them dynamically
Change-Id: I11dfac8ce8d6b1e68df0151516cdc03247fffe3a
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/templates/qml/qtquick_1_1/main.qml (renamed from share/qtcreator/templates/qml/qtquick1_1/main.qml) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qml/qtquick_1_1/main.qmlproject (renamed from share/qtcreator/templates/qml/qtquick1_1/main.qmlproject) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qml/qtquick_1_1/template.xml (renamed from share/qtcreator/templates/qml/qtquick1_1/template.xml) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qml/qtquick_2_0/main.qml (renamed from share/qtcreator/templates/qml/qtquick2/main.qml) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qml/qtquick_2_0/main.qmlproject (renamed from share/qtcreator/templates/qml/qtquick2/main.qmlproject) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qml/qtquick_2_0/template.xml (renamed from share/qtcreator/templates/qml/qtquick2/template.xml) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qml (renamed from share/qtcreator/templates/qml/qtquickcontrols/main.qml) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qmlproject (renamed from share/qtcreator/templates/qml/qtquickcontrols/main.qmlproject) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qml/qtquickcontrols_1_0/template.xml (renamed from share/qtcreator/templates/qml/qtquickcontrols/template.xml) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_1_1/app.pro (renamed from share/qtcreator/templates/qtquick1app/app.pro) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_1_1/main.cpp (renamed from share/qtcreator/templates/qtquick1app/main.cpp) | 2 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_1_1/qml/app/main.qml (renamed from share/qtcreator/templates/qtquick1app/qml/app/main.qml) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_1_1/qtquick1applicationviewer/qtquick1applicationviewer.cpp (renamed from share/qtcreator/templates/qtquick1app/qtquick1applicationviewer/qtquick1applicationviewer.cpp) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_1_1/qtquick1applicationviewer/qtquick1applicationviewer.h (renamed from share/qtcreator/templates/qtquick1app/qtquick1applicationviewer/qtquick1applicationviewer.h) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_1_1/qtquick1applicationviewer/qtquick1applicationviewer.pri (renamed from share/qtcreator/templates/qtquick1app/qtquick1applicationviewer/qtquick1applicationviewer.pri) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_1_1/template.xml | 9 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_2_0/app.pro (renamed from share/qtcreator/templates/qtquick2app/app.pro) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_2_0/main.cpp (renamed from share/qtcreator/templates/qtquick2app/main.cpp) | 2 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_2_0/qml/app/main.qml (renamed from share/qtcreator/templates/qtquick2app/qml/app/main.qml) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_2_0/qtquick2applicationviewer/qtquick2applicationviewer.cpp (renamed from share/qtcreator/templates/qtquick2app/qtquick2applicationviewer/qtquick2applicationviewer.cpp) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_2_0/qtquick2applicationviewer/qtquick2applicationviewer.h (renamed from share/qtcreator/templates/qtquick2app/qtquick2applicationviewer/qtquick2applicationviewer.h) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_2_0/qtquick2applicationviewer/qtquick2applicationviewer.pri (renamed from share/qtcreator/templates/qtquick2app/qtquick2applicationviewer/qtquick2applicationviewer.pri) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquick_2_0/template.xml | 9 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquickcontrols_1_0/app.pro (renamed from share/qtcreator/templates/qtquick2controls/app.pro) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquickcontrols_1_0/main.cpp (renamed from share/qtcreator/templates/qtquick2controls/main.cpp) | 2 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qml/app/main.qml (renamed from share/qtcreator/templates/qtquick2controls/qml/app/main.qml) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.cpp (renamed from share/qtcreator/templates/qtquick2controls/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.cpp) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.h (renamed from share/qtcreator/templates/qtquick2controls/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.h) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.pri (renamed from share/qtcreator/templates/qtquick2controls/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.pri) | 0 | ||||
-rw-r--r-- | share/qtcreator/templates/qtquick/qtquickcontrols_1_0/template.xml | 9 | ||||
-rw-r--r-- | share/qtcreator/translations/extract-qtquickwizards.xq | 6 | ||||
-rw-r--r-- | share/qtcreator/translations/translations.pro | 9 |
32 files changed, 43 insertions, 5 deletions
diff --git a/share/qtcreator/templates/qml/qtquick1_1/main.qml b/share/qtcreator/templates/qml/qtquick_1_1/main.qml index 921baa6006..921baa6006 100644 --- a/share/qtcreator/templates/qml/qtquick1_1/main.qml +++ b/share/qtcreator/templates/qml/qtquick_1_1/main.qml diff --git a/share/qtcreator/templates/qml/qtquick1_1/main.qmlproject b/share/qtcreator/templates/qml/qtquick_1_1/main.qmlproject index 558f68d035..558f68d035 100644 --- a/share/qtcreator/templates/qml/qtquick1_1/main.qmlproject +++ b/share/qtcreator/templates/qml/qtquick_1_1/main.qmlproject diff --git a/share/qtcreator/templates/qml/qtquick1_1/template.xml b/share/qtcreator/templates/qml/qtquick_1_1/template.xml index ee2868b0af..ee2868b0af 100644 --- a/share/qtcreator/templates/qml/qtquick1_1/template.xml +++ b/share/qtcreator/templates/qml/qtquick_1_1/template.xml diff --git a/share/qtcreator/templates/qml/qtquick2/main.qml b/share/qtcreator/templates/qml/qtquick_2_0/main.qml index b3d4ef33d4..b3d4ef33d4 100644 --- a/share/qtcreator/templates/qml/qtquick2/main.qml +++ b/share/qtcreator/templates/qml/qtquick_2_0/main.qml diff --git a/share/qtcreator/templates/qml/qtquick2/main.qmlproject b/share/qtcreator/templates/qml/qtquick_2_0/main.qmlproject index 558f68d035..558f68d035 100644 --- a/share/qtcreator/templates/qml/qtquick2/main.qmlproject +++ b/share/qtcreator/templates/qml/qtquick_2_0/main.qmlproject diff --git a/share/qtcreator/templates/qml/qtquick2/template.xml b/share/qtcreator/templates/qml/qtquick_2_0/template.xml index 869805e073..869805e073 100644 --- a/share/qtcreator/templates/qml/qtquick2/template.xml +++ b/share/qtcreator/templates/qml/qtquick_2_0/template.xml diff --git a/share/qtcreator/templates/qml/qtquickcontrols/main.qml b/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qml index f886b99fb9..f886b99fb9 100644 --- a/share/qtcreator/templates/qml/qtquickcontrols/main.qml +++ b/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qml diff --git a/share/qtcreator/templates/qml/qtquickcontrols/main.qmlproject b/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qmlproject index 558f68d035..558f68d035 100644 --- a/share/qtcreator/templates/qml/qtquickcontrols/main.qmlproject +++ b/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qmlproject diff --git a/share/qtcreator/templates/qml/qtquickcontrols/template.xml b/share/qtcreator/templates/qml/qtquickcontrols_1_0/template.xml index 7494ab1dd7..7494ab1dd7 100644 --- a/share/qtcreator/templates/qml/qtquickcontrols/template.xml +++ b/share/qtcreator/templates/qml/qtquickcontrols_1_0/template.xml diff --git a/share/qtcreator/templates/qtquick1app/app.pro b/share/qtcreator/templates/qtquick/qtquick_1_1/app.pro index 19aef27281..19aef27281 100644 --- a/share/qtcreator/templates/qtquick1app/app.pro +++ b/share/qtcreator/templates/qtquick/qtquick_1_1/app.pro diff --git a/share/qtcreator/templates/qtquick1app/main.cpp b/share/qtcreator/templates/qtquick/qtquick_1_1/main.cpp index 70b2e9ea7e..da0c307555 100644 --- a/share/qtcreator/templates/qtquick1app/main.cpp +++ b/share/qtcreator/templates/qtquick/qtquick_1_1/main.cpp @@ -8,7 +8,7 @@ int main(int argc, char *argv[]) QtQuick1ApplicationViewer viewer; viewer.addImportPath(QLatin1String("modules")); // ADDIMPORTPATH viewer.setOrientation(QtQuick1ApplicationViewer::ScreenOrientationAuto); // ORIENTATION - viewer.setMainQmlFile(QLatin1String("qml/app/qtquick10/main.qml")); // MAINQML + viewer.setMainQmlFile(QLatin1String("qml/app/main.qml")); // MAINQML viewer.showExpanded(); return app.exec(); diff --git a/share/qtcreator/templates/qtquick1app/qml/app/main.qml b/share/qtcreator/templates/qtquick/qtquick_1_1/qml/app/main.qml index 460a22fc2c..460a22fc2c 100644 --- a/share/qtcreator/templates/qtquick1app/qml/app/main.qml +++ b/share/qtcreator/templates/qtquick/qtquick_1_1/qml/app/main.qml diff --git a/share/qtcreator/templates/qtquick1app/qtquick1applicationviewer/qtquick1applicationviewer.cpp b/share/qtcreator/templates/qtquick/qtquick_1_1/qtquick1applicationviewer/qtquick1applicationviewer.cpp index d487e109f9..d487e109f9 100644 --- a/share/qtcreator/templates/qtquick1app/qtquick1applicationviewer/qtquick1applicationviewer.cpp +++ b/share/qtcreator/templates/qtquick/qtquick_1_1/qtquick1applicationviewer/qtquick1applicationviewer.cpp diff --git a/share/qtcreator/templates/qtquick1app/qtquick1applicationviewer/qtquick1applicationviewer.h b/share/qtcreator/templates/qtquick/qtquick_1_1/qtquick1applicationviewer/qtquick1applicationviewer.h index b9dc3a9fee..b9dc3a9fee 100644 --- a/share/qtcreator/templates/qtquick1app/qtquick1applicationviewer/qtquick1applicationviewer.h +++ b/share/qtcreator/templates/qtquick/qtquick_1_1/qtquick1applicationviewer/qtquick1applicationviewer.h diff --git a/share/qtcreator/templates/qtquick1app/qtquick1applicationviewer/qtquick1applicationviewer.pri b/share/qtcreator/templates/qtquick/qtquick_1_1/qtquick1applicationviewer/qtquick1applicationviewer.pri index 030edc1d01..030edc1d01 100644 --- a/share/qtcreator/templates/qtquick1app/qtquick1applicationviewer/qtquick1applicationviewer.pri +++ b/share/qtcreator/templates/qtquick/qtquick_1_1/qtquick1applicationviewer/qtquick1applicationviewer.pri diff --git a/share/qtcreator/templates/qtquick/qtquick_1_1/template.xml b/share/qtcreator/templates/qtquick/qtquick_1_1/template.xml new file mode 100644 index 0000000000..78a45b4ba5 --- /dev/null +++ b/share/qtcreator/templates/qtquick/qtquick_1_1/template.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<template openeditor="main.qml" priority="C" + featuresRequired="QtSupport.Wizards.FeatureQtQuick, QtSupport.Wizards.FeatureQtQuick.1.1" + viewerdir="qtquick1applicationviewer" + viewerclassname="QtQuick1ApplicationViewer" + stubversionminor="24"> + <displayname>Qt Quick 1.1</displayname> + <description>Creates a Qt Quick 1 application project that can contain both QML and C++ code and includes a QDeclarativeView. The built-in QML types in the QtQuick 1 namespace allow you to write cross-platform applications with a custom look and feel. Requires Qt 4.8 or newer.</description> +</template> diff --git a/share/qtcreator/templates/qtquick2app/app.pro b/share/qtcreator/templates/qtquick/qtquick_2_0/app.pro index 2495771e53..2495771e53 100644 --- a/share/qtcreator/templates/qtquick2app/app.pro +++ b/share/qtcreator/templates/qtquick/qtquick_2_0/app.pro diff --git a/share/qtcreator/templates/qtquick2app/main.cpp b/share/qtcreator/templates/qtquick/qtquick_2_0/main.cpp index fb3846ec62..fd46906328 100644 --- a/share/qtcreator/templates/qtquick2app/main.cpp +++ b/share/qtcreator/templates/qtquick/qtquick_2_0/main.cpp @@ -6,7 +6,7 @@ int main(int argc, char *argv[]) QGuiApplication app(argc, argv); QtQuick2ApplicationViewer viewer; - viewer.setMainQmlFile(QStringLiteral("qml/app/qtquick20/main.qml")); // MAINQML + viewer.setMainQmlFile(QStringLiteral("qml/app/main.qml")); // MAINQML viewer.showExpanded(); return app.exec(); diff --git a/share/qtcreator/templates/qtquick2app/qml/app/main.qml b/share/qtcreator/templates/qtquick/qtquick_2_0/qml/app/main.qml index 897812a6cb..897812a6cb 100644 --- a/share/qtcreator/templates/qtquick2app/qml/app/main.qml +++ b/share/qtcreator/templates/qtquick/qtquick_2_0/qml/app/main.qml diff --git a/share/qtcreator/templates/qtquick2app/qtquick2applicationviewer/qtquick2applicationviewer.cpp b/share/qtcreator/templates/qtquick/qtquick_2_0/qtquick2applicationviewer/qtquick2applicationviewer.cpp index 127a25e6c4..127a25e6c4 100644 --- a/share/qtcreator/templates/qtquick2app/qtquick2applicationviewer/qtquick2applicationviewer.cpp +++ b/share/qtcreator/templates/qtquick/qtquick_2_0/qtquick2applicationviewer/qtquick2applicationviewer.cpp diff --git a/share/qtcreator/templates/qtquick2app/qtquick2applicationviewer/qtquick2applicationviewer.h b/share/qtcreator/templates/qtquick/qtquick_2_0/qtquick2applicationviewer/qtquick2applicationviewer.h index 6eee3c89b9..6eee3c89b9 100644 --- a/share/qtcreator/templates/qtquick2app/qtquick2applicationviewer/qtquick2applicationviewer.h +++ b/share/qtcreator/templates/qtquick/qtquick_2_0/qtquick2applicationviewer/qtquick2applicationviewer.h diff --git a/share/qtcreator/templates/qtquick2app/qtquick2applicationviewer/qtquick2applicationviewer.pri b/share/qtcreator/templates/qtquick/qtquick_2_0/qtquick2applicationviewer/qtquick2applicationviewer.pri index 5123a2567e..5123a2567e 100644 --- a/share/qtcreator/templates/qtquick2app/qtquick2applicationviewer/qtquick2applicationviewer.pri +++ b/share/qtcreator/templates/qtquick/qtquick_2_0/qtquick2applicationviewer/qtquick2applicationviewer.pri diff --git a/share/qtcreator/templates/qtquick/qtquick_2_0/template.xml b/share/qtcreator/templates/qtquick/qtquick_2_0/template.xml new file mode 100644 index 0000000000..b3868c7161 --- /dev/null +++ b/share/qtcreator/templates/qtquick/qtquick_2_0/template.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<template openeditor="main.qml" priority="B" + featuresRequired="QtSupport.Wizards.FeatureQtQuick, QtSupport.Wizards.FeatureQtQuick.2" + viewerdir="qtquick2applicationviewer" + viewerclassname="QtQuick2ApplicationViewer" + stubversionminor="5"> + <displayname>Qt Quick 2.0</displayname> + <description>Creates a Qt Quick 2 application project that can contain both QML and C++ code and includes a QQuickView. The built-in QML types in the QtQuick 2 namespace allow you to write cross-platform applications with a custom look and feel. Requires Qt 5.0 or newer.</description> +</template> diff --git a/share/qtcreator/templates/qtquick2controls/app.pro b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/app.pro index be20dc0770..be20dc0770 100644 --- a/share/qtcreator/templates/qtquick2controls/app.pro +++ b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/app.pro diff --git a/share/qtcreator/templates/qtquick2controls/main.cpp b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/main.cpp index a06bf0157d..18fd2076cf 100644 --- a/share/qtcreator/templates/qtquick2controls/main.cpp +++ b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/main.cpp @@ -5,7 +5,7 @@ int main(int argc, char *argv[]) Application app(argc, argv); QtQuick2ControlsApplicationViewer viewer; - viewer.setMainQmlFile(QStringLiteral("qml/app/qtquick21/main.qml")); // MAINQML + viewer.setMainQmlFile(QStringLiteral("qml/app/main.qml")); // MAINQML viewer.show(); return app.exec(); diff --git a/share/qtcreator/templates/qtquick2controls/qml/app/main.qml b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qml/app/main.qml index 4069d1e713..4069d1e713 100644 --- a/share/qtcreator/templates/qtquick2controls/qml/app/main.qml +++ b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qml/app/main.qml diff --git a/share/qtcreator/templates/qtquick2controls/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.cpp b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.cpp index 7198a903b4..7198a903b4 100644 --- a/share/qtcreator/templates/qtquick2controls/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.cpp +++ b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.cpp diff --git a/share/qtcreator/templates/qtquick2controls/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.h b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.h index 76c12b7720..76c12b7720 100644 --- a/share/qtcreator/templates/qtquick2controls/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.h +++ b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.h diff --git a/share/qtcreator/templates/qtquick2controls/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.pri b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.pri index 32007f73fd..32007f73fd 100644 --- a/share/qtcreator/templates/qtquick2controls/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.pri +++ b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/qtquick2controlsapplicationviewer/qtquick2controlsapplicationviewer.pri diff --git a/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/template.xml b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/template.xml new file mode 100644 index 0000000000..45b12b8207 --- /dev/null +++ b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/template.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<template openeditor="main.qml" priority="A" + featuresRequired="QtSupport.Wizards.FeatureQtQuick, QtSupport.Wizards.FeatureQtQuick.2, QtSupport.Wizards.FeatureQtQuick.Controls" + viewerdir="qtquick2controlsapplicationviewer" + viewerclassname="QtQuick2ControlsApplicationViewer" + stubversionminor="1"> + <displayname>Qt Quick Controls 1.0</displayname> + <description>Creates a Qt Quick 2 application project that can contain both QML and C++ code and includes a QQuickView. Creates a deployable Qt Quick application using Qt Quick Controls. All files and directories that reside in the same directory as the main .qml file are deployed. You can modify the contents of the directory any time before deploying. Requires Qt 5.1 or newer.</description> +</template> diff --git a/share/qtcreator/translations/extract-qtquickwizards.xq b/share/qtcreator/translations/extract-qtquickwizards.xq new file mode 100644 index 0000000000..cbe3a3be74 --- /dev/null +++ b/share/qtcreator/translations/extract-qtquickwizards.xq @@ -0,0 +1,6 @@ +let $prefix := string("QT_TRANSLATE_NOOP("QmakeProjectManager::QtQuickAppWizard", "") +let $suffix := concat("")", codepoints-to-string(10)) +for $file in tokenize($files, string("\|")) + let $doc := doc($file) + for $text in ($doc/*:template/*:description, $doc/*:template/*:displayname) + return fn:concat($prefix, data($text), $suffix) diff --git a/share/qtcreator/translations/translations.pro b/share/qtcreator/translations/translations.pro index 547f7557a9..d209ca73c1 100644 --- a/share/qtcreator/translations/translations.pro +++ b/share/qtcreator/translations/translations.pro @@ -22,6 +22,7 @@ TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/qtcreator_,.ts) MIME_TR_H = $$OUT_PWD/mime_tr.h CUSTOMWIZARD_TR_H = $$OUT_PWD/customwizard_tr.h QMLWIZARD_TR_H = $$OUT_PWD/qmlwizard_tr.h +QTQUICKWIZARD_TR_H = $$OUT_PWD/qtquickwizard_tr.h EXTERNALTOOLS_TR_H = $$OUT_PWD/externaltools_tr.h for(dir, $$list($$files($$IDE_SOURCE_TREE/src/plugins/*))):MIMETYPES_FILES += $$files($$dir/*.mimetypes.xml) @@ -33,6 +34,9 @@ CUSTOMWIZARD_FILES = \"$$join(CUSTOMWIZARD_FILES, |)\" for(dir, $$list($$files($$IDE_SOURCE_TREE/share/qtcreator/templates/qml/*))):QMLWIZARD_FILES += $$files($$dir/template.xml) QMLWIZARD_FILES = \"$$join(QMLWIZARD_FILES, |)\" +for(dir, $$list($$files($$IDE_SOURCE_TREE/share/qtcreator/templates/qtquick/*))):QTQUICKWIZARD_FILES += $$files($$dir/template.xml) +QTQUICKWIZARD_FILES = \"$$join(QTQUICKWIZARD_FILES, |)\" + for(file, $$list($$files($$IDE_SOURCE_TREE/src/share/qtcreator/externaltools/*))):EXTERNALTOOLS_FILES += $$files($$file) EXTERNALTOOLS_FILES = \"$$join(EXTERNALTOOLS_FILES, |)\" @@ -40,6 +44,7 @@ extract.commands += \ $$XMLPATTERNS -output $$MIME_TR_H -param files=$$MIMETYPES_FILES $$PWD/extract-mimetypes.xq $$escape_expand(\\n\\t) \ $$XMLPATTERNS -output $$CUSTOMWIZARD_TR_H -param files=$$CUSTOMWIZARD_FILES $$PWD/extract-customwizards.xq $$escape_expand(\\n\\t) \ $$XMLPATTERNS -output $$QMLWIZARD_TR_H -param files=$$QMLWIZARD_FILES $$PWD/extract-qmlwizards.xq $$escape_expand(\\n\\t) \ + $$XMLPATTERNS -output $$QTQUICKWIZARD_TR_H -param files=$$QTQUICKWIZARD_FILES $$PWD/extract-qtquickwizards.xq $$escape_expand(\\n\\t) \ $$XMLPATTERNS -output $$EXTERNALTOOLS_TR_H -param files=$$EXTERNALTOOLS_FILES $$PWD/extract-externaltools.xq QMAKE_EXTRA_TARGETS += extract @@ -59,12 +64,12 @@ files = $$files($$PWD/*_??.ts) $$PWD/qtcreator_untranslated.ts for(file, files) { lang = $$replace(file, .*_([^/]*)\\.ts, \\1) v = ts-$${lang}.commands - $$v = cd $$wd && $$LUPDATE $$sources $$MIME_TR_H $$CUSTOMWIZARD_TR_H $$QMLWIZARD_TR_H $$EXTERNALTOOLS_TR_H -ts $$file + $$v = cd $$wd && $$LUPDATE $$sources $$MIME_TR_H $$CUSTOMWIZARD_TR_H $$QMLWIZARD_TR_H $$QTQUICKWIZARD_TR_H $$EXTERNALTOOLS_TR_H -ts $$file v = ts-$${lang}.depends $$v = extract QMAKE_EXTRA_TARGETS += ts-$$lang } -ts-all.commands = cd $$wd && $$LUPDATE $$sources $$MIME_TR_H $$CUSTOMWIZARD_TR_H $$QMLWIZARD_TR_H $$EXTERNALTOOLS_TR_H -ts $$files +ts-all.commands = cd $$wd && $$LUPDATE $$sources $$MIME_TR_H $$CUSTOMWIZARD_TR_H $$QMLWIZARD_TR_H $$QTQUICKWIZARD_TR_H$$EXTERNALTOOLS_TR_H -ts $$files ts-all.depends = extract QMAKE_EXTRA_TARGETS += ts-all |