#ifndef textData_H #define textData_H #include 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