diff options
author | Kari Oikarinen <kari.oikarinen@qt.io> | 2018-05-09 16:45:32 +0300 |
---|---|---|
committer | Kari Oikarinen <kari.oikarinen@qt.io> | 2018-05-16 06:10:08 +0000 |
commit | ae8743bf861a94aa078675d8ebcc0b1cf567aa4d (patch) | |
tree | 7b76fa53183cdc5eebbbd4cb28f538ce77b0323c /examples/widgets | |
parent | 09cb23f342fd2eae7ca85a99fa0a10b7ab103443 (diff) |
tst_QCommandLinkButton: Add back wait to the beginning of setAutoRepeat()
setAutoRepeat() is failing on macOS and Windows when run together with
defaultAndAutoDefault(). It succeeds when run on its own. Adding the wait allows
it to succeed when run with the other tests as well.
Amends 0cb940b1d3b9a1ba50f2d1973fca411706da266d, which removed the wait.
The comment is the same as before. I couldn't see a better way to replace the
wait (QApplication::topLevelWidgets() already returns only the testWidget and
testWidget->isActiveWindow() returns true).
Another theory I had was something waiting for the KeyRelease so I changed
QApplication::sendEvent() uses to QTest::keyClick(). It did not help but that
still seems preferable.
Change-Id: If87d1e6e018751f3068ea4c913ae6731aba41ff0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets')
0 files changed, 0 insertions, 0 deletions