From e5a33355798d3277c631b0024f389cdca2f2c683 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 7 Feb 2020 14:54:31 +0100 Subject: PDF multipage viewer: iterate search results This version still has separate PdfSearchModel instances on each page, but now there are buttons to iterate and highlight the search results in order. When you come to the last result on one page, hitting the "Find Next" button will jump to the next page, and keep jumping forward from there until another result is found. Unfortunately this jumping takes time if it skips over a lot of pages because of empty search results. That seems to be another reason to make PdfSearchModel into a whole-document search model and use one instance. Also reorganize PdfMultiPageView.qml's public API into sections according to functionality rather than by type. Change-Id: I677a764fcbf231b2656aff8abe7240a27582a696 Reviewed-by: Shawn Rutledge --- examples/pdf/multipage/resources/go-up-search.svg | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/pdf/multipage/resources/go-up-search.svg (limited to 'examples/pdf/multipage/resources/go-up-search.svg') diff --git a/examples/pdf/multipage/resources/go-up-search.svg b/examples/pdf/multipage/resources/go-up-search.svg new file mode 100644 index 000000000..5cc155873 --- /dev/null +++ b/examples/pdf/multipage/resources/go-up-search.svg @@ -0,0 +1,8 @@ + + + + -- cgit v1.2.3