blob: 050e04d6d8680d484b3b8342ad3af68a852bf650 (
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:
QRectF _loc;
bool _highlighted=false;
int _page=0;
QString _text="";
public:
TextData(QRectF _loc, int _page, QString _text) {
this->_loc = _loc;
this->_page = _page;
this->_text = _text;
}
QRectF 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
|