summaryrefslogtreecommitdiffstats
path: root/src/pdf/quick/qml/PdfPageView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf/quick/qml/PdfPageView.qml')
-rw-r--r--src/pdf/quick/qml/PdfPageView.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pdf/quick/qml/PdfPageView.qml b/src/pdf/quick/qml/PdfPageView.qml
index cf287ecf7..d03e9dc9d 100644
--- a/src/pdf/quick/qml/PdfPageView.qml
+++ b/src/pdf/quick/qml/PdfPageView.qml
@@ -57,6 +57,7 @@ Rectangle {
property alias forwardEnabled: navigationStack.forwardAvailable
function back() { navigationStack.back() }
function forward() { navigationStack.forward() }
+ function goToPage(page) { navigationStack.push(page, Qt.point(0, 0), renderScale) }
signal currentPageReallyChanged(page: int)
property real __pageScale: image.paintedWidth / document.pagePointSize(navigationStack.currentPage).width
@@ -203,7 +204,7 @@ Rectangle {
cursorShape: Qt.PointingHandCursor
onClicked: {
if (page >= 0)
- navigationStack.currentPage = page
+ navigationStack.push(page, Qt.point(0, 0), paper.renderScale)
else
Qt.openUrlExternally(url)
}