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:
@@ -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."));
|
||||
|
||||
Reference in New Issue
Block a user