From beb424d209c9b8a37d96b72cae9cb9d90d46bd36 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 18 Sep 2015 16:41:34 +0200 Subject: [PATCH] QmlDesigner: Registers new views and tools Change-Id: I9709ec28623d7cecb4167d41f5f69b4791359e22 Reviewed-by: Alessandro Portale --- src/plugins/qmldesigner/qmldesignerplugin.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/plugins/qmldesigner/qmldesignerplugin.cpp b/src/plugins/qmldesigner/qmldesignerplugin.cpp index 7bcf80a8cd4..c8291b38868 100644 --- a/src/plugins/qmldesigner/qmldesignerplugin.cpp +++ b/src/plugins/qmldesigner/qmldesignerplugin.cpp @@ -30,6 +30,12 @@ #include "settingspage.h" #include "designmodecontext.h" +#include +#include +#include +#include +#include + #include #include @@ -127,6 +133,12 @@ bool QmlDesignerPlugin::initialize(const QStringList & /*arguments*/, QString *e data->settings.fromSettings(Core::ICore::settings()); + data->viewManager.registerViewTakingOwnership(new QmlDesigner::Internal::ConnectionView()); + data->viewManager.registerFormEditorToolTakingOwnership(new QmlDesigner::SourceTool); + data->viewManager.registerFormEditorToolTakingOwnership(new QmlDesigner::ColorTool); + data->viewManager.registerFormEditorToolTakingOwnership(new QmlDesigner::TextTool); + data->viewManager.registerFormEditorToolTakingOwnership(new QmlDesigner::PathTool); + const Core::Context switchContext(QmlDesigner::Constants::C_QMLDESIGNER, QmlJSEditor::Constants::C_QMLJSEDITOR_ID);