forked from qt-creator/qt-creator
TaskHub: Make instance() return a QObject*
Change-Id: I508cd2df7ad8de02c8e46fe65e6905d1a41b2bb9 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -102,7 +102,7 @@ void TaskHub::addCategory(Core::Id categoryId, const QString &displayName, bool
|
||||
emit m_instance->categoryAdded(categoryId, displayName, visible);
|
||||
}
|
||||
|
||||
TaskHub *TaskHub::instance()
|
||||
QObject *TaskHub::instance()
|
||||
{
|
||||
return m_instance;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class PROJECTEXPLORER_EXPORT TaskHub : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static TaskHub *instance();
|
||||
static QObject *instance();
|
||||
|
||||
// Convenience overload
|
||||
static void addTask(Task::TaskType type, const QString &description,
|
||||
|
||||
Reference in New Issue
Block a user