aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-08-09 17:55:34 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-08-26 20:17:52 +0300
commitfa5749c805878304c107bcae0ae5ffa401dc7c4d (patch)
tree00567d46ca9289dcad996d00ab2312432ca12bdb /src/qt/guiutil.h
parentb02264cb5dfcef50eec8a6346471cbaa25370e00 (diff)
downloadbitcoin-fa5749c805878304c107bcae0ae5ffa401dc7c4d.tar.xz
qt, refactor: Fix 'pixmap is deprecated' warnings
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h8
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