diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-09-07 19:08:15 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-09-07 19:08:15 +0300 |
commit | b6951483ecdd4409a0e1d492c93bcd4d823f039d (patch) | |
tree | 304b405cc792076305dde4a12c2e8862a9ccf607 /src/qt/guiutil.h | |
parent | 3ba25e3bdde3464eed5d2743d68546e48b005544 (diff) |
qt: Add flags to prevent a "What's This" button on Windows OS
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r-- | src/qt/guiutil.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h index 2bd94b5eb3..ea72ec0ffa 100644 --- a/src/qt/guiutil.h +++ b/src/qt/guiutil.h @@ -43,6 +43,9 @@ QT_END_NAMESPACE */ namespace GUIUtil { + // Use this flags to prevent a "What's This" button in the title bar of the dialog on Windows. + constexpr auto dialog_flags = Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint; + // Create human-readable string from date QString dateTimeStr(const QDateTime &datetime); QString dateTimeStr(qint64 nTime); |