forked from qt-creator/qt-creator
ProjectWindow: Don't show icons in project combobox
Change-Id: I5438ebbcea598a6972fad1f89ab9ac4ee1ba67aa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -221,16 +221,6 @@ public:
|
|||||||
case ProjectDisplayNameRole:
|
case ProjectDisplayNameRole:
|
||||||
return m_project->displayName();
|
return m_project->displayName();
|
||||||
|
|
||||||
case Qt::DecorationRole: {
|
|
||||||
QVariant icon;
|
|
||||||
m_targetsItem->forChildrenAtLevel(1, [this, &icon](TreeItem *item) {
|
|
||||||
QVariant sicon = item->data(0, Qt::DecorationRole);
|
|
||||||
if (sicon.isValid())
|
|
||||||
icon = sicon;
|
|
||||||
});
|
|
||||||
return icon;
|
|
||||||
}
|
|
||||||
|
|
||||||
case Qt::FontRole: {
|
case Qt::FontRole: {
|
||||||
QFont font;
|
QFont font;
|
||||||
font.setBold(m_project == SessionManager::startupProject());
|
font.setBold(m_project == SessionManager::startupProject());
|
||||||
|
|||||||
Reference in New Issue
Block a user