summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-26 11:49:08 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-26 11:49:08 (GMT)
commit2ede9b2f2abc3e7e259d1a2520df238c27146ea4 (patch)
treecccd330a174c261e73368e48d98cdb3fdab70d64
parent5668c06c060ba59274c55d93ff54ca39b77fd265 (diff)
Add support for selected text
-rw-r--r--CMakeLists.txt2
-rw-r--r--messagecomposer/src/composer-ng/richtextcomposerng.cpp3
-rw-r--r--messagecomposer/src/composer-ng/richtextcomposerng.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec9819d..80d3c2b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,7 +36,7 @@ set(KLDAP_LIB_VERSION "5.3.40")
set(KMAILTRANSPORT_LIB_VERSION "5.3.40")
set(KMBOX_LIB_VERSION "5.3.40")
set(KMIME_LIB_VERSION "5.3.40")
-set(KPIMTEXTEDIT_LIB_VERSION "5.3.42")
+set(KPIMTEXTEDIT_LIB_VERSION "5.3.43")
set(LIBKDEPIM_LIB_VERSION "5.3.42")
set(LIBKLEO_LIB_VERSION "5.3.40")
set(PIMCOMMON_LIB_VERSION "5.3.41")
diff --git a/messagecomposer/src/composer-ng/richtextcomposerng.cpp b/messagecomposer/src/composer-ng/richtextcomposerng.cpp
index 55b43d4..ad9b43c 100644
--- a/messagecomposer/src/composer-ng/richtextcomposerng.cpp
+++ b/messagecomposer/src/composer-ng/richtextcomposerng.cpp
@@ -369,8 +369,9 @@ QString RichTextComposerNg::toCleanHtml() const
return d->toCleanHtml();
}
-void RichTextComposerNg::forceAutoCorrection()
+void RichTextComposerNg::forceAutoCorrection(bool selectedText)
{
+ Q_UNUSED(selectedText);
if (d->autoCorrection && d->autoCorrection->isEnabledAutoCorrection()) {
if (!document()->isEmpty()) {
const bool richText = (textMode() == RichTextComposer::Rich);
diff --git a/messagecomposer/src/composer-ng/richtextcomposerng.h b/messagecomposer/src/composer-ng/richtextcomposerng.h
index 8564394..f76fa75 100644
--- a/messagecomposer/src/composer-ng/richtextcomposerng.h
+++ b/messagecomposer/src/composer-ng/richtextcomposerng.h
@@ -52,7 +52,7 @@ public:
QString toCleanHtml() const;
private:
- void forceAutoCorrection() Q_DECL_OVERRIDE;
+ void forceAutoCorrection(bool selectedText = false) Q_DECL_OVERRIDE;
bool processAutoCorrection(QKeyEvent *event) Q_DECL_OVERRIDE;
RichTextComposerNgPrivate *const d;
};