Commit 8091944a authored by Shawn Rutledge's avatar Shawn Rutledge
Browse files

PdfMultiPageView: highlight current search result when tapped in list


Change-Id: Ib0a1aeac28350c8705899ab799ce776e6764b306
Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@qt.io>
Showing with 2 additions and 1 deletion
...@@ -84,6 +84,7 @@ Item { ...@@ -84,6 +84,7 @@ Item {
if (zoom > 0) if (zoom > 0)
root.renderScale = zoom root.renderScale = zoom
navigationStack.push(page, location, zoom) navigationStack.push(page, location, zoom)
searchModel.currentPage = page
} }
// page scaling // page scaling
...@@ -366,6 +367,6 @@ Item { ...@@ -366,6 +367,6 @@ Item {
PdfSearchModel { PdfSearchModel {
id: searchModel id: searchModel
document: root.document === undefined ? null : root.document document: root.document === undefined ? null : root.document
onCurrentPageChanged: root.goToPage(currentPage) onCurrentPageChanged: if (currentPage != navigationStack.currentPage) root.goToPage(currentPage)
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment