From 50a39a08c7230324cc41eb21f7730b4e7c0c06f7 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 2 Feb 2022 17:34:37 +0800 Subject: [PATCH] remove all whatsthis button in dialog's titlebar --- RedPandaIDE/settingsdialog/settingsdialog.cpp | 1 + RedPandaIDE/widgets/aboutdialog.cpp | 1 + RedPandaIDE/widgets/cpudialog.cpp | 1 + RedPandaIDE/widgets/newclassdialog.cpp | 1 + RedPandaIDE/widgets/newheaderdialog.cpp | 1 + RedPandaIDE/widgets/newprojectdialog.cpp | 1 + RedPandaIDE/widgets/searchdialog.cpp | 1 + 7 files changed, 7 insertions(+) diff --git a/RedPandaIDE/settingsdialog/settingsdialog.cpp b/RedPandaIDE/settingsdialog/settingsdialog.cpp index 1fcc372d..d1dafffd 100644 --- a/RedPandaIDE/settingsdialog/settingsdialog.cpp +++ b/RedPandaIDE/settingsdialog/settingsdialog.cpp @@ -65,6 +65,7 @@ SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::SettingsDialog) { + setWindowFlag(Qt::WindowContextHelpButtonHint,false); ui->setupUi(this); ui->widgetsView->setModel(&model); diff --git a/RedPandaIDE/widgets/aboutdialog.cpp b/RedPandaIDE/widgets/aboutdialog.cpp index 4abc2a26..f77451b1 100644 --- a/RedPandaIDE/widgets/aboutdialog.cpp +++ b/RedPandaIDE/widgets/aboutdialog.cpp @@ -24,6 +24,7 @@ AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDialog) { + setWindowFlag(Qt::WindowContextHelpButtonHint,false); ui->setupUi(this); ui->lblTitle->setText(ui->lblTitle->text() + tr("Version: ") + REDPANDA_CPP_VERSION); diff --git a/RedPandaIDE/widgets/cpudialog.cpp b/RedPandaIDE/widgets/cpudialog.cpp index 4d987dbe..aa6775e4 100644 --- a/RedPandaIDE/widgets/cpudialog.cpp +++ b/RedPandaIDE/widgets/cpudialog.cpp @@ -29,6 +29,7 @@ CPUDialog::CPUDialog(QWidget *parent) : ui(new Ui::CPUDialog) { setWindowFlags(windowFlags() | Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint); + setWindowFlag(Qt::WindowContextHelpButtonHint,false); ui->setupUi(this); ui->txtCode->setHighlighter(highlighterManager.getCppHighlighter()); ui->txtCode->setReadOnly(true); diff --git a/RedPandaIDE/widgets/newclassdialog.cpp b/RedPandaIDE/widgets/newclassdialog.cpp index 11d833ba..0f221e65 100644 --- a/RedPandaIDE/widgets/newclassdialog.cpp +++ b/RedPandaIDE/widgets/newclassdialog.cpp @@ -8,6 +8,7 @@ NewClassDialog::NewClassDialog(QWidget *parent) : QDialog(parent), ui(new Ui::NewClassDialog) { + setWindowFlag(Qt::WindowContextHelpButtonHint,false); ui->setupUi(this); resize(pSettings->ui().newClassDialogWidth(),pSettings->ui().newClassDialogHeight()); updateIcons(); diff --git a/RedPandaIDE/widgets/newheaderdialog.cpp b/RedPandaIDE/widgets/newheaderdialog.cpp index dcd52374..0f3ddc85 100644 --- a/RedPandaIDE/widgets/newheaderdialog.cpp +++ b/RedPandaIDE/widgets/newheaderdialog.cpp @@ -9,6 +9,7 @@ NewHeaderDialog::NewHeaderDialog(QWidget *parent) : QDialog(parent), ui(new Ui::NewHeaderDialog) { + setWindowFlag(Qt::WindowContextHelpButtonHint,false); ui->setupUi(this); resize(pSettings->ui().newHeaderDialogWidth(),pSettings->ui().newHeaderDialogHeight()); updateIcons(); diff --git a/RedPandaIDE/widgets/newprojectdialog.cpp b/RedPandaIDE/widgets/newprojectdialog.cpp index 6e26881e..eb9441da 100644 --- a/RedPandaIDE/widgets/newprojectdialog.cpp +++ b/RedPandaIDE/widgets/newprojectdialog.cpp @@ -29,6 +29,7 @@ NewProjectDialog::NewProjectDialog(QWidget *parent) : QDialog(parent), ui(new Ui::NewProjectDialog) { + setWindowFlag(Qt::WindowContextHelpButtonHint,false); ui->setupUi(this); mTemplatesTabBar = new QTabBar(this); mTemplatesTabBar->setExpanding(false); diff --git a/RedPandaIDE/widgets/searchdialog.cpp b/RedPandaIDE/widgets/searchdialog.cpp index a84485bf..5b26e281 100644 --- a/RedPandaIDE/widgets/searchdialog.cpp +++ b/RedPandaIDE/widgets/searchdialog.cpp @@ -32,6 +32,7 @@ SearchDialog::SearchDialog(QWidget *parent) : ui(new Ui::SearchDialog), mSearchEngine() { + setWindowFlag(Qt::WindowContextHelpButtonHint,false); ui->setupUi(this); mTabBar = new QTabBar(); mTabBar->addTab(tr("Find"));