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);