summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-26 11:46:21 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-26 11:46:21 (GMT)
commitb8d30a730c0a1031d92ec8b746c7fde181cab568 (patch)
treef59249e26a21b750c7c2ee22b5f89e6ac617723d
parent01cecd873a3187f8874b977887551bef4635280e (diff)
add support for selected text
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/texteditor/richtexteditor/richtexteditor.cpp3
-rw-r--r--src/texteditor/richtexteditor/richtexteditor.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59b0e41..d9f4791 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.42")
+set(PIM_VERSION "5.3.43")
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 8b987d6..785a486 100644
--- a/src/texteditor/richtexteditor/richtexteditor.cpp
+++ b/src/texteditor/richtexteditor/richtexteditor.cpp
@@ -286,8 +286,9 @@ void RichTextEditor::addIgnoreWords(const QStringList &lst)
addIgnoreWordsToHighLighter();
}
-void RichTextEditor::forceAutoCorrection()
+void RichTextEditor::forceAutoCorrection(bool selectedText)
{
+ Q_UNUSED(selectedText);
//Nothing here
}
diff --git a/src/texteditor/richtexteditor/richtexteditor.h b/src/texteditor/richtexteditor/richtexteditor.h
index 1b2d81d..ae8dd9d 100644
--- a/src/texteditor/richtexteditor/richtexteditor.h
+++ b/src/texteditor/richtexteditor/richtexteditor.h
@@ -93,7 +93,7 @@ public:
void addIgnoreWords(const QStringList &lst);
// Reimplement it in subclass
- virtual void forceAutoCorrection();
+ virtual void forceAutoCorrection(bool selectedText = false);
Q_SIGNALS:
void say(const QString &text);