blob: 546920b342e38a40abbe2e9af06184b4dd44e3f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef textData_H
#define textData_H
#include <QRect>
class TextData {
private:
QRect _loc;
bool _highlighted=false;
int _page=0;
QString _text="";
public:
TextData(QRect _loc, int _page, QString _text) {
this->_loc = _loc;
this->_page = _page;
this->_text = _text;
}
QRect loc() { return this->_loc; }
bool highlighted() { return this->_highlighted; }
int page() { return this->_page; }
QString text() { return this->_text; }
void loc(QRect loc) { this->_loc = loc; }
void highlighted(bool highlighted) { this->_highlighted = highlighted; }
void page(int page) { this->_page = page; }
void text(QString text) { this->_text = text; }
};
#endif
|