summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2015-06-02 08:43:17 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-06-02 08:02:35 +0000
commitbeef975f92e42143c464d68afa6b8cd4f7ef7389 (patch)
tree147efd478a0e3e9b693684522adb20a3674268eb /src/widgets
parentd83bd9c6f5abd936b853029bf7030ebb4792f9fb (diff)
Cleanup the mouse event handling in testlib
Calling QCursor::setPos() to emulate mouse move events is a rather bad idea, as it creates round trips through the server, leading to timing issues etc. In addition, we should not call qapp->notify(), but rather route the events through the proper QPA interface. This is required to properly generate all other events such as enter/leave etc. As this breaks existing tests, put the new behavior behind an #ifdef for now. Like this, we can fix tests one by one, and then turn on the define by default for 5.6 (with a changelog message). We emulate timestamps to avoid creating double clicks by mistake. In addition, fix QGuiApplication::processMouseEvent to not push events back into the QPA event queue (as this is a bad hack and breaks the new testing system). Change-Id: I71774cb56674d7fb66b9a7cf1e1ada1629536408 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/widgets')
0 files changed, 0 insertions, 0 deletions