remove all whatsthis button in dialog's titlebar

This commit is contained in:
Roy Qu 2022-02-02 17:34:37 +08:00
parent 9e3f593641
commit 50a39a08c7
7 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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();

View File

@ -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();

View File

@ -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);

View File

@ -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"));