aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.h
diff options
context:
space:
mode:
authorjoe berner <stackyjoe@gmail.com>2018-12-18 10:59:15 -0600
committerjoe berner <stackyjoe@gmail.com>2018-12-18 10:59:15 -0600
commite42bc7e16e6d9f813b5c712261dffbef6b1bddb2 (patch)
tree0c9e39d7e3f425691f854288a733b8d56c5f6ed3 /src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.h
parentMerge pull request #640 from lumina-desktop/q5sys-patch-1 (diff)
downloadlumina-e42bc7e16e6d9f813b5c712261dffbef6b1bddb2.tar.gz
lumina-e42bc7e16e6d9f813b5c712261dffbef6b1bddb2.tar.bz2
lumina-e42bc7e16e6d9f813b5c712261dffbef6b1bddb2.zip
Changes the UI interface so that only the current page is rendered on screen at a time. This has significant memory benefits for large PDF files. This also implements a least-recently used cache of tunable size, which improves responsiveness if you're hopping between two specific pages.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.h')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.h b/src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.h
index 46921f6f..03356582 100644
--- a/src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.h
+++ b/src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.h
@@ -6,22 +6,22 @@
//===========================================
#pragma once
+#include "Renderer.h"
#include <QDialog>
#include <QTextEdit>
-#include "Renderer.h"
-namespace Ui{
- class BookmarkMenu;
+namespace Ui {
+class BookmarkMenu;
};
-class BookmarkMenu : public QWidget{
+class BookmarkMenu : public QWidget {
Q_OBJECT
- public:
- BookmarkMenu(Renderer *Backend, QWidget *parent=NULL);
- public slots:
- void loadBookmarks();
+public:
+ BookmarkMenu(Renderer *Backend, QWidget *parent = NULL);
+public slots:
+ void loadBookmarks();
- private:
- Ui::BookmarkMenu *ui;
- Renderer *BACKEND;
+private:
+ Ui::BookmarkMenu *ui;
+ Renderer *BACKEND;
};
bgstack15