]> git.lyx.org Git - features.git/commitdiff
Remove question marks from Windows dialogs
authorDaniel Ramöller <d.lyx@web.de>
Mon, 3 Oct 2016 18:20:16 +0000 (20:20 +0200)
committerGuillaume Munch <gm@lyx.org>
Sun, 9 Oct 2016 17:50:34 +0000 (19:50 +0200)
src/frontends/qt4/DialogView.h
src/frontends/qt4/GuiDialog.cpp

index d3125c6f8e94298e00e78d9898fada42b4a76114..520a1e89797accf21a8c364f6425113a34e9022c 100644 (file)
@@ -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; }
index 1797aeee5fec27f8362f9d98919bd5c6223510b0..8f8a872f98745e64ebac18e5a89db709d5e3ad70 100644 (file)
@@ -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)