Actually a more robust solution: I've proposed these changes to qmenumodel where this provider currently resides.
if (!icon.isNull()) { if (requestedSize.isValid()) { return themedIcon.pixmap(requestedSize); } else { QList<QSize> sizes = icon.availableSizes(); if (sizes.count() > 0 && sizes.last().isValid()) { return icon.pixmap(sizes.last()); } else { return icon.pixmap(QSize(32,32)); } } } return QPixmap();
« Back to merge proposal
Actually a more robust solution:
I've proposed these changes to qmenumodel where this provider currently resides.
if (!icon.isNull()) { isValid( )) { pixmap( requestedSize) ;
QList< QSize> sizes = icon.availableS izes(); ).isValid( )) {
return icon.pixmap( sizes.last( ));
return icon.pixmap( QSize(32, 32));
if (requestedSize.
return themedIcon.
} else {
if (sizes.count() > 0 && sizes.last(
} else {
}
}
}
return QPixmap();