From a57cdd0d30ad8b7587842e66de94abad919e859d Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 4 Mar 2021 16:54:01 +0100 Subject: [PATCH] Remove confusing and unusual "Find Next" button from spellchecker dialog (#8931) --- src/frontends/qt/GuiSpellchecker.cpp | 14 -------- src/frontends/qt/GuiSpellchecker.h | 1 - src/frontends/qt/ui/SpellcheckerUi.ui | 50 +++++++++++---------------- 3 files changed, 20 insertions(+), 45 deletions(-) diff --git a/src/frontends/qt/GuiSpellchecker.cpp b/src/frontends/qt/GuiSpellchecker.cpp index 3685ac5295..dd1f9e962a 100644 --- a/src/frontends/qt/GuiSpellchecker.cpp +++ b/src/frontends/qt/GuiSpellchecker.cpp @@ -239,7 +239,6 @@ void SpellcheckerWidget::Private::updateView() // Enable widgets as needed. bool const has_word = enabled && !ui.wordED->text().isEmpty(); bool const can_replace = has_word && !bv->buffer().isReadonly(); - ui.findNextPB->setEnabled(enabled); ui.TextLabel3->setEnabled(enabled); ui.wordED->setEnabled(enabled); ui.ignorePB->setEnabled(has_word); @@ -461,19 +460,6 @@ void SpellcheckerWidget::on_ignorePB_clicked() } -void SpellcheckerWidget::on_findNextPB_clicked() -{ - if (d->disabled()) - return; - docstring const textfield = qstring_to_ucs4(d->ui.wordED->text()); - docstring const datastring = find2string(textfield, - true, true, true, false, false, false); - LYXERR(Debug::GUI, "Spellchecker: find next (" << textfield << ")"); - dispatch(FuncRequest(LFUN_WORD_FIND, datastring)); - d->canCheck(); -} - - void SpellcheckerWidget::on_replacePB_clicked() { if (d->disabled()) diff --git a/src/frontends/qt/GuiSpellchecker.h b/src/frontends/qt/GuiSpellchecker.h index 0ee7df164c..237446d7b2 100644 --- a/src/frontends/qt/GuiSpellchecker.h +++ b/src/frontends/qt/GuiSpellchecker.h @@ -37,7 +37,6 @@ public: bool initialiseParams(std::string const &); private Q_SLOTS: - void on_findNextPB_clicked(); void on_replaceAllPB_clicked(); void on_suggestionsLW_itemClicked(QListWidgetItem *); void on_replaceCO_highlighted(const QString & str); diff --git a/src/frontends/qt/ui/SpellcheckerUi.ui b/src/frontends/qt/ui/SpellcheckerUi.ui index e4409b3266..c22ae0ae5c 100644 --- a/src/frontends/qt/ui/SpellcheckerUi.ui +++ b/src/frontends/qt/ui/SpellcheckerUi.ui @@ -49,16 +49,6 @@ - - - - Ignore this word - - - Ign&ore - - - @@ -86,16 +76,6 @@ - - - - - - - Find Ne&xt - - - @@ -149,16 +129,6 @@ - - - - Ignore this word throughout this session - - - I&gnore All - - - @@ -195,6 +165,26 @@ + + + + Ignore this word + + + Ign&ore + + + + + + + Ignore this word throughout this session + + + I&gnore All + + + -- 2.39.5