mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Port to non-deprecated variant of QPixmapCache::find()
We need to pass the pixmap by address, not by reference.
This commit is contained in:
parent
cbb35681f5
commit
0d679da0a3
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue