Debian Codegraph @

src/LomiriGestures/ucswipearea.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2015 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 #include "ucswipearea_p_p.h"cxx . . $ `<file>/src/LomiriGestures/ucswipearea_p_p.h`/
18
19 #include <QtCore/QDebug>
20 #include <QtGui/QScreen>
21 #include <QtCore/QtMath>
22 #include <QtQuick/QQuickWindow>
23 #include <QtQuick/private/qquickwindow_p.h>
24
25 #include "touchownershipevent_p.h"cxx . . $ `<file>/src/LomiriGestures/touchownershipevent_p.h`/
26 #include "touchregistry_p.h"cxx . . $ `<file>/src/LomiriGestures/touchregistry_p.h`/
27 #include "unownedtouchevent_p.h"cxx . . $ `<file>/src/LomiriGestures/unownedtouchevent_p.h`/
28
29 UG_NAMESPACE_BEGINcxx . . $ `src/LomiriGestures/lomirigesturesglobal.h:30:9`!
30
31 Q_LOGGING_CATEGORYcxx . . $ `<external>/13903568758641964362/qloggingcategory.h:114:9`!(ucSwipeArea, "lomiri.components.SwipeArea", QtMsgType::QtWarningMsg)
32 Q_LOGGING_CATEGORYcxx . . $ `<external>/13903568758641964362/qloggingcategory.h:114:9`!(ucActiveTouchInfo, "lomiri.components.SwipeArea.ActiveTouchInfo", QtMsgType::QtWarningMsg)
33
34 #define SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!(params) qCDebugcxx . . $ `<external>/13903568758641964362/qloggingcategory.h:122:11`!(ucSwipeArea).nospace() << "[SwipeArea(" << qPrintablecxx . . $ `<external>/15045578679651060896/qglobal.h:831:11`!(objectName()) << ")] " << params
35 #define SA_WARNcxx . . $ `src/LomiriGestures/ucswipearea.cpp:35:9`!(params) qCWarning(ucSwipeArea).nospace() << "[SwipeArea(" << qPrintable(objectName()) << ")] " << params
36 #define TI_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:36:9`!(params) qCDebugcxx . . $ `<external>/13903568758641964362/qloggingcategory.h:122:11`!(ucActiveTouchInfo).nospace() << "[ActiveTouchInfo] " << params
37
38 namespacecxx . . $ LomiriGestures/`$anonymous_namespace_src/LomiriGestures/ucswipearea.cpp`/ {
39 const char *statusToStringcxx . . $ LomiriGestures/`$anonymous_namespace_src/LomiriGestures/ucswipearea.cpp`/statusToString(b4681925b7e248da).(UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::Statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#Status# status)
40 {
41 if (status == UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.) {
42 return "WaitingForTouch";
43 } else if (status == UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::Undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Undecided.) {
44 return "Undecided";
45 } else {
46 return "Recognized";
47 }
48 }
49 } // namespace {
50
51 class Directioncxx . . $ LomiriGestures/Direction#
52 {
53 public:
54 static bool isHorizontalcxx . . $ LomiriGestures/Direction#isHorizontal(d67965ea49afdc6f).(UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Directioncxx . . $ LomiriGestures/UCSwipeArea#Direction# type)
55 {
56 return type == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Leftwardscxx . . $ LomiriGestures/UCSwipeArea#Leftwards.
57 || type == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Rightwardscxx . . $ LomiriGestures/UCSwipeArea#Rightwards.
58 || type == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Horizontalcxx . . $ LomiriGestures/UCSwipeArea#Horizontal.;
59 }
60
61 static bool isVerticalcxx . . $ LomiriGestures/Direction#isVertical(d67965ea49afdc6f).(UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Directioncxx . . $ LomiriGestures/UCSwipeArea#Direction# type)
62 {
63 return type == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Upwardscxx . . $ LomiriGestures/UCSwipeArea#Upwards.
64 || type == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Downwardscxx . . $ LomiriGestures/UCSwipeArea#Downwards.
65 || type == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Verticalcxx . . $ LomiriGestures/UCSwipeArea#Vertical.;
66 }
67
68 static bool isPositivecxx . . $ LomiriGestures/Direction#isPositive(d67965ea49afdc6f).(UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Directioncxx . . $ LomiriGestures/UCSwipeArea#Direction# type)
69 {
70 return type == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Rightwardscxx . . $ LomiriGestures/UCSwipeArea#Rightwards.
71 || type == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Downwardscxx . . $ LomiriGestures/UCSwipeArea#Downwards.
72 || type == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Horizontalcxx . . $ LomiriGestures/UCSwipeArea#Horizontal.
73 || type == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Verticalcxx . . $ LomiriGestures/UCSwipeArea#Vertical.;
74 }
75 };
76 /*!
77 * \qmltype SwipeArea
78 * \instantiates UCSwipeArea
79 * \inherits Item
80 * \inqmlmodule Lomiri.Components
81 * \since Lomiri.Components 1.3
82 * \ingroup lomiri-gestures
83 * \brief An area which detects axis-aligned single-finger drag gestures.
84 *
85 * The component can be used to detect gestures of a certain direction, and can
86 * grab gestures started on a component placed behind of the SwipeArea.
87 * The gesture is detected on the SwipeArea, therefore the size must be
88 * chosen carefully so it can properly detect the gesture.
89 *
90 * The gesture direction is specified by the \l direction property. The recognized
91 * and captured gesture is reported through the \l dragging property, which becomes
92 * \c true when the gesture is detected. If there was a component under the
93 * SwipeArea, the gesture will be cancelled on that component.
94 *
95 * The drag recognition is performed within the component area in the specified
96 * direction. If the drag deviates too much from this, recognition will fail,
97 * as well as if the drag or the flick is too short. Once the drag is
98 * intercepted, the gesture will be followed even after it leaves the detection area.
99 *
100 * Example:
101 * \qml
102 * import QtQuick 2.4
103 * import Lomiri.Components 1.3
104 *
105 * MainView {
106 * width: units.gu(40)
107 * height: units.gu(70)
108 *
109 * Page {
110 * title: "SwipeArea sample"
111 * SwipeArea {
112 * anchors {
113 * left: parent.left
114 * right: parent.right
115 * bottom: parent.bottom
116 * }
117 * height: units.gu(5)
118 * direction: SwipeArea.Upwards
119 * Label {
120 * text: "Drag upwards"
121 * anchors {
122 * centerIn: parent
123 * verticalOffset: parent.dragging ? parent.distance : 0
124 * }
125 * }
126 * }
127 * }
128 * }
129 * \endqml
130 * \note When used with a Flickable (or ListView, GridView) always put the
131 * SwipeArea next to the Flickable as sibling.
132 */
133 UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#UCSwipeArea(28aa4acb8f529eea).(QQuickItemcxx . . $ QQuickItem# *parent)
134 : QQuickItemcxx . . $ QQuickItem#(*(new UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#UCSwipeAreaPrivate(49f6e7a06ebc5aa8).), parent)
135 {
136 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(UCSwipeArea);
137 d->initcxx . . $ LomiriGestures/UCSwipeAreaPrivate#init(49f6e7a06ebc5aa8).();
138
139 setAcceptTouchEventscxx . . $ QQuickItem#setAcceptTouchEvents(b45ddcbc8423892c).(true);
140 }
141
142 /*!
143 * \qmlproperty enum SwipeArea::direction
144 * The direction in which the gesture should move in order to be recognized.
145 * \table
146 * \header
147 * \li Direction
148 * \li Description
149 * \row
150 * \li Rightwards
151 * \li Along the positive direction of the X axis
152 * \row
153 * \li Leftwards
154 * \li Along the negative direction of the X axis
155 * \row
156 * \li Downwards
157 * \li Along the positive direction of the Y axis
158 * \row
159 * \li Upwards
160 * \li Along the negative direction of the Y axis
161 * \row
162 * \li Horizontal
163 * \li Along the X axis, in any direction
164 * \row
165 * \li Vertical
166 * \li Along the Y axis, in any direction
167 * \endtable
168 */
169 UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Directioncxx . . $ LomiriGestures/UCSwipeArea#Direction# UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::directioncxx . . $ LomiriGestures/UCSwipeArea#direction(31066bab0d44ba51).() const
170 {
171 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const UCSwipeArea);
172 return d->directioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#direction.;
173 }
174
175 void UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::setDirectioncxx . . $ LomiriGestures/UCSwipeArea#setDirection(c6b2c9734c985649).(Directioncxx . . $ LomiriGestures/UCSwipeArea#Direction# direction)
176 {
177 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(UCSwipeArea);
178 if (direction != d->directioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#direction.) {
179 d->directioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#direction. = direction;
180 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! directionChangedcxx . . $ LomiriGestures/UCSwipeArea#directionChanged(c6b2c9734c985649).(d->directioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#direction.);
181 }
182 }
183
184 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::setDistanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#setDistanceThreshold(ba8836b59fb42830).(qrealcxx . . $ qreal# value)
185 {
186 if (distanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThreshold. != value) {
187 distanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThreshold. = value;
188 distanceThresholdSquaredcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThresholdSquared. = distanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThreshold. * distanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThreshold.;
189 }
190 }
191
192 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::setCompositionTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#setCompositionTime(d4f767463ce0a6b3).(int value)
193 {
194 compositionTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#compositionTime. = value;
195 }
196
197 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::setMaxTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#setMaxTime(d4f767463ce0a6b3).(int value)
198 {
199 if (maxTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxTime. != value) {
200 maxTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxTime. = value;
201 recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.->setIntervalcxx . . $ LomiriGestures/AbstractTimer#setInterval(d4f767463ce0a6b3).(maxTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxTime.);
202 }
203 }
204
205 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::setRecognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#setRecognitionTimer(51ff982643cafd7).(UG_PREPEND_NAMESPACEcxx . . $ `src/LomiriGestures/lomirigesturesglobal.h:32:9`!(AbstractTimer) *timer)
206 {
207 int interval = 0;
208 bool timerWasRunning = false;
209 bool wasSingleShot = false;
210 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
211
212 // can be null when called from the constructor
213 if (recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.) {
214 wasSingleShot = recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.->isSingleShotcxx . . $ LomiriGestures/AbstractTimer#isSingleShot(50ce9a9e25b4a850).();
215 interval = recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.->intervalcxx . . $ LomiriGestures/AbstractTimer#interval(455f465bc33b4cdf).();
216 timerWasRunning = recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.->isRunningcxx . . $ LomiriGestures/AbstractTimer#isRunning(50ce9a9e25b4a850).();
217 if (recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.->parentcxx . . $ QObject#parent(2dbb680a34285c44).() ==cxx . . $ `operator==`(d35e8b31fb5dfd9b). q) {
218 delete recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.;
219 }
220 }
221
222 recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer. = timer;
223 timer->setIntervalcxx . . $ LomiriGestures/AbstractTimer#setInterval(d4f767463ce0a6b3).(interval);
224 timer->setSingleShotcxx . . $ LomiriGestures/AbstractTimer#setSingleShot(b45ddcbc8423892c).(wasSingleShot);
225 QObjectcxx . . $ QObject#::connectcxx . . $ QObjectPrivate#connect(835f87066c895669).(timer, &UG_PREPEND_NAMESPACEcxx . . $ `src/LomiriGestures/lomirigesturesglobal.h:32:9`!(AbstractTimer)::timeoutcxx . . $ LomiriGestures/AbstractTimer#timeout(49f6e7a06ebc5aa8).,
226 q, &UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::rejectGesturecxx . . $ LomiriGestures/UCSwipeArea#rejectGesture(49f6e7a06ebc5aa8).);
227 if (timerWasRunning) {
228 recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.->startcxx . . $ LomiriGestures/AbstractTimer#start(49f6e7a06ebc5aa8).();
229 }
230 }
231
232 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::setTimeSourcecxx . . $ LomiriGestures/UCSwipeAreaPrivate#setTimeSource(e13a9371cd1b0d44).(const SharedTimeSourcecxx . . $ LomiriGestures/SharedTimeSource# &timeSource)
233 {
234 this->timeSource = timeSource;
235 activeTouches.m_timeSource = timeSource;
236 }
237
238 /*!
239 * \qmlproperty real SwipeArea::distance
240 * \readonly
241 * The property holds the distance of the swipe from the beginning of the gesture
242 * recognition to the current touch position.
243 */
244 qrealcxx . . $ qreal# UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::distancecxx . . $ LomiriGestures/UCSwipeArea#distance(21b6c25e127938e2).() const
245 {
246 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const UCSwipeArea);
247 return d->sceneDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#sceneDistance.;
248 }
249
250 /*!
251 * \qmlproperty point SwipeArea::touchPosition
252 * \readonly
253 * Position of the touch point performing the drag relative to this item.
254 */
255 QPointFcxx . . $ QPointF# UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::touchPositioncxx . . $ LomiriGestures/UCSwipeArea#touchPosition(a5b3784bf6777acb).() const
256 {
257 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const UCSwipeArea);
258 return mapFromScenecxx . . $ QQuickItem#mapFromScene(d99487573c8c6d6c).(d->publicScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#publicScenePos.);
259 }
260
261 /*!
262 * \qmlproperty bool SwipeArea::dragging
263 * \readonly
264 * Reports whether a drag gesture is taking place.
265 */
266 bool UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::draggingcxx . . $ LomiriGestures/UCSwipeArea#dragging(50ce9a9e25b4a850).() const
267 {
268 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const UCSwipeArea);
269 return d->statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status. == UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::Recognizedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Recognized.;
270 }
271
272 /*!
273 * \qmlproperty bool SwipeArea::pressed
274 * \readonly
275 * Reports whether the drag area is pressed.
276 */
277 bool UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::pressedcxx . . $ LomiriGestures/UCSwipeArea#pressed(50ce9a9e25b4a850).() const
278 {
279 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const UCSwipeArea);
280 return d->statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status. != UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.;
281 }
282
283 /*!
284 * \qmlproperty bool SwipeArea::immediateRecognition
285 * Drives whether the gesture should be recognized as soon as the touch lands on
286 * the area. With this property set it will work the same way as a MultiPointTouchArea,
287 *
288 * Defaults to false. In most cases this should not be set.
289 */
290 bool UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::immediateRecognitioncxx . . $ LomiriGestures/UCSwipeArea#immediateRecognition(50ce9a9e25b4a850).() const
291 {
292 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const UCSwipeArea);
293 return d->immediateRecognitioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#immediateRecognition.;
294 }
295
296 void UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::setImmediateRecognitioncxx . . $ LomiriGestures/UCSwipeArea#setImmediateRecognition(b45ddcbc8423892c).(bool enabled)
297 {
298 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(UCSwipeArea);
299 if (d->immediateRecognitioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#immediateRecognition. != enabled) {
300 d->immediateRecognitioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#immediateRecognition. = enabled;
301 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! immediateRecognitionChangedcxx . . $ LomiriGestures/UCSwipeArea#immediateRecognitionChanged(b45ddcbc8423892c).(enabled);
302 }
303 }
304
305 /*!
306 * \qmlproperty bool SwipeArea::grabGesture
307 * If true, any gestures will be grabbed and owned by the SwipeArea as usual.
308 * If false, gestures will still be reported, but events may be grabbed by
309 * another Qml object.
310 *
311 * Defaults to true. In most cases this should not be unset.
312 */
313 bool UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::grabGesturecxx . . $ LomiriGestures/UCSwipeArea#grabGesture(50ce9a9e25b4a850).() const
314 {
315 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const UCSwipeArea);
316 return d->grabGesturecxx . . $ LomiriGestures/UCSwipeAreaPrivate#grabGesture.;
317 }
318
319 void UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::setGrabGesturecxx . . $ LomiriGestures/UCSwipeArea#setGrabGesture(b45ddcbc8423892c).(bool enabled)
320 {
321 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(UCSwipeArea);
322 if (d->grabGesturecxx . . $ LomiriGestures/UCSwipeAreaPrivate#grabGesture. == enabled) {
323 return;
324 }
325
326 d->grabGesturecxx . . $ LomiriGestures/UCSwipeAreaPrivate#grabGesture. = enabled;
327
328 if (!d->grabGesturecxx . . $ LomiriGestures/UCSwipeAreaPrivate#grabGesture. && d->statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status. == UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::Undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Undecided.) {
329 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->removeCandidateOwnerForTouchcxx . . $ LomiriGestures/TouchRegistry#removeCandidateOwnerForTouch(1dd929642e598acc).(d->touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., this);
330 // We still wanna know when it ends for keeping the composition time window up-to-date
331 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->addTouchWatchercxx . . $ LomiriGestures/TouchRegistry#addTouchWatcher(1dd929642e598acc).(d->touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., this);
332 }
333
334 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! grabGestureChangedcxx . . $ LomiriGestures/UCSwipeArea#grabGestureChanged(b45ddcbc8423892c).(enabled);
335 }
336
337 bool UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::eventcxx . . $ LomiriGestures/UCSwipeArea#event(f123fa2ce489f0bd).(QEventcxx . . $ QEvent# *event)
338 {
339 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(UCSwipeArea);
340 if (event->typecxx . . $ QEvent#type(916a8de57f4d422b).() == TouchOwnershipEventcxx . . $ LomiriGestures/TouchOwnershipEvent#::touchOwnershipEventTypecxx . . $ LomiriGestures/TouchOwnershipEvent#touchOwnershipEventType(dc6f6502b20b06a7).()) {
341 d->touchOwnershipEventcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchOwnershipEvent(acbc5205c8b9efbd).(static_cast<TouchOwnershipEventcxx . . $ LomiriGestures/TouchOwnershipEvent# *>(event));
342 return true;
343 } else if (event->typecxx . . $ QEvent#type(916a8de57f4d422b).() == UnownedTouchEventcxx . . $ LomiriGestures/UnownedTouchEvent#::unownedTouchEventTypecxx . . $ LomiriGestures/UnownedTouchEvent#unownedTouchEventType(dc6f6502b20b06a7).()) {
344 d->unownedTouchEventcxx . . $ LomiriGestures/UCSwipeAreaPrivate#unownedTouchEvent(81690ce7bd9b603a).(static_cast<UnownedTouchEvent *>(event));
345 return true;
346 } else {
347 return QQuickItemcxx . . $ QQuickItem#::eventcxx . . $ QQuickItem#event(f123fa2ce489f0bd).(event);
348 }
349 }
350
351 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::touchOwnershipEventcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchOwnershipEvent(acbc5205c8b9efbd).(TouchOwnershipEventcxx . . $ LomiriGestures/TouchOwnershipEvent# *event)
352 {
353 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
354 if (event->gainedcxx . . $ LomiriGestures/TouchOwnershipEvent#gained(50ce9a9e25b4a850).()) {
355 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("grabbing touch");
356 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
357 QPointerEvent *pointerEvent = event->pointerEvent();
358 const QEventPoint *point = event->point();
359 if (pointerEvent && point) {
360 pointerEvent->setExclusiveGrabber(*point, q);
361 } else {
362 SA_WARN("Receives a TouchOwnershipEvent without a QPointerEvent");
363 }
364 #else
365 QVectorcxx . . $ QVector#<int> ids;
366 ids.append(event->touchIdcxx . . $ LomiriGestures/TouchOwnershipEvent#touchId(455f465bc33b4cdf).());
367 q->grabTouchPointscxx . . $ QQuickItem#grabTouchPoints(ba292b50389a16c7).(ids);
368 #endif
369 } else {
370 // We still wanna know when it ends for keeping the composition time window up-to-date
371 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->addTouchWatchercxx . . $ LomiriGestures/TouchRegistry#addTouchWatcher(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
372
373 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.);
374 }
375 }
376
377 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::unownedTouchEventcxx . . $ LomiriGestures/UCSwipeAreaPrivate#unownedTouchEvent(81690ce7bd9b603a).(UnownedTouchEventcxx . . $ LomiriGestures/UnownedTouchEvent# *unownedTouchEvent)
378 {
379 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
380 QTouchEventcxx . . $ QTouchEvent# *event = unownedTouchEvent->touchEventcxx . . $ LomiriGestures/UnownedTouchEvent#touchEvent(8d9bcb2d98c5550a).();
381
382 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
383 Q_ASSERT(!event->touchPointStates().testFlag(QEventPoint::Pressed));
384 #else
385 Q_ASSERTcxx . . $ `<external>/15045578679651060896/qglobal.h:859:13`!(!event->touchPointStates().testFlag(Qt::TouchPointPressed));
386 #endif
387
388 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("Unowned " << timeSource->msecsSinceReference() << " " << event);
389
390 switch (statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status.) {
391 case WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.:
392 // do nothing
393 break;
394 case Undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Undecided.:
395 Q_ASSERTcxx . . $ `<external>/15045578679651060896/qglobal.h:859:13`!(q->isEnabled() && q->isVisible());
396 unownedTouchEvent_undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#unownedTouchEvent_undecided(81690ce7bd9b603a).(unownedTouchEvent);
397 break;
398 default: // Recognized:
399 if (!grabGesturecxx . . $ LomiriGestures/UCSwipeAreaPrivate#grabGesture.) {
400 // Treat unowned event as if we owned it, but we are really just watching it
401 touchEvent_recognizedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchEvent_recognized(3088690d2ec9a7bd).(event);
402 }
403 break;
404 }
405
406 activeTouches.update(event);
407 }
408
409 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::unownedTouchEvent_undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#unownedTouchEvent_undecided(81690ce7bd9b603a).(UnownedTouchEventcxx . . $ LomiriGestures/UnownedTouchEvent# *unownedTouchEvent)
410 {
411 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
412 const QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint# *touchPoint = fetchTargetTouchPointcxx . . $ LomiriGestures/UCSwipeAreaPrivate#fetchTargetTouchPoint(a361cd60761dbe49).(unownedTouchEvent->touchEventcxx . . $ LomiriGestures/UnownedTouchEvent#touchEvent(8d9bcb2d98c5550a).());
413 if (!touchPoint) {
414 qCriticalcxx . . $ `<external>/10450329605257866924/qlogging.h:167:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "UCSwipeArea[status=Undecided]: touch " <<cxx . . $ QDebug#`operator<<`(6e3b7ae53f380c3). touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId.
415 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "missing from UnownedTouchEvent without first reaching state Qt::TouchPointReleased. "
416 "Considering it as released.";
417
418 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->removeCandidateOwnerForTouchcxx . . $ LomiriGestures/TouchRegistry#removeCandidateOwnerForTouch(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
419 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.);
420 return;
421 }
422
423 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
424 const QPointF &touchScenePosition = touchPoint->scenePosition();
425 if (touchPoint->state() == QEventPoint::Released) {
426 #else
427 const QPointFcxx . . $ QPointF# &touchScenePosition = touchPoint->scenePoscxx . . $ QTouchEvent#TouchPoint#scenePos(a5b3784bf6777acb).();
428 if (touchPoint->statecxx . . $ QTouchEvent#TouchPoint#state(376f2e065f4f14a6).() == Qtcxx . . $ Qt/::TouchPointReleasedcxx . . $ Qt/TouchPointReleased.) {
429 #endif
430 // touch has ended before recognition concluded
431 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("Touch has ended before recognition concluded");
432 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->removeCandidateOwnerForTouchcxx . . $ LomiriGestures/TouchRegistry#removeCandidateOwnerForTouch(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
433 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.);
434 return;
435 }
436
437 previousDampedScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#previousDampedScenePos..setXcxx . . $ QPointF#setX(ba8836b59fb42830).(dampedScenePos.x());
438 previousDampedScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#previousDampedScenePos..setYcxx . . $ QPointF#setY(ba8836b59fb42830).(dampedScenePos.y());
439 dampedScenePos.update(touchScenePosition);
440
441 if (!movingInRightDirectioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#movingInRightDirection(50ce9a9e25b4a850).()) {
442 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("Rejecting gesture because touch point is moving in the wrong direction.");
443 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->removeCandidateOwnerForTouchcxx . . $ LomiriGestures/TouchRegistry#removeCandidateOwnerForTouch(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
444 // We still wanna know when it ends for keeping the composition time window up-to-date
445 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->addTouchWatchercxx . . $ LomiriGestures/TouchRegistry#addTouchWatcher(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
446 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.);
447 return;
448 }
449
450 if (isWithinTouchCompositionWindowcxx . . $ LomiriGestures/UCSwipeAreaPrivate#isWithinTouchCompositionWindow(c9857a73d68e59ba).()) {
451 // There's still time for some new touch to appear and ruin our party as it would be combined
452 // with our touchId one and therefore deny the possibility of a single-finger gesture.
453 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("Sill within composition window. Let's wait more.");
454 return;
455 }
456
457 if (movedFarEnoughAlongGestureAxiscxx . . $ LomiriGestures/UCSwipeAreaPrivate#movedFarEnoughAlongGestureAxis(50ce9a9e25b4a850).()) {
458 if (grabGesturecxx . . $ LomiriGestures/UCSwipeAreaPrivate#grabGesture.) {
459 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->requestTouchOwnershipcxx . . $ LomiriGestures/TouchRegistry#requestTouchOwnership(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
460 }
461 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(Recognizedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Recognized.);
462 updatePositioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#updatePosition(4258778b894f8bb6).(touchScenePosition);
463 } else if (isPastMaxDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#isPastMaxDistance(50ce9a9e25b4a850).()) {
464 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("Rejecting gesture because it went farther than maxDistance without getting recognized.");
465 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->removeCandidateOwnerForTouchcxx . . $ LomiriGestures/TouchRegistry#removeCandidateOwnerForTouch(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
466 // We still wanna know when it ends for keeping the composition time window up-to-date
467 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->addTouchWatchercxx . . $ LomiriGestures/TouchRegistry#addTouchWatcher(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
468 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.);
469 } else {
470 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("Didn't move far enough yet. Let's wait more.");
471 }
472 }
473
474 void UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::touchEventcxx . . $ LomiriGestures/UCSwipeArea#touchEvent(3088690d2ec9a7bd).(QTouchEventcxx . . $ QTouchEvent# *event)
475 {
476 // FIXME: Consider when more than one touch starts in the same event (although it's not possible
477 // with Mir's android-input). Have to track them all. Consider it a plus/bonus.
478
479 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(UCSwipeArea);
480 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!(d->timeSource->msecsSinceReference() << " " << event);
481
482 if (!isEnabledcxx . . $ QQuickItem#isEnabled(50ce9a9e25b4a850).() || !isVisiblecxx . . $ QQuickItem#isVisible(50ce9a9e25b4a850).()) {
483 QQuickItemcxx . . $ QQuickItem#::touchEventcxx . . $ QQuickItem#touchEvent(3088690d2ec9a7bd).(event);
484 return;
485 }
486
487 switch (d->statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status.) {
488 case UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.:
489 d->touchEvent_absentcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchEvent_absent(3088690d2ec9a7bd).(event);
490 break;
491 case UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::Undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Undecided.:
492 d->touchEvent_undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchEvent_undecided(3088690d2ec9a7bd).(event);
493 break;
494 default: // Recognized:
495 d->touchEvent_recognizedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchEvent_recognized(3088690d2ec9a7bd).(event);
496 break;
497 }
498
499 d->activeTouches.update(event);
500 }
501
502 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::touchEvent_absentcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchEvent_absent(3088690d2ec9a7bd).(QTouchEventcxx . . $ QTouchEvent# *event)
503 {
504 // FIXME: accept/reject is for the whole event, not per touch id. See how that affects us.
505
506 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
507 if (!event->touchPointStates().testFlag(QEventPoint::Pressed)) {
508 #else
509 if (!event->touchPointStates().testFlag(Qtcxx . . $ Qt/::TouchPointPressedcxx . . $ Qt/TouchPointPressed.)) {
510 #endif
511 // Nothing to see here. No touch starting in this event.
512 return;
513 }
514
515 // to be proven wrong, if that's the case
516 bool allGood = true;
517
518 if (isWithinTouchCompositionWindowcxx . . $ LomiriGestures/UCSwipeAreaPrivate#isWithinTouchCompositionWindow(c9857a73d68e59ba).()) {
519 // too close to the last touch start. So we consider them as starting roughly at the same time.
520 // Can't be a single-touch gesture.
521 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("A new touch point came in but we're still within time composition window. Ignoring it.");
522 allGood = false;
523 }
524
525 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
526 const QList<QTouchEvent::TouchPoint> &touchPoints = event->points();
527 #else
528 const QListcxx . . $ QList#<QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint#> &touchPoints = event->touchPointscxx . . $ QTouchEvent#touchPoints(ab2597e7c7c2418b).();
529 #endif
530
531 const QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint# *newTouchPoint = nullptr;
532 for (int i = 0; i <cxx . . $ `operator<`(945cec9d77892c2f). touchPoints.count() && allGood; ++i) {
533 const QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint# &touchPoint = touchPoints.at(i);
534 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
535 if (touchPoint.state() == QEventPoint::Pressed) {
536 #else
537 if (touchPoint.statecxx . . $ QTouchEvent#TouchPoint#state(376f2e065f4f14a6).() == Qtcxx . . $ Qt/::TouchPointPressedcxx . . $ Qt/TouchPointPressed.) {
538 #endif
539 if (newTouchPoint) {
540 // more than one touch starting in this QTouchEvent. Can't be a single-touch gesture
541 allGood = false;
542 } else {
543 // that's our candidate
544 newTouchPoint = &touchPoint;
545 }
546 }
547 }
548
549 if (allGood) {
550 allGood = sanityCheckRecognitionPropertiescxx . . $ LomiriGestures/UCSwipeAreaPrivate#sanityCheckRecognitionProperties(c9857a73d68e59ba).();
551 if (!allGood) {
552 qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!("UCSwipeArea: recognition properties are wrongly set. Gesture recognition"
553 " is impossible");
554 }
555 }
556
557 if (allGood) {
558 Q_ASSERTcxx . . $ `<external>/15045578679651060896/qglobal.h:859:13`!(newTouchPoint);
559 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
560
561 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
562 startScenePos = newTouchPoint->scenePosition();
563 #else
564 startScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#startScenePos. =cxx . . $ QPointF#`operator=`(6b56849cfae83b80). newTouchPoint->scenePoscxx . . $ QTouchEvent#TouchPoint#scenePos(a5b3784bf6777acb).();
565 #endif
566 touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId. = newTouchPoint->idcxx . . $ QTouchEvent#TouchPoint#id(455f465bc33b4cdf).();
567 dampedScenePos.reset(startScenePos);
568 updatePositioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#updatePosition(4258778b894f8bb6).(startScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#startScenePos.);
569
570 updateSceneDirectionVectorcxx . . $ LomiriGestures/UCSwipeAreaPrivate#updateSceneDirectionVector(49f6e7a06ebc5aa8).();
571
572 if (recognitionIsDisabledcxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionIsDisabled(50ce9a9e25b4a850).()) {
573 // Behave like a dumb TouchArea
574 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("Gesture recognition is disabled. Requesting touch ownership immediately.");
575 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(Recognizedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Recognized.);
576 if (grabGesturecxx . . $ LomiriGestures/UCSwipeAreaPrivate#grabGesture.) {
577 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->requestTouchOwnershipcxx . . $ LomiriGestures/TouchRegistry#requestTouchOwnership(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
578 event->acceptcxx . . $ QEvent#accept(49f6e7a06ebc5aa8).();
579 } else {
580 watchPressedTouchPointscxx . . $ LomiriGestures/UCSwipeAreaPrivate#watchPressedTouchPoints(94decdeda16691e3).(touchPoints);
581 event->ignorecxx . . $ QEvent#ignore(49f6e7a06ebc5aa8).();
582 }
583 } else {
584 // just monitor the touch points for now.
585 if (grabGesturecxx . . $ LomiriGestures/UCSwipeAreaPrivate#grabGesture.) {
586 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->addCandidateOwnerForTouchcxx . . $ LomiriGestures/TouchRegistry#addCandidateOwnerForTouch(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
587 } else {
588 watchPressedTouchPointscxx . . $ LomiriGestures/UCSwipeAreaPrivate#watchPressedTouchPoints(94decdeda16691e3).(touchPoints);
589 }
590
591 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(Undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Undecided.);
592 // Let the item below have it. We will monitor it and grab it later if a gesture
593 // gets recognized.
594 event->ignorecxx . . $ QEvent#ignore(49f6e7a06ebc5aa8).();
595 }
596 } else {
597 watchPressedTouchPointscxx . . $ LomiriGestures/UCSwipeAreaPrivate#watchPressedTouchPoints(94decdeda16691e3).(touchPoints);
598 event->ignorecxx . . $ QEvent#ignore(49f6e7a06ebc5aa8).();
599 }
600 }
601
602 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::touchEvent_undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchEvent_undecided(3088690d2ec9a7bd).(QTouchEventcxx . . $ QTouchEvent# *event)
603 {
604 Q_ASSERTcxx . . $ `<external>/15045578679651060896/qglobal.h:859:13`!(fetchTargetTouchPoint(event) == nullptr);
605
606 // We're not interested in new touch points. We already have our candidate (touchId).
607 // But we do want to know when those new touches end for keeping the composition time
608 // window up-to-date
609 event->ignorecxx . . $ QEvent#ignore(49f6e7a06ebc5aa8).();
610 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
611 watchPressedTouchPoints(event->points());
612 #else
613 watchPressedTouchPointscxx . . $ LomiriGestures/UCSwipeAreaPrivate#watchPressedTouchPoints(94decdeda16691e3).(event->touchPointscxx . . $ QTouchEvent#touchPoints(ab2597e7c7c2418b).());
614 #endif
615
616 if (
617 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
618 event->touchPointStates().testFlag(QEventPoint::Pressed) &&
619 #else
620 event->touchPointStates().testFlag(Qtcxx . . $ Qt/::TouchPointPressedcxx . . $ Qt/TouchPointPressed.) &&
621 #endif
622 isWithinTouchCompositionWindowcxx . . $ LomiriGestures/UCSwipeAreaPrivate#isWithinTouchCompositionWindow(c9857a73d68e59ba).()
623 ) {
624 // multi-finger drags are not accepted
625 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("Multi-finger drags are not accepted");
626
627 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
628 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->removeCandidateOwnerForTouchcxx . . $ LomiriGestures/TouchRegistry#removeCandidateOwnerForTouch(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
629 // We still wanna know when it ends for keeping the composition time window up-to-date
630 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->addTouchWatchercxx . . $ LomiriGestures/TouchRegistry#addTouchWatcher(1dd929642e598acc).(touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., q);
631
632 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.);
633 }
634 }
635
636 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::touchEvent_recognizedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchEvent_recognized(3088690d2ec9a7bd).(QTouchEventcxx . . $ QTouchEvent# *event)
637 {
638 const QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint# *touchPoint = fetchTargetTouchPointcxx . . $ LomiriGestures/UCSwipeAreaPrivate#fetchTargetTouchPoint(a361cd60761dbe49).(event);
639
640 if (!touchPoint) {
641 qCriticalcxx . . $ `<external>/10450329605257866924/qlogging.h:167:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "UCSwipeArea[status=Recognized]: touch " <<cxx . . $ QDebug#`operator<<`(6e3b7ae53f380c3). touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId.
642 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "missing from QTouchEvent without first reaching state Qt::TouchPointReleased. "
643 "Considering it as released.";
644 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.);
645 } else {
646 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
647 updatePosition(touchPoint->scenePosition());
648 if (touchPoint->state() == QEventPoint::Released) {
649 #else
650 updatePositioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#updatePosition(4258778b894f8bb6).(touchPoint->scenePoscxx . . $ QTouchEvent#TouchPoint#scenePos(a5b3784bf6777acb).());
651 if (touchPoint->statecxx . . $ QTouchEvent#TouchPoint#state(376f2e065f4f14a6).() == Qtcxx . . $ Qt/::TouchPointReleasedcxx . . $ Qt/TouchPointReleased.) {
652 #endif
653 setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.);
654 }
655 }
656 }
657
658 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::watchPressedTouchPointscxx . . $ LomiriGestures/UCSwipeAreaPrivate#watchPressedTouchPoints(94decdeda16691e3).(const QListcxx . . $ QList#<QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint#> &touchPoints)
659 {
660 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
661 for (int i = 0; i <cxx . . $ `operator<`(945cec9d77892c2f). touchPoints.count(); ++i) {
662 const QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint# &touchPoint = touchPoints.at(i);
663 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
664 if (touchPoint.state() == QEventPoint::Pressed) {
665 #else
666 if (touchPoint.statecxx . . $ QTouchEvent#TouchPoint#state(376f2e065f4f14a6).() == Qtcxx . . $ Qt/::TouchPointPressedcxx . . $ Qt/TouchPointPressed.) {
667 #endif
668 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->addTouchWatchercxx . . $ LomiriGestures/TouchRegistry#addTouchWatcher(1dd929642e598acc).(touchPoint.idcxx . . $ QTouchEvent#TouchPoint#id(455f465bc33b4cdf).(), q);
669 }
670 }
671 }
672
673 bool UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::recognitionIsDisabledcxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionIsDisabled(50ce9a9e25b4a850).() const
674 {
675 return immediateRecognitioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#immediateRecognition. || (distanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThreshold. <= 0 && compositionTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#compositionTime. <= 0);
676 }
677
678 bool UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::sanityCheckRecognitionPropertiescxx . . $ LomiriGestures/UCSwipeAreaPrivate#sanityCheckRecognitionProperties(c9857a73d68e59ba).()
679 {
680 return recognitionIsDisabledcxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionIsDisabled(50ce9a9e25b4a850).()
681 || (distanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThreshold. < maxDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxDistance. && compositionTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#compositionTime. < maxTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxTime.);
682 }
683
684 const QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint# *UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::fetchTargetTouchPointcxx . . $ LomiriGestures/UCSwipeAreaPrivate#fetchTargetTouchPoint(a361cd60761dbe49).(QTouchEventcxx . . $ QTouchEvent# *event)
685 {
686 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
687 const QList<QTouchEvent::TouchPoint> &touchPoints = event->points();
688 #else
689 const QListcxx . . $ QList#<QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint#> &touchPoints = event->touchPointscxx . . $ QTouchEvent#touchPoints(ab2597e7c7c2418b).();
690 #endif
691 const QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint# *touchPoint = 0;
692 for (int i = 0; i <cxx . . $ `operator<`(945cec9d77892c2f). touchPoints.size(); ++i) {
693 if (touchPoints.at(i).id() ==cxx . . $ `operator==`(d35e8b31fb5dfd9b). touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId.) {
694 touchPoint = &cxx . . $ `operator&`(4c37217b220ff8c8).touchPoints.at(i);
695 break;
696 }
697 }
698 return touchPoint;
699 }
700
701 bool UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::movingInRightDirectioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#movingInRightDirection(50ce9a9e25b4a850).() const
702 {
703 if (directioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#direction. == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Horizontalcxx . . $ LomiriGestures/UCSwipeArea#Horizontal. || directioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#direction. == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Verticalcxx . . $ LomiriGestures/UCSwipeArea#Vertical.) {
704 return true;
705 } else {
706 QPointFcxx . . $ QPointF# movementVector(dampedScenePos.x() - previousDampedScenePos.x(),
707 dampedScenePos.y() - previousDampedScenePos.y());
708
709 qrealcxx . . $ qreal# scalarProjection = projectOntoDirectionVectorcxx . . $ LomiriGestures/UCSwipeAreaPrivate#projectOntoDirectionVector(6e37e6397cbd5f24).(movementVector);
710
711 return scalarProjection >= 0.;
712 }
713 }
714
715 bool UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::movedFarEnoughAlongGestureAxiscxx . . $ LomiriGestures/UCSwipeAreaPrivate#movedFarEnoughAlongGestureAxis(50ce9a9e25b4a850).() const
716 {
717 if (distanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThreshold. <= 0.) {
718 // distance threshold check is disabled
719 return true;
720 } else {
721 QPointFcxx . . $ QPointF# totalMovement(dampedScenePos.x() - startScenePos.x(),
722 dampedScenePos.y() - startScenePos.y());
723
724 qrealcxx . . $ qreal# scalarProjection = projectOntoDirectionVectorcxx . . $ LomiriGestures/UCSwipeAreaPrivate#projectOntoDirectionVector(6e37e6397cbd5f24).(totalMovement);
725
726 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!(" movedFarEnoughAlongGestureAxis: scalarProjection=" << scalarProjection
727 << ", distanceThreshold=" << distanceThreshold);
728
729 if (directioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#direction. == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Horizontalcxx . . $ LomiriGestures/UCSwipeArea#Horizontal. || directioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#direction. == UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Verticalcxx . . $ LomiriGestures/UCSwipeArea#Vertical.) {
730 return qAbscxx . . $ qAbs(6dab451e9a9cc561).(scalarProjection) >cxx . . $ `operator>`(945cec9d77892c2f). distanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThreshold.;
731 } else {
732 return scalarProjection > distanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThreshold.;
733 }
734 }
735 }
736
737 bool UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::isPastMaxDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#isPastMaxDistance(50ce9a9e25b4a850).() const
738 {
739 QPointFcxx . . $ QPointF# totalMovement(dampedScenePos.x() - startScenePos.x(),
740 dampedScenePos.y() - startScenePos.y());
741
742 qrealcxx . . $ qreal# squaredDistance = totalMovement.xcxx . . $ QPointF#x(21b6c25e127938e2).()*totalMovement.xcxx . . $ QPointF#x(21b6c25e127938e2).() + totalMovement.ycxx . . $ QPointF#y(21b6c25e127938e2).()*totalMovement.ycxx . . $ QPointF#y(21b6c25e127938e2).();
743 return squaredDistance > maxDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxDistance.*maxDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxDistance.;
744 }
745
746 void UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::giveUpIfDisabledOrInvisiblecxx . . $ LomiriGestures/UCSwipeArea#giveUpIfDisabledOrInvisible(49f6e7a06ebc5aa8).()
747 {
748 if (!isEnabledcxx . . $ QQuickItem#isEnabled(50ce9a9e25b4a850).() || !isVisiblecxx . . $ QQuickItem#isVisible(50ce9a9e25b4a850).()) {
749 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(UCSwipeArea);
750 if (d->statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status. == UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::Undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Undecided.) {
751 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->removeCandidateOwnerForTouchcxx . . $ LomiriGestures/TouchRegistry#removeCandidateOwnerForTouch(1dd929642e598acc).(d->touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., this);
752 // We still wanna know when it ends for keeping the composition time window up-to-date
753 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->addTouchWatchercxx . . $ LomiriGestures/TouchRegistry#addTouchWatcher(1dd929642e598acc).(d->touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., this);
754 }
755
756 if (d->statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status. != UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.) {
757 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("Resetting status because got disabled or made invisible");
758 d->setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.);
759 }
760 }
761 }
762
763 void UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::rejectGesturecxx . . $ LomiriGestures/UCSwipeArea#rejectGesture(49f6e7a06ebc5aa8).()
764 {
765 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(UCSwipeArea);
766 if (d->statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status. == UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::Undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Undecided.) {
767 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!("Rejecting gesture because it's taking too long to drag beyond the threshold.");
768
769 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->removeCandidateOwnerForTouchcxx . . $ LomiriGestures/TouchRegistry#removeCandidateOwnerForTouch(1dd929642e598acc).(d->touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., this);
770 // We still wanna know when it ends for keeping the composition time window up-to-date
771 TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).()->addTouchWatchercxx . . $ LomiriGestures/TouchRegistry#addTouchWatcher(1dd929642e598acc).(d->touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId., this);
772
773 d->setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.);
774 }
775 }
776
777 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::setStatuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#setStatus(ce250bfcc812ed41).(Statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#Status# newStatus)
778 {
779 if (newStatus == statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status.)
780 return;
781
782 Statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#Status# oldStatus = statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status.;
783
784 if (oldStatus == Undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Undecided.) {
785 recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.->stopcxx . . $ LomiriGestures/AbstractTimer#stop(49f6e7a06ebc5aa8).();
786 }
787
788 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
789 const bool wasDragging = q->draggingcxx . . $ LomiriGestures/UCSwipeArea#dragging(50ce9a9e25b4a850).();
790 const bool wasPressed = q->pressedcxx . . $ LomiriGestures/UCSwipeArea#pressed(50ce9a9e25b4a850).();
791
792 statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status. = newStatus;
793 for (int i = 0; i < statusChangeListeners.size(); i++) {
794 statusChangeListeners[i]->swipeStatusChanged(oldStatus, status);
795 }
796
797 SA_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:34:9`!(statusToString(oldStatus) << " -> " << statusToString(newStatus));
798
799 if (newStatus == Undecidedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Undecided.) {
800 recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.->startcxx . . $ LomiriGestures/AbstractTimer#start(49f6e7a06ebc5aa8).();
801 }
802
803 const bool isDragging = q->draggingcxx . . $ LomiriGestures/UCSwipeArea#dragging(50ce9a9e25b4a850).();
804 const bool isPressed = q->pressedcxx . . $ LomiriGestures/UCSwipeArea#pressed(50ce9a9e25b4a850).();
805
806 if (isDragging != wasDragging)
807 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! q->draggingChangedcxx . . $ LomiriGestures/UCSwipeArea#draggingChanged(b45ddcbc8423892c).(isDragging);
808
809 if (isPressed != wasPressed)
810 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! q->pressedChangedcxx . . $ LomiriGestures/UCSwipeArea#pressedChanged(b45ddcbc8423892c).(isPressed);
811 }
812
813 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::updatePositioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#updatePosition(4258778b894f8bb6).(const QPointFcxx . . $ QPointF# &point)
814 {
815 bool xChanged = publicScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#publicScenePos..xcxx . . $ QPointF#x(21b6c25e127938e2).() != point.xcxx . . $ QPointF#x(21b6c25e127938e2).();
816 bool yChanged = publicScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#publicScenePos..ycxx . . $ QPointF#y(21b6c25e127938e2).() != point.ycxx . . $ QPointF#y(21b6c25e127938e2).();
817
818 // Public position should not get updated while the gesture is still being recognized
819 // (ie, Undecided status).
820 Q_ASSERTcxx . . $ `<external>/15045578679651060896/qglobal.h:859:13`!(status == WaitingForTouch || status == Recognized);
821
822 if (statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status. == Recognizedcxx . . $ LomiriGestures/UCSwipeAreaPrivate#Recognized. && !recognitionIsDisabledcxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionIsDisabled(50ce9a9e25b4a850).()) {
823 // When the gesture finally gets recognized, the finger will likely be
824 // reasonably far from the edge. If we made the contentX immediately
825 // follow the finger position it would be visually unpleasant as it
826 // would appear right next to the user's finger out of nowhere (ie,
827 // it would jump). Instead, we make contentX go towards the user's
828 // finger in several steps. ie., in an animated way.
829 QPointFcxx . . $ QPointF# delta = point -cxx . . $ operator-(e229ca25d6519380). publicScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#publicScenePos.;
830 // the trick is not to go all the way (1.0) as it would cause a sudden jump
831 publicScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#publicScenePos..rxcxx . . $ QPointF#rx(6e29b91e46a4c909).() += 0.4 * delta.xcxx . . $ QPointF#x(21b6c25e127938e2).();
832 publicScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#publicScenePos..rycxx . . $ QPointF#ry(6e29b91e46a4c909).() += 0.4 * delta.ycxx . . $ QPointF#y(21b6c25e127938e2).();
833 } else {
834 // no smoothing when initializing or if gesture recognition was immediate as there will
835 // be no jump.
836 publicScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#publicScenePos. =cxx . . $ QPointF#`operator=`(6469e36527f13916). point;
837 }
838
839 if (xChanged || yChanged) {
840 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
841 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! q->touchPositionChangedcxx . . $ LomiriGestures/UCSwipeArea#touchPositionChanged(4258778b894f8bb6).(q->touchPositioncxx . . $ LomiriGestures/UCSwipeArea#touchPosition(a5b3784bf6777acb).());
842
843 // handle distance change
844 QPointFcxx . . $ QPointF# totalMovement = publicScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#publicScenePos. -cxx . . $ operator-(e229ca25d6519380). startScenePoscxx . . $ LomiriGestures/UCSwipeAreaPrivate#startScenePos.;
845 sceneDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#sceneDistance. = projectOntoDirectionVectorcxx . . $ LomiriGestures/UCSwipeAreaPrivate#projectOntoDirectionVector(6e37e6397cbd5f24).(totalMovement);
846
847 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! q->distanceChangedcxx . . $ LomiriGestures/UCSwipeArea#distanceChanged(ba8836b59fb42830).(sceneDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#sceneDistance.);
848 }
849 }
850
851 bool UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::isWithinTouchCompositionWindowcxx . . $ LomiriGestures/UCSwipeAreaPrivate#isWithinTouchCompositionWindow(c9857a73d68e59ba).()
852 {
853 return
854 compositionTime > 0 &&
855 !activeTouches.isEmpty() &&
856 timeSource->msecsSinceReference() <=
857 activeTouches.mostRecentStartTime() + (qint64)compositionTime;
858 }
859
860 void UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::itemChangecxx . . $ LomiriGestures/UCSwipeArea#itemChange(6dfad8b9065d088c).(ItemChangecxx . . $ QQuickItem#ItemChange# change, const ItemChangeDatacxx . . $ QQuickItem#ItemChangeData# &value)
861 {
862 if (change == QQuickItemcxx . . $ QQuickItem#::ItemSceneChangecxx . . $ QQuickItem#ItemSceneChange.) {
863 if (value.windowcxx . . $ QQuickItem#ItemChangeData#window. != nullptr) {
864 value.windowcxx . . $ QQuickItem#ItemChangeData#window.->installEventFiltercxx . . $ QObject#installEventFilter(749de1b6ae65bddd).(TouchRegistrycxx . . $ LomiriGestures/TouchRegistry#::instancecxx . . $ LomiriGestures/TouchRegistry#instance(644997df756d5d7e).());
865
866 // FIXME: Handle window->screen() changes (ie window changing screens)
867 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(UCSwipeArea);
868 qrealcxx . . $ qreal# pixelsPerInch = value.windowcxx . . $ QQuickItem#ItemChangeData#window.->screencxx . . $ QWindow#screen(4337f1790dda8b68).()->physicalDotsPerInch();
869 if (pixelsPerInch < 0) {
870 // FIXME: dpi can be negative lp#1525293
871 // It can return garbage when run in a XVFB server (Virtual Framebuffer 'fake' X server)
872 pixelsPerInch = 72;
873 }
874 d->setPixelsPerMmcxx . . $ LomiriGestures/UCSwipeAreaPrivate#setPixelsPerMm(ba8836b59fb42830).(pixelsPerInch / 25.4);
875 }
876 }
877 if (change == ItemVisibleHasChangedcxx . . $ QQuickItem#ItemVisibleHasChanged.) {
878 giveUpIfDisabledOrInvisiblecxx . . $ LomiriGestures/UCSwipeArea#giveUpIfDisabledOrInvisible(49f6e7a06ebc5aa8).();
879 }
880 }
881
882 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::setPixelsPerMmcxx . . $ LomiriGestures/UCSwipeAreaPrivate#setPixelsPerMm(ba8836b59fb42830).(qrealcxx . . $ qreal# pixelsPerMm)
883 {
884 dampedScenePos.setMaxDelta(1. * pixelsPerMm);
885 setDistanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#setDistanceThreshold(ba8836b59fb42830).(4. * pixelsPerMm);
886 maxDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxDistance. = 10. * pixelsPerMm;
887 }
888
889 //************************** ActiveTouchesInfo **************************
890
891 ActiveTouchesInfocxx . . $ LomiriGestures/ActiveTouchesInfo#::ActiveTouchesInfocxx . . $ LomiriGestures/ActiveTouchesInfo#ActiveTouchesInfo(e13a9371cd1b0d44).(const SharedTimeSourcecxx . . $ LomiriGestures/SharedTimeSource# &timeSource)
892 : m_timeSource(timeSource)
893 {
894 }
895
896 void ActiveTouchesInfocxx . . $ LomiriGestures/ActiveTouchesInfo#::updatecxx . . $ LomiriGestures/ActiveTouchesInfo#update(3088690d2ec9a7bd).(QTouchEventcxx . . $ QTouchEvent# *event)
897 {
898 if (!(event->touchPointStates() &cxx . . $ `operator&`(4c37217b220ff8c8). (Qtcxx . . $ Qt/::TouchPointPressedcxx . . $ Qt/TouchPointPressed. | Qtcxx . . $ Qt/::TouchPointReleasedcxx . . $ Qt/TouchPointReleased.))) {
899 // nothing to update
900 TI_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:36:9`!("Nothing to update");
901 return;
902 }
903
904 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
905 const QList<QTouchEvent::TouchPoint> &touchPoints = event->points();
906 #else
907 const QListcxx . . $ QList#<QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint#> &touchPoints = event->touchPointscxx . . $ QTouchEvent#touchPoints(ab2597e7c7c2418b).();
908 #endif
909 for (int i = 0; i <cxx . . $ `operator<`(945cec9d77892c2f). touchPoints.count(); ++i) {
910 const QTouchEventcxx . . $ QTouchEvent#::TouchPointcxx . . $ QTouchEvent#TouchPoint# &touchPoint = touchPoints.at(i);
911 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
912 if (touchPoint.state() == QEventPoint::Pressed) {
913 addTouchPoint(touchPoint.id());
914 } else if (touchPoint.state() == QEventPoint::Released) {
915 #else
916 if (touchPoint.statecxx . . $ QTouchEvent#TouchPoint#state(376f2e065f4f14a6).() == Qtcxx . . $ Qt/::TouchPointPressedcxx . . $ Qt/TouchPointPressed.) {
917 addTouchPointcxx . . $ LomiriGestures/ActiveTouchesInfo#addTouchPoint(d4f767463ce0a6b3).(touchPoint.idcxx . . $ QTouchEvent#TouchPoint#id(455f465bc33b4cdf).());
918 } else if (touchPoint.statecxx . . $ QTouchEvent#TouchPoint#state(376f2e065f4f14a6).() == Qtcxx . . $ Qt/::TouchPointReleasedcxx . . $ Qt/TouchPointReleased.) {
919 #endif
920 removeTouchPointcxx . . $ LomiriGestures/ActiveTouchesInfo#removeTouchPoint(d4f767463ce0a6b3).(touchPoint.idcxx . . $ QTouchEvent#TouchPoint#id(455f465bc33b4cdf).());
921 }
922 }
923 }
924
925 QStringcxx . . $ QString# ActiveTouchesInfocxx . . $ LomiriGestures/ActiveTouchesInfo#::toStringcxx . . $ LomiriGestures/ActiveTouchesInfo#toString(4365c3963150523e).()
926 {
927 QStringcxx . . $ QString# string = QStringLiteralcxx . . $ `<external>/2817157206922689722/qstringliteral.h:65:9`!("(");
928
929 {
930 QTextStreamcxx . . $ QTextStream# streamcxx . . $ QTextStream#QTextStream(16e3d097052a73db).(&string);
931 m_touchInfoPool.forEach([&](Pool<ActiveTouchInfo>::Iterator &touchInfo) {
932 stream << "(id=" << touchInfo->id << ",startTime=" << touchInfo->startTime << ")";
933 return true;
934 });
935 }
936
937 string.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QStringLiteralcxx . . $ `<external>/2817157206922689722/qstringliteral.h:65:9`!(")"));
938
939 return stringcxx . . $ QString#QString(28715ad661ad3cec).;
940 }
941
942 void ActiveTouchesInfocxx . . $ LomiriGestures/ActiveTouchesInfo#::addTouchPointcxx . . $ LomiriGestures/ActiveTouchesInfo#addTouchPoint(d4f767463ce0a6b3).(int touchId)
943 {
944 ActiveTouchInfocxx . . $ LomiriGestures/ActiveTouchInfo# &activeTouchInfo = m_touchInfoPool.getEmptySlot();
945 activeTouchInfo.idcxx . . $ LomiriGestures/ActiveTouchInfo#id. = touchId;
946 activeTouchInfo.startTime = m_timeSource->msecsSinceReference();
947
948 TI_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:36:9`!(qPrintablecxx . . $ `<external>/15045578679651060896/qglobal.h:831:11`!(toString()));
949 }
950
951 qint64cxx . . $ qint64# ActiveTouchesInfocxx . . $ LomiriGestures/ActiveTouchesInfo#::touchStartTimecxx . . $ LomiriGestures/ActiveTouchesInfo#touchStartTime(9ccc33c3ebad048d).(int touchId)
952 {
953 qint64cxx . . $ qint64# result = -1;
954
955 m_touchInfoPool.forEach([&](Pool<ActiveTouchInfo>::Iterator &touchInfo) {
956 if (touchId == touchInfo->id) {
957 result = touchInfo->startTime;
958 return false;
959 } else {
960 return true;
961 }
962 });
963
964 Q_ASSERTcxx . . $ `<external>/15045578679651060896/qglobal.h:859:13`!(result != -1);
965 return result;
966 }
967
968 void ActiveTouchesInfocxx . . $ LomiriGestures/ActiveTouchesInfo#::removeTouchPointcxx . . $ LomiriGestures/ActiveTouchesInfo#removeTouchPoint(d4f767463ce0a6b3).(int touchId)
969 {
970 m_touchInfoPool.forEach([&](Pool<ActiveTouchInfo>::Iterator &touchInfo) {
971 if (touchId == touchInfo->id) {
972 m_touchInfoPool.freeSlot(touchInfo);
973 return false;
974 } else {
975 return true;
976 }
977 });
978
979 TI_TRACEcxx . . $ `src/LomiriGestures/ucswipearea.cpp:36:9`!(qPrintablecxx . . $ `<external>/15045578679651060896/qglobal.h:831:11`!(toString()));
980 }
981
982 qint64cxx . . $ qint64# ActiveTouchesInfocxx . . $ LomiriGestures/ActiveTouchesInfo#::mostRecentStartTimecxx . . $ LomiriGestures/ActiveTouchesInfo#mostRecentStartTime(a5d9f2bf8849668d).()
983 {
984 Q_ASSERTcxx . . $ `<external>/15045578679651060896/qglobal.h:859:13`!(!m_touchInfoPool.isEmpty());
985
986 qint64cxx . . $ qint64# highestStartTime = -1;
987
988 m_touchInfoPool.forEach([&](Pool<ActiveTouchInfo>::Iterator &activeTouchInfo) {
989 if (activeTouchInfo->startTime > highestStartTime) {
990 highestStartTime = activeTouchInfo->startTime;
991 }
992 return true;
993 });
994
995 return highestStartTime;
996 }
997
998 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::updateSceneDirectionVectorcxx . . $ LomiriGestures/UCSwipeAreaPrivate#updateSceneDirectionVector(49f6e7a06ebc5aa8).()
999 {
1000 QPointFcxx . . $ QPointF# localOrigincxx . . $ QPointF#QPointF(bc12c9ec15586e6a).(0., 0.);
1001 QPointFcxx . . $ QPointF# localDirectioncxx . . $ QPointF#QPointF(49f6e7a06ebc5aa8).;
1002 switch (directioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#direction.) {
1003 case UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Upwardscxx . . $ LomiriGestures/UCSwipeArea#Upwards.:
1004 localDirection.rxcxx . . $ QPointF#rx(6e29b91e46a4c909).() = 0.;
1005 localDirection.rycxx . . $ QPointF#ry(6e29b91e46a4c909).() = -1.;
1006 break;
1007 case UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Downwardscxx . . $ LomiriGestures/UCSwipeArea#Downwards.:
1008 case UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Verticalcxx . . $ LomiriGestures/UCSwipeArea#Vertical.:
1009 localDirection.rxcxx . . $ QPointF#rx(6e29b91e46a4c909).() = 0.;
1010 localDirection.rycxx . . $ QPointF#ry(6e29b91e46a4c909).() = 1;
1011 break;
1012 case UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Leftwardscxx . . $ LomiriGestures/UCSwipeArea#Leftwards.:
1013 localDirection.rxcxx . . $ QPointF#rx(6e29b91e46a4c909).() = -1.;
1014 localDirection.rycxx . . $ QPointF#ry(6e29b91e46a4c909).() = 0.;
1015 break;
1016 default: // UCSwipeArea::Rightwards || Direction.Horizontal
1017 localDirection.rxcxx . . $ QPointF#rx(6e29b91e46a4c909).() = 1.;
1018 localDirection.rycxx . . $ QPointF#ry(6e29b91e46a4c909).() = 0.;
1019 break;
1020 }
1021 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
1022 QPointFcxx . . $ QPointF# sceneOrigin = q->mapToScenecxx . . $ QQuickItem#mapToScene(d99487573c8c6d6c).(localOrigin);
1023 QPointFcxx . . $ QPointF# sceneDirection = q->mapToScenecxx . . $ QQuickItem#mapToScene(d99487573c8c6d6c).(localDirection);
1024 sceneDirectionVectorcxx . . $ LomiriGestures/UCSwipeAreaPrivate#sceneDirectionVector. =cxx . . $ QPointF#`operator=`(6469e36527f13916). sceneDirection -cxx . . $ operator-(e229ca25d6519380). sceneOrigin;
1025 }
1026
1027 qrealcxx . . $ qreal# UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::projectOntoDirectionVectorcxx . . $ LomiriGestures/UCSwipeAreaPrivate#projectOntoDirectionVector(6e37e6397cbd5f24).(const QPointFcxx . . $ QPointF# &sceneVector) const
1028 {
1029 // same as dot product as sceneDirectionVector is a unit vector
1030 return sceneVector.xcxx . . $ QPointF#x(21b6c25e127938e2).() * sceneDirectionVectorcxx . . $ LomiriGestures/UCSwipeAreaPrivate#sceneDirectionVector..xcxx . . $ QPointF#x(21b6c25e127938e2).() +
1031 sceneVector.ycxx . . $ QPointF#y(21b6c25e127938e2).() * sceneDirectionVectorcxx . . $ LomiriGestures/UCSwipeAreaPrivate#sceneDirectionVector..ycxx . . $ QPointF#y(21b6c25e127938e2).();
1032 }
1033
1034 UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#UCSwipeAreaPrivate(49f6e7a06ebc5aa8).()
1035 : QQuickItemPrivatecxx . . $ QQuickItemPrivate#QQuickItemPrivate(49f6e7a06ebc5aa8).()
1036 , timeSource(new RealTimeSource)
1037 , activeTouches(timeSource)
1038 , recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.(nullptr)
1039 , distanceThresholdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThreshold.(0)
1040 , distanceThresholdSquaredcxx . . $ LomiriGestures/UCSwipeAreaPrivate#distanceThresholdSquared.(0.)
1041 , maxDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxDistance.(0.)
1042 , sceneDistancecxx . . $ LomiriGestures/UCSwipeAreaPrivate#sceneDistance.(0.)
1043 , touchIdcxx . . $ LomiriGestures/UCSwipeAreaPrivate#touchId.(-1)
1044 , maxTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxTime.(400)
1045 , compositionTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#compositionTime.(60)
1046 , statuscxx . . $ LomiriGestures/UCSwipeAreaPrivate#status.(WaitingForTouchcxx . . $ LomiriGestures/UCSwipeAreaPrivate#WaitingForTouch.)
1047 , directioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#direction.(UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::Rightwardscxx . . $ LomiriGestures/UCSwipeArea#Rightwards.)
1048 , immediateRecognitioncxx . . $ LomiriGestures/UCSwipeAreaPrivate#immediateRecognition.(false)
1049 , grabGesturecxx . . $ LomiriGestures/UCSwipeAreaPrivate#grabGesture.(true)
1050 {
1051 }
1052
1053 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::initcxx . . $ LomiriGestures/UCSwipeAreaPrivate#init(49f6e7a06ebc5aa8).()
1054 {
1055 Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(UCSwipeArea);
1056 setRecognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#setRecognitionTimer(51ff982643cafd7).(new Timer(q));
1057 recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.->setIntervalcxx . . $ LomiriGestures/AbstractTimer#setInterval(d4f767463ce0a6b3).(maxTimecxx . . $ LomiriGestures/UCSwipeAreaPrivate#maxTime.);
1058 recognitionTimercxx . . $ LomiriGestures/UCSwipeAreaPrivate#recognitionTimer.->setSingleShotcxx . . $ LomiriGestures/AbstractTimer#setSingleShot(b45ddcbc8423892c).(true);
1059
1060 QObjectcxx . . $ QObject#::connectcxx . . $ QObjectPrivate#connect(835f87066c895669).(q, &QQuickItemcxx . . $ QQuickItem#::enabledChangedcxx . . $ QQuickItem#enabledChanged(49f6e7a06ebc5aa8)., q, &UCSwipeAreacxx . . $ LomiriGestures/UCSwipeArea#::giveUpIfDisabledOrInvisiblecxx . . $ LomiriGestures/UCSwipeArea#giveUpIfDisabledOrInvisible(49f6e7a06ebc5aa8).);
1061 }
1062
1063 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::addStatusChangeListenercxx . . $ LomiriGestures/UCSwipeAreaPrivate#addStatusChangeListener(51e7e61b326ee463).(UCSwipeAreaStatusListenercxx . . $ LomiriGestures/UCSwipeAreaStatusListener# *listener)
1064 {
1065 if (!statusChangeListeners.contains(listener)) {
1066 statusChangeListeners.append(listener);
1067 }
1068 }
1069
1070 void UCSwipeAreaPrivatecxx . . $ LomiriGestures/UCSwipeAreaPrivate#::removeStatusChangeListenercxx . . $ LomiriGestures/UCSwipeAreaPrivate#removeStatusChangeListener(51e7e61b326ee463).(UCSwipeAreaStatusListenercxx . . $ LomiriGestures/UCSwipeAreaStatusListener# *listener)
1071 {
1072 statusChangeListeners.removeAll(listener);
1073 }
1074
1075 UG_NAMESPACE_ENDcxx . . $ `src/LomiriGestures/lomirigesturesglobal.h:31:9`!