forked from qt-creator/qt-creator
itaskhandler: interface cleanup
Change-Id: Ib85950a4715d6eaf4225bd8dbcc0c2a91b20dc1d Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -48,14 +48,7 @@ using namespace TaskList::Internal;
|
||||
// StopMonitoringHandler
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
StopMonitoringHandler::StopMonitoringHandler() :
|
||||
ProjectExplorer::ITaskHandler(QLatin1String("TaskList.StopMonitoringHandler"))
|
||||
{ }
|
||||
|
||||
StopMonitoringHandler::~StopMonitoringHandler()
|
||||
{ }
|
||||
|
||||
bool StopMonitoringHandler::canHandle(const ProjectExplorer::Task &task)
|
||||
bool StopMonitoringHandler::canHandle(const ProjectExplorer::Task &task) const
|
||||
{
|
||||
return task.category == Core::Id(Constants::TASKLISTTASK_ID);
|
||||
}
|
||||
@@ -67,7 +60,7 @@ void StopMonitoringHandler::handle(const ProjectExplorer::Task &task)
|
||||
TaskList::TaskListPlugin::instance()->stopMonitoring();
|
||||
}
|
||||
|
||||
QAction *StopMonitoringHandler::createAction(QObject *parent)
|
||||
QAction *StopMonitoringHandler::createAction(QObject *parent) const
|
||||
{
|
||||
const QString text =
|
||||
QCoreApplication::translate("TaskList::Internal::StopMonitoringHandler",
|
||||
|
||||
@@ -41,12 +41,11 @@ namespace Internal {
|
||||
class StopMonitoringHandler : public ProjectExplorer::ITaskHandler
|
||||
{
|
||||
public:
|
||||
StopMonitoringHandler();
|
||||
~StopMonitoringHandler();
|
||||
StopMonitoringHandler() {}
|
||||
|
||||
bool canHandle(const ProjectExplorer::Task &);
|
||||
bool canHandle(const ProjectExplorer::Task &) const;
|
||||
void handle(const ProjectExplorer::Task &);
|
||||
QAction *createAction(QObject *parent = 0);
|
||||
QAction *createAction(QObject *parent) const;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user