Commit 8e92316a authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Core: Supppress 'WhatsThis' in dialogs.

parent 06c94cda
......@@ -677,6 +677,7 @@ void BaseFileWizard::setupWizard(QWizard *w)
w->setOption(QWizard::NoCancelButton, false);
w->setOption(QWizard::NoDefaultButton, false);
w->setOption(QWizard::NoBackButtonOnStartPage, true);
w->setWindowFlags(w->windowFlags() & ~Qt::WindowContextHelpButtonHint);
}
/*!
......
......@@ -158,6 +158,8 @@ NewDialog::NewDialog(QWidget *parent) :
m_okButton(0)
{
typedef QMap<QString, QStandardItem *> CategoryItemMap;
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
m_ui->setupUi(this);
m_okButton = m_ui->buttonBox->button(QDialogButtonBox::Ok);
m_okButton->setDefault(true);
......
......@@ -43,6 +43,7 @@ OpenWithDialog::OpenWithDialog(const QString &fileName, QWidget *parent)
: QDialog(parent)
{
setupUi(this);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
label->setText(tr("Open file '%1' with:").arg(QFileInfo(fileName).fileName()));
buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
......
......@@ -53,6 +53,7 @@ SaveItemsDialog::SaveItemsDialog(QWidget *parent,
: QDialog(parent)
{
m_ui.setupUi(this);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
QPushButton *discardButton = m_ui.buttonBox->addButton(tr("Do not Save"), QDialogButtonBox::DestructiveRole);
m_ui.buttonBox->button(QDialogButtonBox::Save)->setDefault(true);
m_ui.buttonBox->button(QDialogButtonBox::Save)->setFocus(Qt::TabFocusReason);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment