summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-06-02 07:36:19 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2022-06-04 20:55:31 +0200
commitb22c25527711312830465b7d5bf56af0cc18d704 (patch)
tree3ff0f4265af0a46120c2c62e79fc84eaa90cc691 /examples
parent35697c1ded0577e88e774917a8ead31d7445465a (diff)
Give QPdfPageNavigator::jump() a default value for zoom
If the caller doesn't want to change it, it's easier to omit it rather than remembering that 0 is a special value. Change-Id: I851f678941e5144a9dea306fddba59fd15ed9939 Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/pdf/multipage/viewer.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pdf/multipage/viewer.qml b/examples/pdf/multipage/viewer.qml
index 3a12d9700..0e9855459 100644
--- a/examples/pdf/multipage/viewer.qml
+++ b/examples/pdf/multipage/viewer.qml
@@ -346,7 +346,7 @@ ApplicationWindow {
highlighted: ListView.isCurrentItem
onClicked: {
searchResultsList.currentIndex = resultDelegate.index
- view.goToLocation(resultDelegate.page, resultDelegate.location, 0)
+ view.goToLocation(resultDelegate.page, resultDelegate.location)
view.searchModel.currentResult = resultDelegate.indexOnPage
}
}