aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/Word.h
diff options
context:
space:
mode:
authorZackaryWelch <welch.zackary@gmail.com>2018-06-04 15:00:10 -0400
committerZackaryWelch <welch.zackary@gmail.com>2018-06-04 15:00:10 -0400
commit16d2012168e175502520831cc8ae9e1cc146ca3e (patch)
tree8a550e99b4b89507829f7391235a4038c40ff5c8 /src-qt5/desktop-utils/lumina-textedit/Word.h
parentCreate README.md (diff)
downloadlumina-16d2012168e175502520831cc8ae9e1cc146ca3e.tar.gz
lumina-16d2012168e175502520831cc8ae9e1cc146ca3e.tar.bz2
lumina-16d2012168e175502520831cc8ae9e1cc146ca3e.zip
Added spellchecking per Hunspell, which is currently disabled.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/Word.h')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/Word.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/Word.h b/src-qt5/desktop-utils/lumina-textedit/Word.h
new file mode 100644
index 00000000..7dd29257
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-textedit/Word.h
@@ -0,0 +1,20 @@
+#include <QTextEdit>
+
+#pragma once
+
+class Word {
+ public:
+ Word(QString _word, QStringList _sugg, QTextEdit::ExtraSelection _sel, int _blockNum, int _position) : word(_word), suggestions(_sugg), sel(_sel), blockNum(_blockNum), position(_position) {
+ ignored = false;
+ }
+
+ void ignore() { ignored = true; }
+ bool isIgnored() { return ignored; }
+
+ QString word;
+ QStringList suggestions;
+ QTextEdit::ExtraSelection sel;
+ bool ignored;
+ int blockNum;
+ int position;
+};
bgstack15