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