Modeleditor: Use a JSON-based wizard

Use a JSON wizard in favor of implementing the same thing in
code.

Change-Id: I5952bf417255fb75378e42e3e80b13c0a0d3d317
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-11-30 16:02:29 +01:00
parent c2bf384ac2
commit 293cc57064
7 changed files with 122 additions and 197 deletions

View File

@@ -34,7 +34,6 @@
#include "modelsmanager.h"
#include "settingscontroller.h"
#include "modeleditor_constants.h"
#include "modeleditor_file_wizard.h"
#include "uicontroller.h"
#include "jsextension.h"
@@ -103,10 +102,6 @@ bool ModelEditorPlugin::initialize(const QStringList &arguments, QString *errorS
d->uiController = new UiController(this);
addAutoReleasedObject(d->uiController);
Core::IWizardFactory::registerFactoryCreator([]() {
return QList<Core::IWizardFactory *>() << new FileWizardFactory;
});
d->modelFactory = new ModelEditorFactory(d->uiController, this);
addAutoReleasedObject(d->modelFactory);