diff --git a/Libs/Widgets/ctkPixmapIconEngine.cpp b/Libs/Widgets/ctkPixmapIconEngine.cpp index 5bf7b3b603..cb050f5e71 100644 --- a/Libs/Widgets/ctkPixmapIconEngine.cpp +++ b/Libs/Widgets/ctkPixmapIconEngine.cpp @@ -184,9 +184,9 @@ QPixmap ctkPixmapIconEngine::pixmap(const QSize &size, QIcon::Mode mode, QIcon:: if (mode == QIcon::Active) { - if (QPixmapCache::find(key + QString::number(static_cast(mode)), pm)) + if (QPixmapCache::find(key + QString::number(static_cast(mode)), &pm)) return pm; // horray - if (QPixmapCache::find(key + QString::number(static_cast(QIcon::Normal)), pm)) { + if (QPixmapCache::find(key + QString::number(static_cast(QIcon::Normal)), &pm)) { QStyleOption opt(0); opt.palette = QApplication::palette(); QPixmap active = QApplication::style()->generatedIconPixmap(QIcon::Active, pm, &opt); @@ -195,7 +195,7 @@ QPixmap ctkPixmapIconEngine::pixmap(const QSize &size, QIcon::Mode mode, QIcon:: } } - if (!QPixmapCache::find(key + QString::number(static_cast(mode)), pm)) { + if (!QPixmapCache::find(key + QString::number(static_cast(mode)), &pm)) { if (pm.size() != actualSize) pm = pm.scaled(actualSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation); if (pe->mode != mode && mode != QIcon::Normal) {