]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiWorkArea.cpp
Do not show master's errors if compiling child
[lyx.git] / src / frontends / qt4 / GuiWorkArea.cpp
index d8202b64a46f0c8ce67a3d9aea16eb262ccacb00..8bf5242b33cc6f1ff1ced7bccf6d8658bde90d3d 100644 (file)
@@ -259,6 +259,7 @@ GuiWorkArea::Private::Private(GuiWorkArea * parent)
 GuiWorkArea::GuiWorkArea(QWidget * /* w */)
 : d(new Private(this))
 {
+       new CompressorProxy(this); // not a leak
 }
 
 
@@ -1052,13 +1053,15 @@ void GuiWorkArea::generateSyntheticMouseEvent()
 
 
 // CompressorProxy adapted from Kuba Ober https://stackoverflow.com/a/21006207
-CompressorProxy::CompressorProxy(GuiWorkArea * wa) : QObject(wa)
+CompressorProxy::CompressorProxy(GuiWorkArea * wa) : QObject(wa), flag_(false)
 {
        qRegisterMetaType<KeySymbol>("KeySymbol");
        qRegisterMetaType<KeyModifier>("KeyModifier");
-       connect(wa, &GuiWorkArea::compressKeySym, this, &CompressorProxy::slot,
+       connect(wa, SIGNAL(compressKeySym(KeySymbol, KeyModifier, bool)),
+               this, SLOT(slot(KeySymbol, KeyModifier, bool)),
                Qt::QueuedConnection);
-       connect(this, &CompressorProxy::signal, wa, &GuiWorkArea::processKeySym);
+       connect(this, SIGNAL(signal(KeySymbol, KeyModifier)),
+               wa, SLOT(processKeySym(KeySymbol, KeyModifier)));
 }