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 <daniel.teske@digia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 98a17c8c
...@@ -259,7 +259,7 @@ EditorManagerPrivate::~EditorManagerPrivate() ...@@ -259,7 +259,7 @@ EditorManagerPrivate::~EditorManagerPrivate()
static EditorManager *m_instance = 0; static EditorManager *m_instance = 0;
static EditorManagerPrivate *d; static EditorManagerPrivate *d;
QWidget *EditorManager::instance() { return m_instance; } EditorManager *EditorManager::instance() { return m_instance; }
EditorManager::EditorManager(QWidget *parent) : EditorManager::EditorManager(QWidget *parent) :
QWidget(parent) QWidget(parent)
......
...@@ -95,7 +95,7 @@ public: ...@@ -95,7 +95,7 @@ public:
typedef QList<IEditorFactory *> EditorFactoryList; typedef QList<IEditorFactory *> EditorFactoryList;
typedef QList<IExternalEditor *> ExternalEditorList; typedef QList<IExternalEditor *> ExternalEditorList;
static QWidget *instance(); static EditorManager *instance();
static EditorToolBar *createToolBar(QWidget *parent = 0); 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