mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-17 01:51:24 +00:00
parent
315f91d737
commit
c86d1d63df
@ -1,6 +1,8 @@
|
||||
#include "spellchecker.h"
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
#include "hunspell.hxx"
|
||||
#endif
|
||||
#include <QTextCodec>
|
||||
#include <QFile>
|
||||
#include <QDebug>
|
||||
@ -12,7 +14,9 @@
|
||||
|
||||
SpellChecker::SpellChecker(QObject *parent)
|
||||
: QObject(parent)
|
||||
#ifdef Q_OS_MACOS
|
||||
, m_hunspell(nullptr)
|
||||
#endif
|
||||
, m_userDict("userDict_")
|
||||
{
|
||||
|
||||
@ -36,7 +40,10 @@ bool SpellChecker::spell(const QString &word)
|
||||
|
||||
bool SpellChecker::isInit() const
|
||||
{
|
||||
#ifdef Q_OS_MACOS
|
||||
return !m_hunspell;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void SpellChecker::initHunspell()
|
||||
|
Loading…
x
Reference in New Issue
Block a user