diff options
author | Jan Arve Saether <jan-arve.saether@qt.io> | 2017-06-23 13:34:27 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-03-02 11:23:28 +0000 |
commit | 440a15c52d979cc0221217480720978d55935c0d (patch) | |
tree | 23401b5ee15ea84bdbb0d54971a81f08a46d6ffb /tests/manual/pointer/main.qml | |
parent | e29adf1580e1845fc3ee26d5aea746410c0bec1a (diff) |
Manual test: combinations of DragHandler and TapHandler on Flickable
We already had a manual test using a slider, but that has only
one combination of DragHandler and TapHandler.
This test aims to test all possible combinations of DragHandler and
TapHandler together (as siblings, in different parts of the hierarcy,
with a Flickable beneath...)
We also show the current grabbers as an overlay over this entire
collection of manual tests.
Change-Id: Ic634d36d14f7456170f43b077fa72b03fb65bc18
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/manual/pointer/main.qml')
-rw-r--r-- | tests/manual/pointer/main.qml | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/tests/manual/pointer/main.qml b/tests/manual/pointer/main.qml index a50bfc3872..bd9097c517 100644 --- a/tests/manual/pointer/main.qml +++ b/tests/manual/pointer/main.qml @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2017 The Qt Company Ltd. +** Copyright (C) 2018 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the manual tests of the Qt Toolkit. @@ -28,11 +28,14 @@ import QtQuick 2.8 import QtQuick.Window 2.2 +import QtQuick.Layouts 1.2 import Qt.labs.handlers 1.0 +import org.qtproject.Test 1.0 import "qrc:/quick/shared/" as Examples import "content" Window { + id: window width: 800 height: 600 visible: true @@ -53,6 +56,7 @@ Window { addExample("tap", "TapHandler: device-agnostic tap/click detection for buttons", Qt.resolvedUrl("tapHandler.qml")) addExample("multibuttons", "TapHandler: gesturePolicy (99 red balloons)", Qt.resolvedUrl("multibuttons.qml")) addExample("flickable with Handlers", "Flickable with buttons, sliders etc. implemented in various ways", Qt.resolvedUrl("flickableWithHandlers.qml")) + addExample("tap and drag", "Flickable with all possible combinations of TapHandler and DragHandler children", Qt.resolvedUrl("pointerDrag.qml")) } } Item { @@ -70,5 +74,28 @@ Window { TouchpointFeedbackSprite { } MouseFeedbackSprite { } + + InputInspector { + id: inspector + source: window + } + + Rectangle { + anchors.bottom: parent.bottom + anchors.right: parent.right + anchors.margins: 4 + radius: 5 + width: Math.max(grid.implicitWidth, 400) + implicitHeight: grid.implicitHeight + color: "#40404080" + GridLayout { + id: grid + width: parent.width + columns: 3 + Text { text: "mouseGrabber" } Text { text: inspector.mouseGrabber } Item { Layout.fillWidth: true } + Text { text: "passiveGrabbers" } Text { text: inspector.passiveGrabbers } Item { Layout.fillWidth: true } + Text { text: "exclusiveGrabbers" } Text { text: inspector.exclusiveGrabbers } Item { Layout.fillWidth: true } + } + } } } |