2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2017-11-14 15:56:55 +00:00
|
|
|
|
2021-10-26 18:11:41 +00:00
|
|
|
import QtQuick
|
2017-11-14 15:56:55 +00:00
|
|
|
|
|
|
|
PointHandler {
|
|
|
|
id: handler
|
2021-09-06 19:40:18 +00:00
|
|
|
objectName: "point " + handler.point.id.toString(16)
|
|
|
|
acceptedDevices: PointerDevice.TouchScreen | PointerDevice.TouchPad
|
|
|
|
target: AnimatedSprite {
|
|
|
|
objectName: "sprite " + handler.point.id.toString(16)
|
|
|
|
source: "images/fingersprite.png"
|
2017-11-14 15:56:55 +00:00
|
|
|
visible: handler.active
|
2021-09-06 19:40:18 +00:00
|
|
|
running: visible // QTBUG-64544: running defaults to true, but we don't see it animating if we don't toggle it like this
|
|
|
|
x: handler.point.position.x - 20
|
|
|
|
y: handler.point.position.y - 13
|
|
|
|
width: frameWidth
|
|
|
|
height: frameHeight
|
|
|
|
frameWidth: 43
|
|
|
|
frameHeight: 64
|
|
|
|
frameCount: 3
|
|
|
|
frameRate: 5
|
2017-11-14 15:56:55 +00:00
|
|
|
parent: handler.parent
|
|
|
|
}
|
|
|
|
}
|