From e42bc7e16e6d9f813b5c712261dffbef6b1bddb2 Mon Sep 17 00:00:00 2001 From: joe berner Date: Tue, 18 Dec 2018 10:59:15 -0600 Subject: 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. --- src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.h') 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 #include -#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; }; -- cgit