uisupport: Allow to disable spell checking
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 25 Jul 2018 20:26:59 +0000 (22:26 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 23 Aug 2018 00:14:54 +0000 (02:14 +0200)
commit488f17a85739983b6357a53bd9158d81b6ac2114
tree1877a3507eff86cc4486335a4ecb9bb269d27ea6
parent4cf9c160f318a71400b032ea6d3031b9e6628a56
uisupport: Allow to disable spell checking

Apparently, Sonnet, when used standalone (i.e. not in KTextEdit),
does not honor its own setting to disable it by default.

Explicitly read the setting when initializing the highlighter, and
set its active state accordingly. Provide a context menu option
to enable/disable spell check on-the-fly as well.

Remove the bogus/unused checkbox in the InputWidget settings page;
there is a dedicated settings page for configuring spell checking.

Explicitly depend on Sonnet when building with KDE Frameworks
(it was transitively depended upon anyway), so we can be sure to
offer the Sonnet settings page even when using Frameworks.
CMakeLists.txt
src/qtui/inputwidget.cpp
src/qtui/inputwidget.h
src/qtui/settingspages/inputwidgetsettingspage.cpp
src/qtui/settingspages/inputwidgetsettingspage.ui
src/uisupport/CMakeLists.txt
src/uisupport/multilineedit.cpp
src/uisupport/multilineedit.h