Removed question mark buttons on windows

This commit is contained in:
Daniel Brunner
2017-12-22 21:02:01 +01:00
parent fe0152b00a
commit 3049c6b09e
11 changed files with 11 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ AdvancedViewDialog::AdvancedViewDialog(StripsWidget &stripsWidget) :
m_timeAssignmentsModel(new TimeAssignmentsModel(stripsWidget, this)) m_timeAssignmentsModel(new TimeAssignmentsModel(stripsWidget, this))
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
ui->bookingsView->setModel(m_bookingsModel); ui->bookingsView->setModel(m_bookingsModel);
ui->bookingsView->setEnabled(m_bookingsModel->enabled()); ui->bookingsView->setEnabled(m_bookingsModel->enabled());

View File

@@ -6,6 +6,7 @@ BookingDialog::BookingDialog(QWidget *parent) :
ui(new Ui::BookingDialog) ui(new Ui::BookingDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
} }
BookingDialog::~BookingDialog() BookingDialog::~BookingDialog()

View File

@@ -13,6 +13,7 @@ TimeAssignmentDialog::TimeAssignmentDialog(const QMap<QString, QString> &project
ui(new Ui::TimeAssignmentDialog) ui(new Ui::TimeAssignmentDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
{ {
for(const auto &preferedProject : settings.projects()) for(const auto &preferedProject : settings.projects())

View File

@@ -6,6 +6,7 @@ LogDialog::LogDialog(QWidget *parent) :
ui(new Ui::LogDialog) ui(new Ui::LogDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
} }
LogDialog::~LogDialog() LogDialog::~LogDialog()

View File

@@ -16,6 +16,7 @@ LunchMealDialog::LunchMealDialog(StripsWidget &stripsWidget) :
ui(new Ui::LunchMealDialog) ui(new Ui::LunchMealDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
ui->labelTitle->setText(tr("Lunch meal for %0").arg(stripsWidget.date().toString(tr("dd.MM.yyyy")))); ui->labelTitle->setText(tr("Lunch meal for %0").arg(stripsWidget.date().toString(tr("dd.MM.yyyy"))));

View File

@@ -6,6 +6,7 @@ ProfileDialog::ProfileDialog(const GetUserInfoReply::UserInfo &userInfo, QWidget
ui(new Ui::ProfileDialog) ui(new Ui::ProfileDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
ui->spinBoxUserId->setValue(userInfo.userId); ui->spinBoxUserId->setValue(userInfo.userId);
ui->lineEditEmail->setText(userInfo.email); ui->lineEditEmail->setText(userInfo.email);

View File

@@ -24,6 +24,7 @@ UpdaterDialog::UpdaterDialog(MainWindow &mainWindow) :
m_mainWindow(mainWindow) m_mainWindow(mainWindow)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_DeleteOnClose);

View File

@@ -11,6 +11,7 @@ WebRadioDialog::WebRadioDialog(MainWindow &mainWindow) :
m_player(new QMediaPlayer(this)) m_player(new QMediaPlayer(this))
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
connect(m_player, &QMediaPlayer::stateChanged, this, &WebRadioDialog::stateChanged); connect(m_player, &QMediaPlayer::stateChanged, this, &WebRadioDialog::stateChanged);
connect(m_player, &QMediaPlayer::stateChanged, this, &WebRadioDialog::updateWidgets); connect(m_player, &QMediaPlayer::stateChanged, this, &WebRadioDialog::updateWidgets);

View File

@@ -6,6 +6,7 @@ AuthenticationDialog::AuthenticationDialog(QWidget *parent) :
ui(new Ui::AuthenticationDialog) ui(new Ui::AuthenticationDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
} }
AuthenticationDialog::~AuthenticationDialog() AuthenticationDialog::~AuthenticationDialog()

View File

@@ -6,6 +6,7 @@ LanguageSelectionDialog::LanguageSelectionDialog(QWidget *parent) :
ui(new Ui::LanguageSelectionDialog) ui(new Ui::LanguageSelectionDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
ui->comboBoxLanguage->addItem(tr("English"), QLocale::English); ui->comboBoxLanguage->addItem(tr("English"), QLocale::English);
ui->comboBoxLanguage->addItem(tr("German"), QLocale::German); ui->comboBoxLanguage->addItem(tr("German"), QLocale::German);

View File

@@ -16,6 +16,7 @@ SettingsDialog::SettingsDialog(ZeiterfassungSettings &settings, QWidget *parent)
m_settings(settings) m_settings(settings)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
ui->comboBoxLanguage->addItem(tr("English"), QLocale::English); ui->comboBoxLanguage->addItem(tr("English"), QLocale::English);
ui->comboBoxLanguage->addItem(tr("German"), QLocale::German); ui->comboBoxLanguage->addItem(tr("German"), QLocale::German);