forked from qt-creator/qt-creator
TaskHub: Move code to be more conform with other singletons
Make methods static and add a instance() method for Signals/Slots. Remove ProjectExplorerPlugin::taskHub() method and use the new ones instead. Change-Id: Ifae24ff19579fc524cbd61bddc826095c443adfa Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
|
||||
#include "removetaskhandler.h"
|
||||
|
||||
#include "projectexplorer.h"
|
||||
#include "task.h"
|
||||
#include "taskhub.h"
|
||||
|
||||
@@ -39,7 +38,7 @@ using namespace ProjectExplorer::Internal;
|
||||
|
||||
void RemoveTaskHandler::handle(const ProjectExplorer::Task &task)
|
||||
{
|
||||
ProjectExplorerPlugin::taskHub()->removeTask(task);
|
||||
TaskHub::removeTask(task);
|
||||
}
|
||||
|
||||
QAction *RemoveTaskHandler::createAction(QObject *parent) const
|
||||
|
||||
Reference in New Issue
Block a user