diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-01-11 14:35:34 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-05-13 16:02:38 +0300 |
commit | 1122817c194ed49abf896e68604e725c3b5c8569 (patch) | |
tree | 58eefca77b24719990aa34c93c93a6cfa46e8659 /src/qt/guiutil.h | |
parent | a33901cb6d82e2f75aab67f80a8852b7e6e9817a (diff) | |
download | bitcoin-1122817c194ed49abf896e68604e725c3b5c8569.tar.xz |
qt: Remove QFont warnings with QPA=minimal
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 8b9fca4fb1..a26e7ff873 100644 --- a/src/qt/guiutil.h +++ b/src/qt/guiutil.h @@ -28,9 +28,12 @@ namespace interfaces QT_BEGIN_NAMESPACE class QAbstractItemView; +class QAction; class QDateTime; class QFont; class QLineEdit; +class QMenu; +class QPoint; class QProgressDialog; class QUrl; class QWidget; @@ -273,6 +276,11 @@ namespace GUIUtil * Writes to debug.log short info about the used Qt and the host system. */ void LogQtInfo(); + + /** + * Call QMenu::popup() only on supported QT_QPA_PLATFORM. + */ + void PopupMenu(QMenu* menu, const QPoint& point, QAction* at_action = nullptr); } // namespace GUIUtil #endif // BITCOIN_QT_GUIUTIL_H |