Lines 30-38
HunspellDict::HunspellDict(const QString &lang)
Link Here
|
30 |
: SpellerPlugin(lang), m_speller(0) |
30 |
: SpellerPlugin(lang), m_speller(0) |
31 |
{ |
31 |
{ |
32 |
qDebug() << " HunspellDict::HunspellDict( const QString& lang ):" << lang; |
32 |
qDebug() << " HunspellDict::HunspellDict( const QString& lang ):" << lang; |
33 |
QString dic = QStringLiteral("/usr/share/myspell/dicts/%1.dic").arg(lang); |
33 |
QString dic = QStringLiteral("/usr/share/myspell/%1.dic").arg(lang); |
34 |
if (QFileInfo(dic).exists()) { |
34 |
if (QFileInfo(dic).exists()) { |
35 |
m_speller = new Hunspell(QStringLiteral("/usr/share/myspell/dicts/%1.aff").arg(lang).toUtf8().constData(), dic.toUtf8().constData()); |
35 |
m_speller = new Hunspell(QStringLiteral("/usr/share/myspell/%1.aff").arg(lang).toUtf8().constData(), dic.toUtf8().constData()); |
36 |
} else { |
36 |
} else { |
37 |
m_speller = 0; |
37 |
m_speller = 0; |
38 |
} |
38 |
} |