Added easy way to simulate a touch event. Ported swipe to qml only
ClosedPublic

Authored by fabianr on Oct 17 2018, 2:57 PM.

Diff Detail

Repository
R985 KDE Human Interface Guidelines
Branch
qmltouchevents
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 4016
Build 4034: arc lint + arc unit
fabianr requested review of this revision.Oct 17 2018, 2:57 PM
fabianr created this revision.
mart added a comment.Oct 18 2018, 8:43 AM

perhaps would be better to try to generate actual touch events?
searching in the QtTest qml module, i found this:
http://doc.qt.io/qt-5/qml-qttest-toucheventsequence.html

event.touchEvent(canvas);

returns a TouchEventSequence. So it is already used for the swipe. But I could not make it work for touch(), so I'm using the mouseClick() there for now.

mart accepted this revision.Oct 18 2018, 8:50 AM
This revision is now accepted and ready to land.Oct 18 2018, 8:50 AM
fabianr updated this revision to Diff 43849.Oct 18 2018, 8:54 AM
  • Changed event in touch() from mouseClick to real touch event
fabianr closed this revision.Oct 18 2018, 8:55 AM