forked from qt-creator/qt-creator
RunControl: Make icon(path) a value member
Change-Id: I7f7099d03a25a14d8df02273cca928e9f1fbfe1d Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -128,6 +128,8 @@ DebuggerRunControl::DebuggerRunControl(RunConfiguration *runConfiguration,
|
||||
: RunControl(runConfiguration, DebugRunMode),
|
||||
d(new DebuggerRunControlPrivate(runConfiguration))
|
||||
{
|
||||
setIcon(QLatin1String(ProjectExplorer::Constants::ICON_DEBUG_SMALL));
|
||||
|
||||
connect(this, SIGNAL(finished()), SLOT(handleFinished()));
|
||||
// Create the engine. Could arguably be moved to the factory, but
|
||||
// we still have a derived S60DebugControl. Should rarely fail, though.
|
||||
@@ -159,11 +161,6 @@ QString DebuggerRunControl::displayName() const
|
||||
return d->m_engine->startParameters().displayName;
|
||||
}
|
||||
|
||||
QIcon DebuggerRunControl::icon() const
|
||||
{
|
||||
return QIcon(QLatin1String(ProjectExplorer::Constants::ICON_DEBUG_SMALL));
|
||||
}
|
||||
|
||||
void DebuggerRunControl::start()
|
||||
{
|
||||
QTC_ASSERT(d->m_engine, return);
|
||||
|
Reference in New Issue
Block a user