Commit 0d3314d9 authored by Kai Koehne's avatar Kai Koehne

EditorManager: Let instance() method return specific type

Returning a generic QWidget* here was introduced to prevent people
from accidentally using static methods via instance()-> . Anyhow,
it also breaks code completions for signals and slots.

Change-Id: I2933d5686c1a7e325c6c08c376fbe65ca657c365
Reviewed-by: default avatarDaniel Teske <>
Reviewed-by: default avatarEike Ziller <>
parent 98a17c8c
......@@ -259,7 +259,7 @@ EditorManagerPrivate::~EditorManagerPrivate()
static EditorManager *m_instance = 0;
static EditorManagerPrivate *d;
QWidget *EditorManager::instance() { return m_instance; }
EditorManager *EditorManager::instance() { return m_instance; }
EditorManager::EditorManager(QWidget *parent) :
......@@ -95,7 +95,7 @@ public:
typedef QList<IEditorFactory *> EditorFactoryList;
typedef QList<IExternalEditor *> ExternalEditorList;
static QWidget *instance();
static EditorManager *instance();
static EditorToolBar *createToolBar(QWidget *parent = 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment