]> git.lyx.org Git - features.git/commitdiff
Use qt4-compatible connect() syntax.
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 12 Jan 2018 14:41:27 +0000 (15:41 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 19 Jan 2018 08:33:06 +0000 (09:33 +0100)
Signed-off-by: Juergen Spitzmueller <spitz@lyx.org>
(cherry picked from commit aab58fed6b140e1629d7c4c4f7becbf5b3e74160)

src/frontends/qt4/GuiWorkArea.cpp
src/frontends/qt4/GuiWorkArea.h

index d8202b64a46f0c8ce67a3d9aea16eb262ccacb00..0ec84f0e103b70a7af8f589e0fcf4e10c9f318c4 100644 (file)
@@ -1056,9 +1056,11 @@ CompressorProxy::CompressorProxy(GuiWorkArea * wa) : QObject(wa)
 {
        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)));
 }
 
 
index 657b4f5b810399c2a91ecbdb226614efbedb8a13..34b5d3aa4d14ad0af9ec68fc3773cfd9bd21e3b2 100644 (file)
@@ -74,9 +74,6 @@ public:
 
        /// return true if the key is part of a shortcut
        bool queryKeySym(KeySymbol const & key, KeyModifier mod) const;
-       /// Process Key pressed event.
-       /// This needs to be public because it is accessed externally by GuiView.
-       void processKeySym(KeySymbol const & key, KeyModifier mod);
 
        bool inDialogMode() const;
        void setDialogMode(bool mode);
@@ -94,6 +91,9 @@ public:
        double pixelRatio() const;
 
 public Q_SLOTS:
+       /// Process Key pressed event.
+       /// This needs to be public because it is accessed externally by GuiView.
+       void processKeySym(KeySymbol const & key, KeyModifier mod);
        ///
        void stopBlinkingCursor();
        ///