blob: 7dd292575658ae51bd37046c91389c6f463a020c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
};
|