From fa5749c805878304c107bcae0ae5ffa401dc7c4d Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 9 Aug 2020 17:55:34 +0300 Subject: qt, refactor: Fix 'pixmap is deprecated' warnings --- src/qt/guiutil.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/qt/guiutil.h') diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h index 9ce5275e10..47145d6f85 100644 --- a/src/qt/guiutil.h +++ b/src/qt/guiutil.h @@ -312,6 +312,14 @@ namespace GUIUtil */ QDateTime StartOfDay(const QDate& date); + /** + * Returns true if pixmap has been set. + * + * QPixmap* QLabel::pixmap() is deprecated since Qt 5.15. + */ + bool HasPixmap(const QLabel* label); + QImage GetImage(const QLabel* label); + } // namespace GUIUtil #endif // BITCOIN_QT_GUIUTIL_H -- cgit v1.2.3