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:
@@ -50,6 +50,8 @@ AnalyzerRunControl::AnalyzerRunControl(const AnalyzerStartParameters &sp,
|
||||
ProjectExplorer::RunConfiguration *runConfiguration)
|
||||
: RunControl(runConfiguration, sp.runMode)
|
||||
{
|
||||
setIcon(QLatin1String(":/images/analyzer_start_small.png"));
|
||||
|
||||
m_runConfig = runConfiguration;
|
||||
m_sp = sp;
|
||||
|
||||
@@ -99,9 +101,4 @@ QString AnalyzerRunControl::displayName() const
|
||||
return m_runConfig ? m_runConfig->displayName() : m_sp.displayName;
|
||||
}
|
||||
|
||||
QIcon AnalyzerRunControl::icon() const
|
||||
{
|
||||
return QIcon(QLatin1String(":/images/analyzer_start_small.png"));
|
||||
}
|
||||
|
||||
} // namespace Analyzer
|
||||
|
||||
Reference in New Issue
Block a user