error: 'static bool QPixmapCache::find(const QString&, QPixmap&)' is

deprecated: Use bool find(const QString &, QPixmap *) instead.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-12-29 11:06:34 +02:00
parent 9aa0e2ed52
commit 9e7cf5c55c

View File

@ -81,7 +81,7 @@ QPixmap WatermarkImageFromCache(const VWatermarkData &watermarkData, const QStri
QPixmap pixmap;
QString imagePath = AbsoluteMPath(watermarkPath, watermarkData.path);
if (not QPixmapCache::find(imagePath, pixmap))
if (not QPixmapCache::find(imagePath, &pixmap))
{
QImageReader imageReader(imagePath);
QImage watermark = imageReader.read();