From: Daniel Ramöller Date: Mon, 3 Oct 2016 18:20:16 +0000 (+0200) Subject: Remove question marks from Windows dialogs X-Git-Tag: 2.3.0alpha1~914 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cf26d53e;p=features.git Remove question marks from Windows dialogs --- diff --git a/src/frontends/qt4/DialogView.h b/src/frontends/qt4/DialogView.h index d3125c6f8e..520a1e8979 100644 --- a/src/frontends/qt4/DialogView.h +++ b/src/frontends/qt4/DialogView.h @@ -30,7 +30,10 @@ public: /// \param title is the window title used for decoration. DialogView(GuiView & lv, QString const & name, QString const & title) : QDialog(&lv), Dialog(lv, name, "LyX: " + title) - {} + { + // remove question marks from Windows dialogs + setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); + } virtual QWidget * asQWidget() { return this; } virtual QWidget const * asQWidget() const { return this; } diff --git a/src/frontends/qt4/GuiDialog.cpp b/src/frontends/qt4/GuiDialog.cpp index 1797aeee5f..8f8a872f98 100644 --- a/src/frontends/qt4/GuiDialog.cpp +++ b/src/frontends/qt4/GuiDialog.cpp @@ -27,7 +27,10 @@ namespace frontend { GuiDialog::GuiDialog(GuiView & lv, QString const & name, QString const & title) : QDialog(&lv), Dialog(lv, name, "LyX: " + title), updating_(false), is_closing_(false) -{} +{ + // remove question marks from Windows dialogs + setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); +} void GuiDialog::closeEvent(QCloseEvent * ev)