From eb86239e3684d37b04d0b2f88d6f445ca741e2da Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 17 Apr 2021 15:13:02 +0200 Subject: [PATCH] Replace deprecated slot --- src/frontends/qt/GuiSymbols.cpp | 4 ++-- src/frontends/qt/GuiSymbols.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt/GuiSymbols.cpp b/src/frontends/qt/GuiSymbols.cpp index 0e5d4ced4f..d6a1926938 100644 --- a/src/frontends/qt/GuiSymbols.cpp +++ b/src/frontends/qt/GuiSymbols.cpp @@ -409,12 +409,12 @@ void GuiSymbols::on_symbolsLW_clicked(QModelIndex const & index) } -void GuiSymbols::on_categoryCO_activated(QString const & text) +void GuiSymbols::on_categoryCO_activated(int) { if (!categoryFilterCB->isChecked()) updateSymbolList(false); else - scrollToItem(text); + scrollToItem(categoryCO->currentText()); } diff --git a/src/frontends/qt/GuiSymbols.h b/src/frontends/qt/GuiSymbols.h index 7799e560db..260ce53a74 100644 --- a/src/frontends/qt/GuiSymbols.h +++ b/src/frontends/qt/GuiSymbols.h @@ -43,7 +43,7 @@ public Q_SLOTS: void on_buttonBox_clicked(QAbstractButton *); void on_symbolsLW_activated(QModelIndex const & index); void on_symbolsLW_clicked(QModelIndex const & index); - void on_categoryCO_activated(QString const & text); + void on_categoryCO_activated(int); void on_categoryFilterCB_toggled(bool); void on_chosenLE_returnPressed(); void on_chosenLE_textChanged(QString const &);