Remove the Help ? from title bars

This commit is contained in:
Phil Olynyk 2019-04-07 21:54:04 -04:00
parent 2afe0459e9
commit 069a2f405a
4 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
setWindowTitle(tr("About OSCAR"));
setMinimumSize(QSize(400,400));
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
connect(ui->closeButton, SIGNAL(clicked(bool)), this, SLOT(accept()));
int idx=AppSetting->showAboutDialog();

View File

@ -26,6 +26,7 @@ ExportCSV::ExportCSV(QWidget *parent) :
ui->setupUi(this);
ui->rb1_Summary->setChecked(true);
ui->quickRangeCombo->setCurrentIndex(0);
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
// Set Date controls locale to 4 digit years
QLocale locale = QLocale::system();

View File

@ -2224,6 +2224,7 @@ void MainWindow::on_actionImport_ZEO_Data_triggered()
{
QFileDialog w;
w.setFileMode(QFileDialog::ExistingFiles);
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
w.setOption(QFileDialog::ShowDirsOnly, false);
w.setOption(QFileDialog::DontUseNativeDialog, true);
w.setNameFilters(QStringList("Zeo CSV File (*.csv)"));
@ -2307,6 +2308,7 @@ void MainWindow::on_actionImport_Somnopose_Data_triggered()
{
QFileDialog w;
w.setFileMode(QFileDialog::ExistingFiles);
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
w.setOption(QFileDialog::ShowDirsOnly, false);
w.setOption(QFileDialog::DontUseNativeDialog, true);
w.setNameFilters(QStringList("Somnopause CSV File (*.csv)"));

View File

@ -35,6 +35,7 @@ OximeterImport::OximeterImport(QWidget *parent) :
{
ui->setupUi(this);
setWindowTitle(tr("Oximeter Import Wizard"));
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
ui->stackedWidget->setCurrentIndex(0);
ui->retryButton->setVisible(false);
ui->stopButton->setVisible(false);