forked from qt-creator/qt-creator
Fix icons that moved from core to utils
Change-Id: Id3151b1cce2d97b2bfb6debaf3cebe53cd6d88ed Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
7b25da7e22
commit
a6427453f4
@@ -340,9 +340,8 @@ QIcon ManhattanStyle::standardIcon(StandardPixmap standardIcon, const QStyleOpti
|
||||
if (standardIcon == QStyle::SP_ComputerIcon) {
|
||||
// Ubuntu has in some versions a 16x16 icon, see QTCREATORBUG-12832
|
||||
const QList<QSize> &sizes = icon.availableSizes();
|
||||
if (Utils::allOf(sizes, [](const QSize &size) { return size.width() < 32;})) {
|
||||
icon = QIcon(QLatin1String(":/core/images/Desktop.png"));
|
||||
}
|
||||
if (Utils::allOf(sizes, [](const QSize &size) { return size.width() < 32;}))
|
||||
icon = QIcon(":/utils/images/Desktop.png");
|
||||
}
|
||||
return icon;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user