Commit 0d679da0 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

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

We need to pass the pixmap by address, not by reference.
parent cbb35681
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment