RunControl: Make icon(path) a value member

Change-Id: I7f7099d03a25a14d8df02273cca928e9f1fbfe1d
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
hjk
2014-05-27 18:50:55 +02:00
parent fb494b7355
commit 26b54747e2
18 changed files with 17 additions and 56 deletions

View File

@@ -33,7 +33,6 @@
#include "iosrunner.h"
#include <projectexplorer/projectexplorerconstants.h>
#include <QIcon>
using namespace ProjectExplorer;
@@ -45,6 +44,7 @@ IosRunControl::IosRunControl(IosRunConfiguration *rc)
, m_runner(new IosRunner(this, rc, false, false))
, m_running(false)
{
setIcon(QLatin1String(ProjectExplorer::Constants::ICON_DEBUG_SMALL));
}
IosRunControl::~IosRunControl()
@@ -105,10 +105,5 @@ QString IosRunControl::displayName() const
return m_runner->displayName();
}
QIcon IosRunControl::icon() const
{
return QIcon(QLatin1String(ProjectExplorer::Constants::ICON_DEBUG_SMALL));
}
} // namespace Internal
} // namespace Ios