aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/Renderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/Renderer.h')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/Renderer.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/Renderer.h b/src-qt5/desktop-utils/lumina-pdf/Renderer.h
index 60db25ef..b983d14b 100644
--- a/src-qt5/desktop-utils/lumina-pdf/Renderer.h
+++ b/src-qt5/desktop-utils/lumina-pdf/Renderer.h
@@ -17,36 +17,36 @@ class Renderer : public QObject {
Q_OBJECT
private:
- int pnum; //number of pages - set on loading document
- bool needpass;
- QString docpath; //save the path for the currently-loaded document
- QString doctitle;
- QJsonObject jobj;
+ int pnum; //number of pages - set on loading document
+ bool needpass;
+ QString docpath; //save the path for the currently-loaded document
+ QString doctitle;
+ QJsonObject jobj;
public:
- Renderer();
- ~Renderer();
- bool loadMultiThread();
-
- //Information functions (usually needs to be loaded first)
- int numPages(){ return pnum; }
- bool needPassword(){ return needpass; }
- QString title(){ return doctitle; }
- QJsonObject properties() { return jobj; }
-
- //Main access functions
- bool loadDocument(QString path, QString password);
- void renderPage(int pagenum, QSize DPI);
- QList<TextData*> searchDocument(QString text, bool matchCase);
- void cleanup();
-
- QImage imageHash(int pagenum);
- int hashSize();
- void clearHash();
+ Renderer();
+ ~Renderer();
+ bool loadMultiThread();
+
+ //Information functions (usually needs to be loaded first)
+ int numPages(){ return pnum; }
+ bool needPassword(){ return needpass; }
+ QString title(){ return doctitle; }
+ QJsonObject properties() { return jobj; }
+
+ //Main access functions
+ bool loadDocument(QString path, QString password);
+ void renderPage(int pagenum, QSize DPI);
+ QList<TextData*> searchDocument(QString text, bool matchCase);
+ void cleanup();
+
+ QImage imageHash(int pagenum);
+ int hashSize();
+ void clearHash();
signals:
- void PageLoaded(int);
- void OrigSize(QSizeF);
+ void PageLoaded(int);
+ void OrigSize(QSizeF);
};
#endif
bgstack15