Hint the OS to not show [?] in Wizards and Dialogs

Fixes #1156
This commit is contained in:
Daniel Molkentin 2013-11-13 20:12:56 +01:00
parent 21c9fc2d35
commit 8f61cc4041
7 changed files with 7 additions and 0 deletions

View file

@ -369,6 +369,7 @@ FolderWizard::FolderWizard( QWidget *parent )
_folderWizardSourcePage(new FolderWizardSourcePage),
_folderWizardTargetPage(0)
{
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setPage(Page_Source, _folderWizardSourcePage );
if (!Theme::instance()->singleSyncFolder()) {
_folderWizardTargetPage = new FolderWizardTargetPage();

View file

@ -29,6 +29,7 @@ IgnoreListEditor::IgnoreListEditor(QWidget *parent) :
QDialog(parent),
ui(new Ui::IgnoreListEditor)
{
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
ui->setupUi(this);
ui->descriptionLabel->setText(tr("Files or directories matching a pattern will not be synchronized.\n\n"

View file

@ -54,6 +54,7 @@ LogBrowser::LogBrowser(QWidget *parent) :
QDialog(parent),
_logWidget( new LogWidget(parent) )
{
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setObjectName("LogBrowser"); // for save/restoreGeometry()
setWindowTitle(tr("Log Output"));
setMinimumWidth(600);

View file

@ -44,6 +44,7 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent) :
QDialog(parent),
_ui(new Ui::SettingsDialog)
{
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
_ui->setupUi(this);
setObjectName("Settings"); // required as group for saveGeometry call

View file

@ -60,6 +60,7 @@ bool SslDialogErrorHandler::handleErrors(QList<QSslError> errors, QList<QSslCert
SslErrorDialog::SslErrorDialog(Account *account, QWidget *parent) :
QDialog(parent), _allTrusted(false), _ui(new Ui::SslErrorDialog), _account(account)
{
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
_ui->setupUi( this );
setWindowTitle( tr("SSL Connection") );
QPushButton *okButton =

View file

@ -131,6 +131,7 @@ void UpdateDetector::showDialog()
hlayout->addWidget(lbl);
QDialogButtonBox *bb = new QDialogButtonBox;
bb->setWindowFlags(bb->windowFlags() & ~Qt::WindowContextHelpButtonHint);
QPushButton *skip = bb->addButton(tr("Skip update"), QDialogButtonBox::ResetRole);
QPushButton *reject = bb->addButton(tr("Skip this time"), QDialogButtonBox::AcceptRole);
QPushButton *getupdate = bb->addButton(tr("Get update"), QDialogButtonBox::AcceptRole);

View file

@ -47,6 +47,7 @@ OwncloudWizard::OwncloudWizard(QWidget *parent)
_setupLog(),
_configExists(false)
{
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setPage(WizardCommon::Page_ServerSetup, _setupPage);
setPage(WizardCommon::Page_HttpCreds, _httpCredsPage);
setPage(WizardCommon::Page_ShibbolethCreds, _shibbolethCredsPage);