blob: 36fb3cb839e732ae2d5acfb616dfe98f6544072b (
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;
};
|