Qt5: 'static bool QPixmapCache::find(const QString&, QPixmap&)' is deprecated: Use bool find(const QString &, QPixmap *) instead [-Wdeprecated-declarations]

This commit is contained in:
wmayer
2020-06-08 13:52:34 +02:00
committed by wwmayer
parent eced6aaed1
commit b143194f9d
3 changed files with 3 additions and 3 deletions

View File

@@ -158,7 +158,7 @@ QPixmap ExpressionBinding::getIcon(const char* name, const QSize& size) const
.arg(size.width())
.arg(size.height());
QPixmap icon;
if (QPixmapCache::find(key, icon))
if (QPixmapCache::find(key, &icon))
return icon;
icon = BitmapFactory().pixmapFromSvg(name, size);

View File

@@ -145,7 +145,7 @@ QPixmap InputField::getValidationIcon(const char* name, const QSize& size) const
.arg(size.width())
.arg(size.height());
QPixmap icon;
if (QPixmapCache::find(key, icon))
if (QPixmapCache::find(key, &icon))
return icon;
icon = BitmapFactory().pixmapFromSvg(name, size);

View File

@@ -380,7 +380,7 @@ protected:
.arg(size.width())
.arg(size.height());
QPixmap icon;
if (QPixmapCache::find(key, icon))
if (QPixmapCache::find(key, &icon))
return icon;
icon = Gui::BitmapFactory().pixmapFromSvg(name, size);