mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
690c671b1d
commit
c6f4682b75
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user