]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDialog.cpp
Some improvements to the graphics dialog
[lyx.git] / src / frontends / qt4 / GuiDialog.cpp
index 1797aeee5fec27f8362f9d98919bd5c6223510b0..2f57dc82800260144eaad9789e29af0cd0e5680b 100644 (file)
@@ -25,9 +25,15 @@ namespace lyx {
 namespace frontend {
 
 GuiDialog::GuiDialog(GuiView & lv, QString const & name, QString const & title)
-       : QDialog(&lv), Dialog(lv, name, "LyX: " + title), updating_(false), 
+       : QDialog(&lv), Dialog(lv, name, "LyX: " + title), updating_(false),
          is_closing_(false)
-{}
+{
+       connect(&lv, SIGNAL(bufferViewChanged()),
+               this, SLOT(onBufferViewChanged()));
+
+       // remove question marks from Windows dialogs
+       setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
+}
 
 
 void GuiDialog::closeEvent(QCloseEvent * ev)