Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
4672c121
Commit
4672c121
authored
Oct 25, 2022
by
Laurent Montel
Browse files
Fix compile with last change
parent
c24e278e
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
4672c121
...
...
@@ -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.4
0
"
)
set
(
PIMCOMMON_LIB_VERSION
"5.21.4
4
"
)
set
(
GPGME_LIB_VERSION
"1.16.0"
)
set
(
AKONADI_SEARCH_VERSION
"5.21.40"
)
...
...
messagecomposer/src/composer-ng/richtextcomposerng.cpp
View file @
4672c121
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment