diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/Word.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/Word.h | 20 |
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; +}; |