Qt5: 'static bool QPixmapCache::find(const QString&, QPixmap&)' is deprecated: Use bool find(const QString &, QPixmap *) instead [-Wdeprecated-declarations]
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user