ModelEditor: Add JsExpander object for wizards

Change-Id: I4350f667e813efa92a303fb89b637e9e914b7d4d
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-12-11 12:00:04 +01:00
parent 56a9b93a28
commit 44958cad22
5 changed files with 104 additions and 0 deletions

View File

@@ -36,6 +36,7 @@
#include "modeleditor_constants.h"
#include "modeleditor_file_wizard.h"
#include "uicontroller.h"
#include "jsextension.h"
#include "qmt/infrastructure/uid.h"
@@ -46,6 +47,7 @@
#include <coreplugin/coreconstants.h>
#include <coreplugin/icontext.h>
#include <coreplugin/icore.h>
#include <coreplugin/jsexpander.h>
#include <utils/mimetypes/mimedatabase.h>
@@ -111,6 +113,8 @@ bool ModelEditorPlugin::initialize(const QStringList &arguments, QString *errorS
d->settingsController = new SettingsController(this);
addAutoReleasedObject(d->settingsController);
Core::JsExpander::registerQObjectForJs(QLatin1String("Modeling"), new JsExtension(this));
connect(d->settingsController, &SettingsController::saveSettings,
d->uiController, &UiController::saveSettings);
connect(d->settingsController, &SettingsController::loadSettings,