@@ -97,6 +97,16 @@ public:
9797
9898 bool event(QEvent *e) override;
9999
100+ /*
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.
105+
106+ This effectively makes the DirectionalDragArea easier to fool.
107+ */
108+ Q_INVOKABLE void removeTimeConstraints();
109+
100110Q_SIGNALS:
101111 void directionChanged(Direction::Type direction);
102112 void draggingChanged(bool value);