diff options
author | hjk <qtc-committer@nokia.com> | 2012-05-04 20:10:01 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-05-07 18:12:40 +0200 |
commit | 64ade99b0ce99544d1b2af6592868f39d5236dcc (patch) | |
tree | a1cf0ffe0fd70840fd666a53bc2d30f0cdc23752 /src/plugins/projectexplorer/showineditortaskhandler.cpp | |
parent | 06dc126d7c03999af10858691f73500116cd344f (diff) |
itaskhandler: interface cleanup
Change-Id: Ib85950a4715d6eaf4225bd8dbcc0c2a91b20dc1d
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/showineditortaskhandler.cpp')
-rw-r--r-- | src/plugins/projectexplorer/showineditortaskhandler.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/projectexplorer/showineditortaskhandler.cpp b/src/plugins/projectexplorer/showineditortaskhandler.cpp index 00aaa2697bc..588af528ee1 100644 --- a/src/plugins/projectexplorer/showineditortaskhandler.cpp +++ b/src/plugins/projectexplorer/showineditortaskhandler.cpp @@ -42,11 +42,7 @@ using namespace ProjectExplorer::Internal; -ShowInEditorTaskHandler::ShowInEditorTaskHandler() : - ITaskHandler(QLatin1String(Constants::SHOW_TASK_IN_EDITOR)) -{ } - -bool ShowInEditorTaskHandler::canHandle(const ProjectExplorer::Task &task) +bool ShowInEditorTaskHandler::canHandle(const ProjectExplorer::Task &task) const { if (task.file.isEmpty()) return false; @@ -60,7 +56,7 @@ void ShowInEditorTaskHandler::handle(const ProjectExplorer::Task &task) TextEditor::BaseTextEditorWidget::openEditorAt(fi.canonicalFilePath(), task.movedLine); } -QAction *ShowInEditorTaskHandler::createAction(QObject *parent) +QAction *ShowInEditorTaskHandler::createAction(QObject *parent) const { QAction *showAction = new QAction(tr("&Show in Editor"), parent); showAction->setToolTip(tr("Show task location in an editor.")); |