forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user