summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-26 05:14:48 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-26 05:14:48 (GMT)
commit01cecd873a3187f8874b977887551bef4635280e (patch)
treee761ba67a0aec5a1a1e437ad75ea90659516c944
parente7310b4fc4721ce6c0d29131bcc165db5efb94b5 (diff)
Add new method to force autocorrection. Which will reimplement in messagecomposer
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/texteditor/richtexteditor/richtexteditor.cpp5
-rw-r--r--src/texteditor/richtexteditor/richtexteditor.h3
3 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 95b2ca3..59b0e41 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMAddTests)
-set(PIM_VERSION "5.3.41")
+set(PIM_VERSION "5.3.42")
set(KPIMTEXTEDIT_LIB_VERSION ${PIM_VERSION})
ecm_setup_version(${KPIMTEXTEDIT_LIB_VERSION} VARIABLE_PREFIX KPIMTEXTEDIT
diff --git a/src/texteditor/richtexteditor/richtexteditor.cpp b/src/texteditor/richtexteditor/richtexteditor.cpp
index 9301a6a..8b987d6 100644
--- a/src/texteditor/richtexteditor/richtexteditor.cpp
+++ b/src/texteditor/richtexteditor/richtexteditor.cpp
@@ -286,6 +286,11 @@ void RichTextEditor::addIgnoreWords(const QStringList &lst)
addIgnoreWordsToHighLighter();
}
+void RichTextEditor::forceAutoCorrection()
+{
+ //Nothing here
+}
+
void RichTextEditor::setSearchSupport(bool b)
{
if (b) {
diff --git a/src/texteditor/richtexteditor/richtexteditor.h b/src/texteditor/richtexteditor/richtexteditor.h
index 645fa5b..1b2d81d 100644
--- a/src/texteditor/richtexteditor/richtexteditor.h
+++ b/src/texteditor/richtexteditor/richtexteditor.h
@@ -92,6 +92,9 @@ public:
void addIgnoreWords(const QStringList &lst);
+ // Reimplement it in subclass
+ virtual void forceAutoCorrection();
+
Q_SIGNALS:
void say(const QString &text);