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

@@ -197,11 +197,11 @@ public:
class DebugInfoTaskHandler : public ProjectExplorer::ITaskHandler
{
public:
DebugInfoTaskHandler(GdbEngine *engine)
: ITaskHandler(_("Debuginfo")), m_engine(engine)
explicit DebugInfoTaskHandler(GdbEngine *engine)
: m_engine(engine)
{}
bool canHandle(const Task &task)
bool canHandle(const Task &task) const
{
return m_debugInfoTasks.contains(task.taskId);
}
@@ -216,7 +216,7 @@ public:
m_debugInfoTasks[id] = task;
}
QAction *createAction(QObject *parent = 0)
QAction *createAction(QObject *parent) const
{
QAction *action = new QAction(DebuggerPlugin::tr("Install &Debug Information"), parent);
action->setToolTip(DebuggerPlugin::tr("This tries to install missing debug information."));