]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDialog.cpp
Do not show master's errors if compiling child
[lyx.git] / src / frontends / qt4 / GuiDialog.cpp
index f7271ad2bdcd5edaddd51f1a7fe9e858e6fc965b..2f57dc82800260144eaad9789e29af0cd0e5680b 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "GuiView.h"
 #include "qt_helpers.h"
-#include "FuncRequest.h"
 
 #include "support/debug.h"
 
@@ -26,8 +25,15 @@ namespace lyx {
 namespace frontend {
 
 GuiDialog::GuiDialog(GuiView & lv, QString const & name, QString const & title)
-       : QDialog(&lv), Dialog(lv, name, "LyX: " + title), is_closing_(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)
@@ -50,6 +56,13 @@ void GuiDialog::slotApply()
 }
 
 
+void GuiDialog::slotAutoApply()
+{
+       apply();
+       bc().autoApply();
+}
+
+
 void GuiDialog::slotOK()
 {
        is_closing_ = true;
@@ -113,4 +126,4 @@ void GuiDialog::updateView()
 } // namespace frontend
 } // namespace lyx
 
-#include "GuiDialog_moc.cpp"
+#include "moc_GuiDialog.cpp"