@@ -97,6 +97,16 @@ public:
98 bool event(QEvent *e) override;
98 bool event(QEvent *e) override;
101+ In qmltests, sequences of touch events are sent all at once, unlike in "real life".
102+ Also qmltests might run really slowly, e.g. when run from inside virtual machines.
103+ Thus to remove a variable that qmltests cannot really control, namely time, this
104+ function removes all constraints that are sensible to elapsed time.
106+ This effectively makes the DirectionalDragArea easier to fool.
108+ Q_INVOKABLE void removeTimeConstraints();
100Q_SIGNALS:
110Q_SIGNALS:
101 void directionChanged(Direction::Type direction);
111 void directionChanged(Direction::Type direction);
102 void draggingChanged(bool value);
112 void draggingChanged(bool value);