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:
@@ -57,7 +57,6 @@ ChangeSelectionDialog::ChangeSelectionDialog(const QString &workingDirectory, Co
|
||||
QWidget *parent) :
|
||||
QDialog(parent), m_ui(new Ui::ChangeSelectionDialog)
|
||||
{
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
m_gitExecutable = GitPlugin::client()->vcsBinary();
|
||||
m_ui->setupUi(this);
|
||||
m_ui->workingDirectoryChooser->setExpectedKind(PathChooser::ExistingDirectory);
|
||||
|
||||
@@ -63,8 +63,6 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p,
|
||||
, m_model(new GerritModel(p, this))
|
||||
, m_queryModel(new QStringListModel(this))
|
||||
{
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
m_ui->setupUi(this);
|
||||
m_ui->remoteComboBox->setParameters(m_parameters);
|
||||
m_ui->remoteComboBox->setFallbackEnabled(true);
|
||||
|
||||
@@ -128,7 +128,6 @@ GerritPushDialog::GerritPushDialog(const QString &workingDir, const QString &rev
|
||||
m_workingDir(workingDir),
|
||||
m_ui(new Ui::GerritPushDialog)
|
||||
{
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
m_ui->setupUi(this);
|
||||
m_ui->repositoryLabel->setText(QDir::toNativeSeparators(workingDir));
|
||||
m_ui->remoteComboBox->setRepository(workingDir);
|
||||
|
||||
@@ -69,7 +69,6 @@ bool Stash::parseStashLine(const QString &l)
|
||||
bool inputText(QWidget *parent, const QString &title, const QString &prompt, QString *s)
|
||||
{
|
||||
QInputDialog dialog(parent);
|
||||
dialog.setWindowFlags(dialog.windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
dialog.setWindowTitle(title);
|
||||
dialog.setLabelText(prompt);
|
||||
dialog.setTextValue(*s);
|
||||
|
||||
@@ -227,7 +227,6 @@ LogChangeDialog::LogChangeDialog(bool isReset, QWidget *parent) :
|
||||
|
||||
connect(m_widget, &LogChangeWidget::activated, okButton, [okButton] { okButton->animateClick(); });
|
||||
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
resize(600, 400);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,6 @@ public:
|
||||
m_remoteNames(remoteNames)
|
||||
{
|
||||
m_ui.setupUi(this);
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
m_ui.nameEdit->setValidationFunction([this](Utils::FancyLineEdit *edit, QString *errorMessage) {
|
||||
if (!edit)
|
||||
return false;
|
||||
@@ -127,7 +126,6 @@ RemoteDialog::RemoteDialog(QWidget *parent) :
|
||||
m_remoteModel(new RemoteModel(this))
|
||||
{
|
||||
setModal(false);
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true); // Do not update unnecessarily
|
||||
|
||||
m_ui->setupUi(this);
|
||||
|
||||
@@ -102,7 +102,6 @@ StashDialog::StashDialog(QWidget *parent) : QDialog(parent),
|
||||
m_restoreCurrentInBranchButton(new QPushButton(tr("Restore to &Branch..."))),
|
||||
m_refreshButton(new QPushButton(tr("Re&fresh")))
|
||||
{
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true); // Do not update unnecessarily
|
||||
|
||||
ui->setupUi(this);
|
||||
|
||||
Reference in New Issue
Block a user