diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-06-04 19:29:58 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-06-04 19:29:58 -0400 |
commit | 6210e98ab05f1abb74877f3a75820e7af042b820 (patch) | |
tree | 357a313c0a0e7ff7b8a7b22a8bceb99d2d6e34ca /src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp | |
parent | Removed extra file and whitespace (diff) | |
download | lumina-6210e98ab05f1abb74877f3a75820e7af042b820.tar.gz lumina-6210e98ab05f1abb74877f3a75820e7af042b820.tar.bz2 lumina-6210e98ab05f1abb74877f3a75820e7af042b820.zip |
Began adding Syntax Support for formats to enable/disable spellcheck by default
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp index a80d4149..6a3acfed 100644 --- a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp @@ -46,6 +46,11 @@ bool SyntaxFile::highlight_excess_whitespace(){ return formatObj.value("highlight_whitespace_eol").toBool(); } +bool SyntaxFile::check_spelling(){ + if(!formatObj.contains("check_spelling")){ return false; } + return formatObj.value("check_spelling").toBool(); +} + int SyntaxFile::tab_length(){ int num = -1; if(formatObj.contains("tab_width")){ num = formatObj.value("tab_width").toInt(); } |