Commit 4672c121 authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix compile with last change

parent c24e278e
......@@ -31,7 +31,7 @@ set(KMIME_LIB_VERSION "5.21.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.21.40")
set(LIBKDEPIM_LIB_VERSION "5.21.40")
set(LIBKLEO_LIB_VERSION "5.21.40")
set(PIMCOMMON_LIB_VERSION "5.21.40")
set(PIMCOMMON_LIB_VERSION "5.21.44")
set(GPGME_LIB_VERSION "1.16.0")
set(AKONADI_SEARCH_VERSION "5.21.40")
......
......@@ -65,7 +65,9 @@ void RichTextComposerNg::setAutocorrection(PimCommon::AutoCorrection *autocorrec
void RichTextComposerNg::setAutocorrectionLanguage(const QString &lang)
{
if (d->autoCorrection) {
d->autoCorrection->setLanguage(lang);
PimCommon::AutoCorrectionSettings settings;
settings.setLanguage(lang);
d->autoCorrection->setAutoCorrectionSettings(settings);
}
}
......@@ -77,7 +79,7 @@ static bool isSpecial(const QTextCharFormat &charFormat)
bool RichTextComposerNg::processModifyText(QKeyEvent *e)
{
if (d->autoCorrection && d->autoCorrection->isEnabledAutoCorrection()) {
if (d->autoCorrection && d->autoCorrection->autoCorrectionSettings().isEnabledAutoCorrection()) {
if ((e->key() == Qt::Key_Space) || (e->key() == Qt::Key_Enter) || (e->key() == Qt::Key_Return)) {
if (!isLineQuoted(textCursor().block().text()) && !textCursor().hasSelection()) {
const QTextCharFormat initialTextFormat = textCursor().charFormat();
......@@ -391,7 +393,7 @@ void RichTextComposerNg::forceAutoCorrection(bool selectedText)
if (document()->isEmpty()) {
return;
}
if (d->autoCorrection && d->autoCorrection->isEnabledAutoCorrection()) {
if (d->autoCorrection && d->autoCorrection->autoCorrectionSettings().isEnabledAutoCorrection()) {
const bool richText = (textMode() == RichTextComposer::Rich);
const int initialPosition = textCursor().position();
QTextCursor cur = textCursor();
......
Supports Markdown
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