diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-17 19:26:08 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-17 19:26:08 -0400 |
commit | 1e2d9a567a217c5ca3374bc307038e7a65be1c55 (patch) | |
tree | a9a122724603f75e811ee937a995f059a8022d2c /src-qt5/desktop-utils/lumina-pdf/textData.h | |
parent | Replaced tabs with spaces and removed some unneeded comments (diff) | |
download | lumina-1e2d9a567a217c5ca3374bc307038e7a65be1c55.tar.gz lumina-1e2d9a567a217c5ca3374bc307038e7a65be1c55.tar.bz2 lumina-1e2d9a567a217c5ca3374bc307038e7a65be1c55.zip |
Moved rotation to the Backend. Fixed memory issues in MuPDF but caused other in Poppler. Poppler consumes a lot of memory already and should no long be default once all memory issuse are sorted out in MuPDF.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/textData.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/textData.h | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/textData.h b/src-qt5/desktop-utils/lumina-pdf/textData.h index 050e04d6..9bf7e5bb 100644 --- a/src-qt5/desktop-utils/lumina-pdf/textData.h +++ b/src-qt5/desktop-utils/lumina-pdf/textData.h @@ -5,27 +5,31 @@ class TextData { private: - QRectF _loc; - bool _highlighted=false; - int _page=0; - QString _text=""; + QRectF p_loc; + bool p_highlighted=false; + int p_page=0; + QString p_text=""; + //int p_degrees=0; public: - TextData(QRectF _loc, int _page, QString _text) { - this->_loc = _loc; - this->_page = _page; - this->_text = _text; - } + TextData(QRectF _loc, int _page, QString _text) : + p_loc(_loc), + p_page(_page), + p_text(_text) + //p_degrees(_degrees) + { } - QRectF loc() { return this->_loc; } - bool highlighted() { return this->_highlighted; } - int page() { return this->_page; } - QString text() { return this->_text; } + QRectF loc() { return p_loc; } + bool highlighted() { return p_highlighted; } + int page() { return p_page; } + QString text() { return p_text; } + //int degrees() { return p_degrees; } - 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; } + void loc(QRect loc) { p_loc = loc; } + void highlighted(bool highlighted) { p_highlighted = highlighted; } + void page(int page) { p_page = page; } + void text(QString text) { p_text = text; } + //void degrees(int degrees) { p_degrees = degrees; } }; #endif |