From cf26d53e037cf59b5816cdb2f5c7d835b83d480a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ram=C3=B6ller?= Date: Mon, 3 Oct 2016 20:20:16 +0200 Subject: [PATCH] Remove question marks from Windows dialogs --- src/frontends/qt4/DialogView.h | 5 ++++- src/frontends/qt4/GuiDialog.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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)