summaryrefslogtreecommitdiff
path: root/src/plugins/qt4projectmanager/profileeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qt4projectmanager/profileeditor.cpp')
-rw-r--r--src/plugins/qt4projectmanager/profileeditor.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/qt4projectmanager/profileeditor.cpp b/src/plugins/qt4projectmanager/profileeditor.cpp
index da1dc0ac2e..12750868c4 100644
--- a/src/plugins/qt4projectmanager/profileeditor.cpp
+++ b/src/plugins/qt4projectmanager/profileeditor.cpp
@@ -42,7 +42,6 @@
#include <coreplugin/icore.h>
#include <coreplugin/uniqueidmanager.h>
-#include <extensionsystem/pluginmanager.h>
#include <texteditor/fontsettings.h>
#include <texteditor/texteditoractionhandler.h>
#include <texteditor/texteditorconstants.h>
@@ -60,9 +59,10 @@ using namespace Qt4ProjectManager::Internal;
using namespace ProjectExplorer;
-ProFileEditorEditable::ProFileEditorEditable(ProFileEditor *editor, Core::ICore *core)
- :BaseTextEditorEditable(editor)
+ProFileEditorEditable::ProFileEditorEditable(ProFileEditor *editor)
+ : BaseTextEditorEditable(editor)
{
+ Core::ICore *core = Core::ICore::instance();
m_context << core->uniqueIDManager()->
uniqueIdentifier(Qt4ProjectManager::Constants::C_PROFILEEDITOR);
m_context << core->uniqueIDManager()->
@@ -73,15 +73,13 @@ ProFileEditorEditable::ProFileEditorEditable(ProFileEditor *editor, Core::ICore
TextEditor::BaseTextEditorEditable *ProFileEditor::createEditableInterface()
{
- return new ProFileEditorEditable(this, m_core);
+ return new ProFileEditorEditable(this);
}
ProFileEditor::ProFileEditor(QWidget *parent, ProFileEditorFactory *factory, TextEditor::TextEditorActionHandler *ah)
: BaseTextEditor(parent), m_factory(factory), m_ah(ah)
{
Qt4Manager *manager = factory->qt4ProjectManager();
- m_core = ExtensionSystem::PluginManager::instance()->getObject<Core::ICore>();
-
ProFileDocument *doc = new ProFileDocument(manager);
doc->setMimeType(QLatin1String(Qt4ProjectManager::Constants::PROFILE_MIMETYPE));
setBaseTextDocument(doc);