forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user