aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-07 19:08:15 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-07 19:08:15 +0300
commitb6951483ecdd4409a0e1d492c93bcd4d823f039d (patch)
tree304b405cc792076305dde4a12c2e8862a9ccf607 /src/qt/guiutil.h
parent3ba25e3bdde3464eed5d2743d68546e48b005544 (diff)
downloadbitcoin-b6951483ecdd4409a0e1d492c93bcd4d823f039d.tar.xz
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.h3
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);