]> git.lyx.org Git - lyx.git/commitdiff
Fix signals
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 11 Mar 2023 15:25:25 +0000 (16:25 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 11 Mar 2023 15:25:25 +0000 (16:25 +0100)
src/frontends/qt/GuiExternal.cpp
src/frontends/qt/GuiExternal.h

index 70239f19e22c03fe9080be60a7f405ea95b44a71..372053af3b0a897f2c5dc6574281c0325469dfa4 100644 (file)
@@ -100,12 +100,12 @@ GuiExternal::GuiExternal(GuiView & lv)
                this, SLOT(change_adaptor()));
        connect(browsePB, SIGNAL(clicked()),
                this, SLOT(browseClicked()));
-       connect(externalCO, SIGNAL(activated(QString)),
+       connect(externalCO, SIGNAL(activated(int)),
                this, SLOT(templateChanged()));
        connect(extraED, SIGNAL(textChanged(QString)),
                this, SLOT(extraChanged(QString)));
-       connect(extraFormatCO, SIGNAL(activated(QString)),
-               this, SLOT(formatChanged(QString)));
+       connect(extraFormatCO, SIGNAL(activated(int)),
+               this, SLOT(formatChanged(int)));
        connect(widthUnitCO, SIGNAL(activated(int)),
                this, SLOT(widthUnitChanged()));
        connect(heightUnitCO, SIGNAL(selectionChanged(lyx::Length::UNIT)),
@@ -315,9 +315,9 @@ void GuiExternal::extraChanged(const QString & text)
 }
 
 
-void GuiExternal::formatChanged(const QString & format)
+void GuiExternal::formatChanged(int const i)
 {
-       extraED->setText(extra_[format]);
+       extraED->setText(extra_[extraFormatCO->itemText(i)]);
 }
 
 
index 28044a47faef1a00167ebd749fe1cefaaf1a8a74..d83b1138c35265fd1589b57b396c4f16984d98bc 100644 (file)
@@ -36,7 +36,7 @@ private Q_SLOTS:
        void browseClicked();
        void change_adaptor();
        void extraChanged(const QString &);
-       void formatChanged(const QString &);
+       void formatChanged(int const);
        void getbbClicked();
        void sizeChanged();
        void templateChanged();