diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2016-10-18 22:53:52 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2016-10-19 13:18:41 +0000 |
commit | 2c8087d9baf475cc9cf3bfd3fef1807691b28a08 (patch) | |
tree | 737350293aeece3cbb6543eeb356317b4ec8ca98 /src/plugins/projectexplorer/targetsettingspanel.cpp | |
parent | a97f1bd0bb93acd310469a545ff6875ada7252e9 (diff) |
ProjectExplorer: "Build" and "Run" icons for the projects mode tree
Task-number: QTCREATORBUG-17127
Change-Id: I5db19d65eaf7bf69c39ab39bb35e7e4f34e91a6f
Reviewed-by: Florian Apolloner <florian@apolloner.eu>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/targetsettingspanel.cpp')
-rw-r--r-- | src/plugins/projectexplorer/targetsettingspanel.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp index d3f557f219..49ebd5e856 100644 --- a/src/plugins/projectexplorer/targetsettingspanel.cpp +++ b/src/plugins/projectexplorer/targetsettingspanel.cpp @@ -34,6 +34,7 @@ #include "panelswidget.h" #include "project.h" #include "projectexplorer.h" +#include "projectexplorericons.h" #include "projectwindow.h" #include "runsettingspropertiespage.h" #include "session.h" @@ -563,8 +564,19 @@ public: case KitIdRole: return m_kitId.toSetting(); - case Qt::DecorationRole: - return Utils::Icons::EMPTY14.icon(); + case Qt::DecorationRole: { + switch (m_subIndex) { + case BuildPage: { + static const QIcon buildIcon = ProjectExplorer::Icons::BUILD_SMALL.icon(); + return buildIcon; + } + case RunPage: { + static const QIcon runIcon = Utils::Icons::RUN_SMALL.icon(); + return runIcon; + } + } + break; + } default: break; |