From: Juergen Spitzmueller Date: Sat, 11 Mar 2023 15:25:25 +0000 (+0100) Subject: Fix signals X-Git-Tag: 2.4-beta3~182 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=31a197d88c5521a3ff566597d22b7877d3e151c2;p=lyx.git Fix signals --- diff --git a/src/frontends/qt/GuiExternal.cpp b/src/frontends/qt/GuiExternal.cpp index 70239f19e2..372053af3b 100644 --- a/src/frontends/qt/GuiExternal.cpp +++ b/src/frontends/qt/GuiExternal.cpp @@ -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)]); } diff --git a/src/frontends/qt/GuiExternal.h b/src/frontends/qt/GuiExternal.h index 28044a47fa..d83b1138c3 100644 --- a/src/frontends/qt/GuiExternal.h +++ b/src/frontends/qt/GuiExternal.h @@ -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();