diff options
author | hjk <hjk121@nokiamail.com> | 2014-05-27 18:50:55 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-05-30 13:07:54 +0200 |
commit | 26b54747e2e8c876d2aaa32103f7907aab9fd8e1 (patch) | |
tree | c1d8ddeb1df99d489ecf8e77cea13712703edb76 /src/plugins/debugger/debuggerrunner.cpp | |
parent | fb494b735564c9099e2555f1b4b94b6770defaa9 (diff) | |
download | qt-creator-26b54747e2e8c876d2aaa32103f7907aab9fd8e1.tar.gz |
RunControl: Make icon(path) a value member
Change-Id: I7f7099d03a25a14d8df02273cca928e9f1fbfe1d
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/debugger/debuggerrunner.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index ef452add35..1b30a6aba5 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -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); |