mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +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()));
|
QString const name = ":" + toqstr(list_->icon(index.row()));
|
||||||
if (name == ":")
|
if (name == ":")
|
||||||
return scaled;
|
return scaled;
|
||||||
if (!QPixmapCache::find("completion" + name, scaled)) {
|
if (!QPixmapCache::find("completion" + name, &scaled)) {
|
||||||
// load icon from disk
|
// load icon from disk
|
||||||
QPixmap p = QPixmap(name);
|
QPixmap p = QPixmap(name);
|
||||||
if (!p.isNull()) {
|
if (!p.isNull()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user