Change TestEvent key default event routing behavior
authorFilippo Cucchetto <filippocucchetto@gmail.com>
Tue, 4 Aug 2015 17:29:51 +0000 (19:29 +0200)
committerFilippo Cucchetto <filippocucchetto@gmail.com>
Sun, 16 Aug 2015 16:53:42 +0000 (16:53 +0000)
commit7b8050c0d3bc1e4743f5d5a3f6d688ff71ffb5b6
treedb2c23fa62dbb406a4c2fcd40e937771c2d77172
parent6e3c6458cad5078c2bde44d73220510dfc8ebfce
Change TestEvent key default event routing behavior

The current behavior of the TestEvent is to send all the
key events to the test window. For this reason is not possible routing
events to custom windows created inside the test suite.
The new behavior is to send the key events to the current focused window

[Change][QuickTest][TestCase]
Changed default routing behavior for key events in TestCase.
The key events are sent to the window with active focus

Change-Id: I6ff3113eb9f1cbc25f6cfd2dd7bfdff178ee6ac3
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
src/imports/testlib/TestCase.qml
src/qmltest/quicktestevent.cpp
src/qmltest/quicktestevent_p.h