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 | |
parent | 3ba25e3bdde3464eed5d2743d68546e48b005544 (diff) |
qt: Add flags to prevent a "What's This" button on Windows OS
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/createwalletdialog.cpp | 2 | ||||
-rw-r--r-- | src/qt/guiutil.h | 3 | ||||
-rw-r--r-- | src/qt/receivecoinsdialog.cpp | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/createwalletdialog.cpp b/src/qt/createwalletdialog.cpp index 5056e487fc..0fd7c992f6 100644 --- a/src/qt/createwalletdialog.cpp +++ b/src/qt/createwalletdialog.cpp @@ -9,6 +9,8 @@ #include <qt/createwalletdialog.h> #include <qt/forms/ui_createwalletdialog.h> +#include <qt/guiutil.h> + #include <QPushButton> CreateWalletDialog::CreateWalletDialog(QWidget* parent) : 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); diff --git a/src/qt/receivecoinsdialog.cpp b/src/qt/receivecoinsdialog.cpp index d374d610ee..1dda1f5e06 100644 --- a/src/qt/receivecoinsdialog.cpp +++ b/src/qt/receivecoinsdialog.cpp @@ -8,6 +8,7 @@ #include <qt/forms/ui_receivecoinsdialog.h> #include <qt/addresstablemodel.h> +#include <qt/guiutil.h> #include <qt/optionsmodel.h> #include <qt/platformstyle.h> #include <qt/receiverequestdialog.h> |