diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2013-01-11 13:31:03 +0100 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2013-01-11 14:59:12 +0100 |
commit | d26ec5048f368d293a6a71bf4a79a494ef2f0e57 (patch) | |
tree | 838cfcc2b4ec13d7f76b8a4cb815b2b2caa8d654 /src/plugins/qmlprojectmanager/qmlprojectplugin.cpp | |
parent | 4e0880bde4be6892721119ddf0f37d2171f3409e (diff) | |
download | qt-creator-d26ec5048f368d293a6a71bf4a79a494ef2f0e57.tar.gz |
QmlProjectPlugin: replacing QmlProjectApplicationWizard
The new wizard is template based. This allows easy addition of
custom QML templates and also allows us to add more QML wizards
for e. g. components later.
This template mechanism allows substitution in comment, which
allows us to keep valid QML file as templates.
This reduces the maintance burden significantly.
Change-Id: I7766b037635131da2af5aae518d6fe4597ff8b9f
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qmlprojectplugin.cpp')
-rw-r--r-- | src/plugins/qmlprojectmanager/qmlprojectplugin.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp index eb738d1e1d..1388e1bc11 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp @@ -29,11 +29,11 @@ #include "qmlprojectplugin.h" #include "qmlprojectmanager.h" -#include "qmlprojectapplicationwizard.h" #include "qmlprojectconstants.h" #include "qmlproject.h" #include "qmlprojectrunconfigurationfactory.h" #include "qmlprojectruncontrol.h" +#include "qmlapplicationwizard.h" #include "fileformat/qmlprojectfileformat.h" #include <extensionsystem/pluginmanager.h> @@ -81,10 +81,8 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage) addAutoReleasedObject(new Internal::QmlProjectRunConfigurationFactory); addAutoReleasedObject(new Internal::QmlProjectRunControlFactory); - addAutoReleasedObject(new Internal::QmlProjectApplicationWizard( - Internal::QmlProjectApplicationWizard::QtQuick1Project)); - addAutoReleasedObject(new Internal::QmlProjectApplicationWizard( - Internal::QmlProjectApplicationWizard::QtQuick2Project)); + + Internal::QmlApplicationWizard::createInstances(this); QmlProjectFileFormat::registerDeclarativeTypes(); |