Skip to content

Commit b695148

Browse files
committed
qt: Add flags to prevent a "What's This" button on Windows OS
1 parent 3ba25e3 commit b695148

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/qt/createwalletdialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#include <qt/createwalletdialog.h>
1010
#include <qt/forms/ui_createwalletdialog.h>
1111

12+
#include <qt/guiutil.h>
13+
1214
#include <QPushButton>
1315

1416
CreateWalletDialog::CreateWalletDialog(QWidget* parent) :

src/qt/guiutil.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ QT_END_NAMESPACE
4343
*/
4444
namespace GUIUtil
4545
{
46+
// Use this flags to prevent a "What's This" button in the title bar of the dialog on Windows.
47+
constexpr auto dialog_flags = Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint;
48+
4649
// Create human-readable string from date
4750
QString dateTimeStr(const QDateTime &datetime);
4851
QString dateTimeStr(qint64 nTime);

src/qt/receivecoinsdialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <qt/forms/ui_receivecoinsdialog.h>
99

1010
#include <qt/addresstablemodel.h>
11+
#include <qt/guiutil.h>
1112
#include <qt/optionsmodel.h>
1213
#include <qt/platformstyle.h>
1314
#include <qt/receiverequestdialog.h>

0 commit comments

Comments
 (0)