Sonnet: setLanguage should schedule a rehighlight if highlight is enabled

Authored by dfaure on Jul 28 2018, 10:33 PM.

Description

Sonnet: setLanguage should schedule a rehighlight if highlight is enabled

Summary:
... even if automatic enabling/disabling is off, as is the case in KMail.

This will allow removing a direct call to rehighlight() in kpimtextedit
which leads to the full highlighting being done twice (very slow on very
large emails).

Test Plan:
Replying to a mail in kmail and watching how many times
slotRehighlight is called. Well, this commit alone makes it worse,
but after a fix in kpimtextedit, it's down from 2 to 1.

Reviewers: sandsmark, mlaurent

Reviewed By: mlaurent

Subscribers: kde-frameworks-devel, KDE PIM

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D14447

Details

Committed
dfaureJul 29 2018, 11:13 AM
Reviewer
mlaurent
Differential Revision
D14447: Sonnet: setLanguage should schedule a rehighlight if highlight is enabled
Parents
R246:0a96acf251ba: Use the current hunspell API
Branches
Unknown
Tags
Unknown