summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2019-09-09 16:35:56 +0200
committerMichal Klocek <michal.klocek@qt.io>2019-11-25 13:04:19 +0100
commit0e533e924df25ecc6c0f5e16f88bdae0513b8445 (patch)
treebf863c19b0bd99e4759ed514aeff583eed90d891 /tests/manual
parentf6e67daeb4b357b265eeb2ff9992fbb969a55216 (diff)
Add page stepping shortcuts to simplest.qml PDF manual test
Change-Id: I3300fb68dd0b2f3701ca53cd118a4b11a0ac5ede Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/quick/pdf/simplest.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/manual/quick/pdf/simplest.qml b/tests/manual/quick/pdf/simplest.qml
index 05d8c53c4..37d388d0a 100644
--- a/tests/manual/quick/pdf/simplest.qml
+++ b/tests/manual/quick/pdf/simplest.qml
@@ -50,5 +50,17 @@
import QtQuick 2.14
Image {
+ id: image
source: "test.pdf"
+ fillMode: Image.PreserveAspectFit
+ Shortcut {
+ sequence: StandardKey.MoveToNextPage
+ enabled: image.currentFrame < image.frameCount - 1
+ onActivated: image.currentFrame++
+ }
+ Shortcut {
+ sequence: StandardKey.MoveToPreviousPage
+ enabled: image.currentFrame > 0
+ onActivated: image.currentFrame--
+ }
}