Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMP: Fix QPixmapCache::find deprecation warnings in ctkPixmapIconEngine
This commit fixes warnings like the following reported when building against Qt >= 5.13. /path/to/S-r/CTK/Libs/Widgets/ctkPixmapIconEngine.cpp:187:27: warning: 'find' is deprecated: Use bool find(const QString &, QPixmap *) instead [-Wdeprecated-declarations] if (QPixmapCache::find(key + QString::number(static_cast<int>(mode)), pm)) ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtGui.framework/Headers/qpixmapcache.h:80:5: note: 'find' has been explicitly marked deprecated here QT_DEPRECATED_X("Use bool find(const QString &, QPixmap *) instead") ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X' # define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text) ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X' # define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text))) ^
- Loading branch information