Fix Qt deprecation warn for QPixmapCache::find()

Fix the following warning from Qt 5.14.1:

  error: ‘static bool QPixmapCache::find(const QString&, QPixmap&)’ is deprecated: Use bool find(const QString &, QPixmap*) instead [-Werror=deprecated-declarations]
This commit is contained in:
Scott Kostyshak 2020-03-06 22:46:18 -05:00
parent 690c671b1d
commit c6f4682b75

View File

@ -140,7 +140,7 @@ public:
QString const name = ":" + toqstr(list_->icon(index.row()));
if (name == ":")
return scaled;
if (!QPixmapCache::find("completion" + name, scaled)) {
if (!QPixmapCache::find("completion" + name, &scaled)) {
// load icon from disk
QPixmap p = QPixmap(name);
if (!p.isNull()) {