aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/pointerhandlers/multipointtoucharea_interop/data/dragParentOfMPTA.qml
blob: e6ebfdd552fb37129fab73e26f1787b1a42eb18e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import QtQuick 2.12

Item {
    width: 640
    height: 480
    property alias touchpointPressed: tp1.pressed

    Rectangle {
        color: tp1.pressed ? "lightsteelblue" : drag.active ? "tomato" : "wheat"
        width: 180
        height: 180

        DragHandler { id: drag }

        MultiPointTouchArea {
            anchors.fill: parent
            touchPoints: [
                TouchPoint { id: tp1 }
            ]
        }
    }
}