From 30b9273e8e2505b01817697b15ae46ce23870ae5 Mon Sep 17 00:00:00 2001
From: Lasse Holmstedt <lasse.holmstedt@nokia.com>
Date: Mon, 8 Mar 2010 15:43:30 +0100
Subject: [PATCH] Moving fake toolbar to core

---
 src/plugins/coreplugin/editormanager/editormanager.cpp | 7 +++++++
 src/plugins/coreplugin/editormanager/editormanager.h   | 4 ++++
 2 files changed, 11 insertions(+)

diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp
index 3dd70d532ee..900a31c208e 100644
--- a/src/plugins/coreplugin/editormanager/editormanager.cpp
+++ b/src/plugins/coreplugin/editormanager/editormanager.cpp
@@ -39,6 +39,7 @@
 #include "mimedatabase.h"
 #include "tabpositionindicator.h"
 #include "vcsmanager.h"
+#include "faketoolbar.h"
 
 #include <coreplugin/coreconstants.h>
 #include <coreplugin/modemanager.h>
@@ -441,6 +442,12 @@ void EditorManager::init()
     pluginManager()->addObject(m_d->m_openEditorsFactory);
 }
 
+
+FakeToolBar *EditorManager::createFakeToolBar(QWidget *parent)
+{
+    return new FakeToolBar(parent);
+}
+
 QString EditorManager::defaultExternalEditor() const
 {
 #ifdef Q_OS_UNIX
diff --git a/src/plugins/coreplugin/editormanager/editormanager.h b/src/plugins/coreplugin/editormanager/editormanager.h
index 491983355c0..dcb1eba21eb 100644
--- a/src/plugins/coreplugin/editormanager/editormanager.h
+++ b/src/plugins/coreplugin/editormanager/editormanager.h
@@ -57,6 +57,8 @@ class IFile;
 class IMode;
 class IVersionControl;
 
+class FakeToolBar;
+
 enum MakeWritableResult {
     OpenedWithVersionControl,
     MadeWritable,
@@ -105,6 +107,8 @@ public:
     void init();
     static EditorManager *instance() { return m_instance; }
 
+    static FakeToolBar *createFakeToolBar(QWidget *parent = 0);
+
     enum OpenEditorFlag {
         NoActivate = 1,
         IgnoreNavigationHistory = 2,
-- 
GitLab