Commit 9a47b635 authored by C. Boemann's avatar C. Boemann

recheck when changing default language

parent 032a89e9
......@@ -140,6 +140,9 @@ void SpellCheck::setDefaultLanguage(const QString &language)
{
m_speller.setDefaultLanguage(language);
m_bgSpellCheck->setDefaultLanguage(language);
if (m_enableSpellCheck) {
checkSection(m_document, 0, m_document->characterCount() - 1);
}
}
void SpellCheck::setBackgroundSpellChecking(bool on)
......@@ -167,6 +170,7 @@ void SpellCheck::setBackgroundSpellChecking(bool on)
}
}
void SpellCheck::setSkipAllUppercaseWords(bool on)
{
m_speller.setAttribute(Speller::CheckUppercase, !on);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment