diff --git a/src/libs/vmisc/def.cpp b/src/libs/vmisc/def.cpp index bbcfe5f8d..d3246c026 100644 --- a/src/libs/vmisc/def.cpp +++ b/src/libs/vmisc/def.cpp @@ -214,7 +214,7 @@ QPixmap QPixmapFromCache(const QString &pixmapPath) { QPixmap pixmap; - if (not QPixmapCache::find(pixmapPath, pixmap)) + if (not QPixmapCache::find(pixmapPath, &pixmap)) { pixmap = QPixmap(pixmapPath); QPixmapCache::insert(pixmapPath, pixmap); diff --git a/src/libs/vwidgets/fancytabbar/stylehelper.cpp b/src/libs/vwidgets/fancytabbar/stylehelper.cpp index 3e5b0660a..12f9f1fc0 100644 --- a/src/libs/vwidgets/fancytabbar/stylehelper.cpp +++ b/src/libs/vwidgets/fancytabbar/stylehelper.cpp @@ -130,7 +130,7 @@ void StyleHelper::drawIconWithShadow(const QIcon &icon, const QRect &rect, QPain QPixmap cache; QString pixmapName = QString::fromLatin1("icon %0 %1 %2").arg(icon.cacheKey()).arg(iconMode).arg(rect.height()); - if (!QPixmapCache::find(pixmapName, cache)) + if (!QPixmapCache::find(pixmapName, &cache)) { // High-dpi support: The in parameters (rect, radius, offset) are in // device-independent pixels. The call to QIcon::pixmap() below might