From: Juergen Spitzmueller Date: Tue, 15 Dec 2020 08:52:52 +0000 (+0100) Subject: Add some documentation X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9bf3a5a778986a5cf17a2e7987f43d15c41a053c;p=features.git Add some documentation --- diff --git a/src/frontends/qt/GuiSpellchecker.cpp b/src/frontends/qt/GuiSpellchecker.cpp index 99bd3c50f8..de25c7aa2f 100644 --- a/src/frontends/qt/GuiSpellchecker.cpp +++ b/src/frontends/qt/GuiSpellchecker.cpp @@ -87,7 +87,7 @@ struct SpellcheckerWidget::Private return false; } void canCheck() { incheck_ = false; } - /// check for wrap around + /// set if checking already started from the beginning void wrapAround(bool flag) { wrap_around_ = flag; if (flag) { @@ -103,7 +103,9 @@ struct SpellcheckerWidget::Private DocIterator const cursor() const; /// status checks bool isCurrentBuffer(DocIterator const & cursor) const; + /// return true if we ended a complete cycle bool isWrapAround(DocIterator const & cursor) const; + /// returns true if we did already start from the beginning bool isWrapAround() const { return wrap_around_; } bool atLastPos(DocIterator const & cursor) const; /// validate the cached doc iterators @@ -129,7 +131,7 @@ struct SpellcheckerWidget::Private DocIterator end_; /// bool incheck_; - /// + /// Did we already start from the beginning? bool wrap_around_; };