diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-08-09 17:55:34 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-08-26 20:17:52 +0300 |
commit | fa5749c805878304c107bcae0ae5ffa401dc7c4d (patch) | |
tree | 00567d46ca9289dcad996d00ab2312432ca12bdb /src/qt/guiutil.h | |
parent | b02264cb5dfcef50eec8a6346471cbaa25370e00 (diff) | |
download | bitcoin-fa5749c805878304c107bcae0ae5ffa401dc7c4d.tar.xz |
qt, refactor: Fix 'pixmap is deprecated' warnings
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r-- | src/qt/guiutil.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |