itaskhandler: interface cleanup

Change-Id: Ib85950a4715d6eaf4225bd8dbcc0c2a91b20dc1d
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
hjk
2012-05-04 20:10:01 +02:00
committed by hjk
parent 06dc126d7c
commit 64ade99b0c
14 changed files with 34 additions and 70 deletions

View File

@@ -42,13 +42,12 @@
using namespace ProjectExplorer::Internal;
ShowOutputTaskHandler::ShowOutputTaskHandler(CompileOutputWindow *window) :
ITaskHandler(QLatin1String(Constants::SHOW_TASK_OUTPUT)),
m_window(window)
{
Q_ASSERT(m_window);
}
bool ShowOutputTaskHandler::canHandle(const ProjectExplorer::Task &task)
bool ShowOutputTaskHandler::canHandle(const ProjectExplorer::Task &task) const
{
return m_window->knowsPositionOf(task);
}
@@ -60,7 +59,7 @@ void ShowOutputTaskHandler::handle(const ProjectExplorer::Task &task)
m_window->showPositionOf(task);
}
QAction *ShowOutputTaskHandler::createAction(QObject *parent)
QAction *ShowOutputTaskHandler::createAction(QObject *parent) const
{
QAction *outputAction = new QAction(tr("Show &Output"), parent);
outputAction->setToolTip(tr("Show output generating this issue."));