forked from qt-creator/qt-creator
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user