]> git.lyx.org Git - features.git/commitdiff
Replace obsoleted signal
authorEnrico Forestieri <forenr@lyx.org>
Thu, 1 Apr 2021 18:31:11 +0000 (20:31 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 1 Apr 2021 18:31:11 +0000 (20:31 +0200)
Since Qt 5.14 this signal is named textHighlighted.

src/frontends/qt/GuiHSpace.cpp

index 64c5b3809f8bb3e94ac9dc8d1cb7d35655321aab..ff7ed67e5576dca371f8c1603fc32f25275de836 100644 (file)
@@ -56,8 +56,13 @@ GuiHSpace::GuiHSpace(bool math_mode, QWidget * parent)
                spacingCO->addItem(qt_("Visible Space"), "visible");
        spacingCO->addItem(qt_("Custom"), "custom");
 
+#if QT_VERSION < 0x050e00
        connect(spacingCO, SIGNAL(highlighted(QString)),
                this, SLOT(changedSlot()));
+#else
+       connect(spacingCO, SIGNAL(textHighlighted(QString)),
+               this, SLOT(changedSlot()));
+#endif
        connect(valueLE, SIGNAL(textChanged(QString)),
                this, SLOT(changedSlot()));
        connect(spacingCO, SIGNAL(activated(int)),