diff --git a/share/qtcreator/templates/wizards/qml-extension/wizard.xml b/share/qtcreator/templates/wizards/qml-extension/wizard.xml index 90f69b80be9..1f638d2006d 100644 --- a/share/qtcreator/templates/wizards/qml-extension/wizard.xml +++ b/share/qtcreator/templates/wizards/qml-extension/wizard.xml @@ -36,7 +36,7 @@ leave room for the Qt 4 target page. --> + id="QmlExtensionPlugin" category="I.Projects" enabled="true"> lib.png Creates a C++ plugin that makes it possible to offer extensions that can be loaded dynamically into applications using the QDeclarativeEngine class. Custom QML Extension Plugin diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro index 50473668b3e..b72621b4f63 100644 --- a/src/plugins/plugins.pro +++ b/src/plugins/plugins.pro @@ -41,7 +41,7 @@ contains(QT_CONFIG, declarative) { SUBDIRS += plugin_qmlprojectmanager !isEmpty(SUPPORT_QT_QML) { - message("Adding support for QmlDesigner, QmlInspector and Qml wizards.") + message("Adding support for QmlInspector.") } include(private_headers.pri) diff --git a/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp b/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp index 3f7727408ea..28271bd5398 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp @@ -31,6 +31,7 @@ #include "qmlprojectconstants.h" +#include #include #include @@ -73,7 +74,11 @@ Core::BaseFileWizardParameters QmlProjectApplicationWizard::parameters() parameters.setId(QLatin1String("QA.QML Application")); parameters.setDescription(tr("Creates a QML application project with a single QML file containing the main view.\n\n" "QML application projects are executed by the Qt QML Viewer and do not need to be built.")); +#ifdef QTCREATOR_WITH_QML parameters.setCategory(QLatin1String(Constants::QML_WIZARD_CATEGORY)); +#else + parameters.setCategory(QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY)); +#endif parameters.setDisplayCategory(QCoreApplication::translate(Constants::QML_WIZARD_TR_SCOPE, Constants::QML_WIZARD_TR_CATEGORY)); return parameters; diff --git a/src/plugins/qmlprojectmanager/qmlprojectimportwizard.cpp b/src/plugins/qmlprojectmanager/qmlprojectimportwizard.cpp index 640f0175e38..7d5731bfc5b 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectimportwizard.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectimportwizard.cpp @@ -33,6 +33,7 @@ #include #include +#include #include #include @@ -116,7 +117,11 @@ Core::BaseFileWizardParameters QmlProjectImportWizard::parameters() parameters.setDisplayName(tr("Import Existing QML Directory")); parameters.setId(QLatin1String("QI.QML Import")); parameters.setDescription(tr("Creates a QML project from an existing directory of QML files.")); +#ifdef QTCREATOR_WITH_QML parameters.setCategory(QLatin1String(Constants::QML_WIZARD_CATEGORY)); +#else + parameters.setCategory(QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY)); +#endif parameters.setDisplayCategory(QCoreApplication::translate(Constants::QML_WIZARD_TR_SCOPE, Constants::QML_WIZARD_TR_CATEGORY)); return parameters; diff --git a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp index 3a321bfc8fa..144d5d00880 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp @@ -82,10 +82,8 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage) addAutoReleasedObject(manager); addAutoReleasedObject(new Internal::QmlProjectRunConfigurationFactory); addAutoReleasedObject(new Internal::QmlRunControlFactory); -#ifdef QTCREATOR_WITH_QML addAutoReleasedObject(new QmlProjectApplicationWizard); addAutoReleasedObject(new QmlProjectImportWizard); -#endif QmlProjectFileFormat::registerDeclarativeTypes();