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>
This commit is contained in:
Alessandro Portale
2016-10-18 22:53:52 +02:00
parent a97f1bd0bb
commit 2c8087d9ba

View File

@@ -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;