[LyX/master] Replace removed signal
Juergen Spitzmueller
spitz at lyx.org
Fri May 12 06:39:27 UTC 2023
commit 75f628aec062fe13349048ac8fc081e912e21d0c
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri May 12 09:46:38 2023 +0200
Replace removed signal
The used one has been removed from Qt6
---
src/frontends/qt/GuiSpellchecker.cpp | 3 ++-
src/frontends/qt/GuiSpellchecker.h | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt/GuiSpellchecker.cpp b/src/frontends/qt/GuiSpellchecker.cpp
index 8adf132..d58f435 100644
--- a/src/frontends/qt/GuiSpellchecker.cpp
+++ b/src/frontends/qt/GuiSpellchecker.cpp
@@ -192,8 +192,9 @@ void SpellcheckerWidget::on_suggestionsLW_itemClicked(QListWidgetItem * item)
}
-void SpellcheckerWidget::on_replaceCO_highlighted(const QString & str)
+void SpellcheckerWidget::on_replaceCO_highlighted(int index)
{
+ QString const str = d->ui.replaceCO->itemText(index);
QListWidget * lw = d->ui.suggestionsLW;
if (lw->currentItem() && lw->currentItem()->text() == str)
return;
diff --git a/src/frontends/qt/GuiSpellchecker.h b/src/frontends/qt/GuiSpellchecker.h
index dd60eed..6b9682e 100644
--- a/src/frontends/qt/GuiSpellchecker.h
+++ b/src/frontends/qt/GuiSpellchecker.h
@@ -39,7 +39,7 @@ public:
private Q_SLOTS:
void on_replaceAllPB_clicked();
void on_suggestionsLW_itemClicked(QListWidgetItem *);
- void on_replaceCO_highlighted(const QString & str);
+ void on_replaceCO_highlighted(int index);
void on_languageCO_activated(int index);
void on_ignoreAllPB_clicked();
void on_skipAllPB_clicked();
More information about the lyx-cvs
mailing list