forked from qt-creator/qt-creator
Globally disable WindowContextHelpButtonHint
Do set the global application flag AA_DisableWindowContextHelpButton to avoid having to unset the default WindowContextHelpButtonHint in every single dialog. AA_DisableWindowContextHelpButton was added in Qt 5.10. Change-Id: I21fe8bc5ddfa4c01ec7a799b04bfb6ff1c9d6d86 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -145,7 +145,6 @@ CleanDialog::CleanDialog(QWidget *parent) :
|
||||
d(new Internal::CleanDialogPrivate)
|
||||
{
|
||||
setModal(true);
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
d->ui.setupUi(this);
|
||||
d->ui.buttonBox->addButton(tr("Delete..."), QDialogButtonBox::AcceptRole);
|
||||
|
||||
@@ -169,7 +169,6 @@ NickNameDialog::NickNameDialog(QStandardItemModel *model, QWidget *parent) :
|
||||
m_model(model),
|
||||
m_filterModel(new QSortFilterProxyModel(this))
|
||||
{
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
m_ui->setupUi(this);
|
||||
okButton()->setEnabled(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user