diff options
Diffstat (limited to 'net-im/psi/files/patch-src_libpsi_tools_spellchecker_spellchecker.h')
-rw-r--r-- | net-im/psi/files/patch-src_libpsi_tools_spellchecker_spellchecker.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-im/psi/files/patch-src_libpsi_tools_spellchecker_spellchecker.h b/net-im/psi/files/patch-src_libpsi_tools_spellchecker_spellchecker.h new file mode 100644 index 000000000000..bbab53d364dc --- /dev/null +++ b/net-im/psi/files/patch-src_libpsi_tools_spellchecker_spellchecker.h @@ -0,0 +1,19 @@ +--- src/libpsi/tools/spellchecker/spellchecker.h.orig 2018-11-02 00:37:04 UTC ++++ src/libpsi/tools/spellchecker/spellchecker.h +@@ -37,12 +37,11 @@ class SpellChecker : public QObject (public) + static SpellChecker* instance(); + virtual bool available() const; + virtual bool writable() const; +- virtual QList<QString> suggestions(const QString&); ++ virtual QList<QString> suggestions(const QString& word, const QString& lang, unsigned max_sugs); + virtual bool isCorrect(const QString&); +- virtual bool add(const QString&); +- +- virtual void setActiveLanguages(const QList<QString>& ) {} +- virtual QList<QString> getAllLanguages() const { return QList<QString>(); } ++ virtual bool add(const QString& word, const QString& lang); ++ virtual QList<QString> getAllLanguages() const; ++ virtual void setActiveLanguages(const QList<QString>&); + + protected: + SpellChecker(); |