aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/pointer/fakeFlickable.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/pointer/fakeFlickable.qml')
-rw-r--r--tests/manual/pointer/fakeFlickable.qml13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/manual/pointer/fakeFlickable.qml b/tests/manual/pointer/fakeFlickable.qml
index 3007848c9f..be52e4dbaa 100644
--- a/tests/manual/pointer/fakeFlickable.qml
+++ b/tests/manual/pointer/fakeFlickable.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the manual tests of the Qt Toolkit.
@@ -30,6 +30,7 @@ import QtQuick 2.12
import "content"
Rectangle {
+ id: root
color: "#444"
width: 480
height: 640
@@ -49,8 +50,14 @@ Rectangle {
", parent " + parent + " geom " + parent.width + "x" + parent.height)
}
- onFlickStarted: console.log("flick started with velocity " + velocity)
- onFlickEnded: console.log("flick ended with velocity " + velocity)
+ onFlickStarted: {
+ root.border.color = "green"
+ console.log("flick started with velocity " + velocity)
+ }
+ onFlickEnded: {
+ root.border.color = "transparent"
+ console.log("flick ended with velocity " + velocity)
+ }
Component.onCompleted: {
var request = new XMLHttpRequest()