]> git.lyx.org Git - features.git/commitdiff
Add some documentation
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 15 Dec 2020 08:52:52 +0000 (09:52 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 15 Dec 2020 08:52:52 +0000 (09:52 +0100)
src/frontends/qt/GuiSpellchecker.cpp

index 99bd3c50f87741d0bc1849c31ac22586055a8e16..de25c7aa2f5392deeeaffb6fd0312420900e44a6 100644 (file)
@@ -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_;
 };