blob: 8583d934fc3ea0a8e1febdd4dfdbe49a6a428045 (
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
26
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
Item {
id: mockTouchPoint
property bool pressed: false
property int pointId: 0
Image {
source: "qrc:/touchpoint.png"
x: -(width / 2)
y: -(height / 2)
opacity: mockTouchPoint.pressed ? 0.6 : 0.0
Behavior on opacity {
NumberAnimation { duration: 200 }
}
Text {
text: mockTouchPoint.pointId
anchors.centerIn: parent
}
}
}
|