summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2022-02-08 09:23:47 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-02-08 19:47:45 +0000
commit470da803923de132e5ba6badac951fb3f8bf8224 (patch)
treed747307e83ae63ba9dcd621c819fd084ed7806a5
parentb06559912e89d937def27f84cb9c4ffbf26c1523 (diff)
QtPdf: Fix QML warning about usage of injected signal parameters
Change-Id: I4bbc3c1adf4ba2bc5cc8d71278e201ee05fc85bd Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit f28c0e6680f3ef8ebb5e82d0fe375afbc6fb0fe9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/pdfquick/qml/PdfMultiPageView.qml2
-rw-r--r--src/pdfquick/qml/PdfScrollablePageView.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pdfquick/qml/PdfMultiPageView.qml b/src/pdfquick/qml/PdfMultiPageView.qml
index 71485c214..bee3a5c0d 100644
--- a/src/pdfquick/qml/PdfMultiPageView.qml
+++ b/src/pdfquick/qml/PdfMultiPageView.qml
@@ -389,7 +389,7 @@ Item {
id: navigationStack
property bool jumping: false
property int previousPage: 0
- onJumped: {
+ onJumped: function(page, location, zoom) {
jumping = true
root.renderScale = zoom
if (location.y < 0) {
diff --git a/src/pdfquick/qml/PdfScrollablePageView.qml b/src/pdfquick/qml/PdfScrollablePageView.qml
index 51d9e530d..aea1a70c2 100644
--- a/src/pdfquick/qml/PdfScrollablePageView.qml
+++ b/src/pdfquick/qml/PdfScrollablePageView.qml
@@ -143,7 +143,7 @@ Flickable {
PdfNavigationStack {
id: navigationStack
- onJumped: {
+ onJumped: function(page, location, zoom) {
root.renderScale = zoom
var dx = Math.max(0, location.x * root.renderScale - root.width / 2) - root.contentX
var dy = Math.max(0, location.y * root.renderScale - root.height / 2) - root.contentY