Debian Codegraph @

src/imports-compat/Test/TestExtras.qml

raw
1 /*
2 * Copyright 2014 Canonical Ltd.
3 * Copyright (C) 2022 UBports Foundation.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation; version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 pragma Singleton
19
20 import QtQml 2.12
21 import QtQuick 2.12
22 import Lomiri.Test 1.3 as LT
23 // DeprecationPrinter
24 import Lomiri.Components.Private 1.3
25
26 Item {
27 readonly property bool touchPresent: LT.TestExtras.touchPresent
28
29 function openGLflavor(...args) {
30 return LT.TestExtras.openGLflavor(...args);
31 }
32
33 function cpuArchitecture(...args) {
34 return LT.TestExtras.cpuArchitecture(...args);
35 }
36
37 function touchDevicePresent(...args) {
38 return LT.TestExtras.touchDevicePresent(...args);
39 }
40
41 function registerTouchDevice(...args) {
42 return LT.TestExtras.registerTouchDevice(...args);
43 }
44
45 function touchPress(...args) {
46 return LT.TestExtras.touchPress(...args);
47 }
48
49 function touchRelease(...args) {
50 return LT.TestExtras.touchRelease(...args);
51 }
52
53 function touchClick(...args) {
54 return LT.TestExtras.touchClick(...args);
55 }
56
57 function touchLongPress(...args) {
58 return LT.TestExtras.touchLongPress(...args);
59 }
60
61 function touchDoubleClick(...args) {
62 return LT.TestExtras.touchDoubleClick(...args);
63 }
64
65 function touchMove(...args) {
66 return LT.TestExtras.touchMove(...args);
67 }
68
69 function touchDrag(...args) {
70 return LT.TestExtras.touchDrag(...args);
71 }
72
73 function mouseDrag(...args) {
74 return LT.TestExtras.mouseDrag(...args);
75 }
76
77 function removeTimeConstraintsFromSwipeArea(...args) {
78 return LT.TestExtras.removeTimeConstraintsFromSwipeArea(...args);
79 }
80
81 Component.onCompleted: {
82 DeprecationPrinter.printDeprecation(
83 DeprecationPrinter.TEST);
84 }
85 }