diff --git a/src/core/backgroundchecker.h b/src/core/backgroundchecker.h --- a/src/core/backgroundchecker.h +++ b/src/core/backgroundchecker.h @@ -77,6 +77,14 @@ QStringList suggest(const QString &word) const; bool addWordToPersonal(const QString &word); + /** + * This method is used to add a word to the session of the + * speller currently set in BackgroundChecker. + * + * @since 5.55 + */ + bool addWordToSession(const QString &word); + public Q_SLOTS: virtual void start(); virtual void stop(); diff --git a/src/core/backgroundchecker.cpp b/src/core/backgroundchecker.cpp --- a/src/core/backgroundchecker.cpp +++ b/src/core/backgroundchecker.cpp @@ -152,6 +152,11 @@ return d->currentDict.addToPersonal(word); } +bool BackgroundChecker::addWordToSession(const QString &word) +{ + return d->currentDict.addToSession(word); +} + QStringList BackgroundChecker::suggest(const QString &word) const { return d->currentDict.suggest(word);