Port to non-deprecated variant of QPixmapCache::find()

We need to pass the pixmap by address, not by reference.
This commit is contained in:
Elvis Angelaccio 2020-05-28 23:04:04 +02:00
parent cbb35681f5
commit 0d679da0a3

View file

@ -1486,7 +1486,7 @@ QPixmap KStandardItemListWidget::pixmapForIcon(const QString& name, const QStrin
const QString key = "KStandardItemListWidget:" % name % ":" % overlays.join(QLatin1Char(':')) % ":" % QString::number(size) % ":" % QString::number(mode);
QPixmap pixmap;
if (!QPixmapCache::find(key, pixmap)) {
if (!QPixmapCache::find(key, &pixmap)) {
const QIcon icon = QIcon::fromTheme(name, fallbackIcon);
pixmap = icon.pixmap(size / qApp->devicePixelRatio(), size / qApp->devicePixelRatio(), mode);