]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDialog.cpp
Add clarifying comment
[lyx.git] / src / frontends / qt4 / GuiDialog.cpp
index e20c3bc66e45652efdc5a9bd87f4a2dafb5cfffb..cad37e654b9d9ffcc4c01af2bfb85e07019ba50d 100644 (file)
@@ -15,6 +15,8 @@
 #include "GuiView.h"
 #include "qt_helpers.h"
 
+#include "support/debug.h"
+
 #include <QCloseEvent>
 
 using namespace std;
@@ -25,7 +27,13 @@ namespace frontend {
 GuiDialog::GuiDialog(GuiView & lv, QString const & name, QString const & title)
        : 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)