QmlDesigner: Remove a deprecation warning on QPixmapCache::find()

In this case the alternative has been around for long, and is being
used elsewhere in Creator code.

Change-Id: Ifafda47d31a8073fcf95e2ceeb073ca1468f13f3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2019-08-19 11:55:05 +02:00
parent 4307758e4b
commit 2689f837f3

View File

@@ -93,7 +93,7 @@ static QPixmap getWavyPixmap(qreal maxRadius, const QPen &pen)
const QString pixmapKey = QStringLiteral("WaveUnderline-Bauhaus"); const QString pixmapKey = QStringLiteral("WaveUnderline-Bauhaus");
QPixmap pixmap; QPixmap pixmap;
if (QPixmapCache::find(pixmapKey, pixmap)) if (QPixmapCache::find(pixmapKey, &pixmap))
return pixmap; return pixmap;
pixmap = generateWavyPixmap(maxRadius, pen); pixmap = generateWavyPixmap(maxRadius, pen);