parent
315f91d737
commit
c86d1d63df
|
@ -1,6 +1,8 @@
|
||||||
#include "spellchecker.h"
|
#include "spellchecker.h"
|
||||||
|
|
||||||
|
#ifdef Q_OS_MACOS
|
||||||
#include "hunspell.hxx"
|
#include "hunspell.hxx"
|
||||||
|
#endif
|
||||||
#include <QTextCodec>
|
#include <QTextCodec>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
@ -12,7 +14,9 @@
|
||||||
|
|
||||||
SpellChecker::SpellChecker(QObject *parent)
|
SpellChecker::SpellChecker(QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
|
#ifdef Q_OS_MACOS
|
||||||
, m_hunspell(nullptr)
|
, m_hunspell(nullptr)
|
||||||
|
#endif
|
||||||
, m_userDict("userDict_")
|
, m_userDict("userDict_")
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -36,7 +40,10 @@ bool SpellChecker::spell(const QString &word)
|
||||||
|
|
||||||
bool SpellChecker::isInit() const
|
bool SpellChecker::isInit() const
|
||||||
{
|
{
|
||||||
|
#ifdef Q_OS_MACOS
|
||||||
return !m_hunspell;
|
return !m_hunspell;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpellChecker::initHunspell()
|
void SpellChecker::initHunspell()
|
||||||
|
|
Loading…
Reference in New Issue