diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-01-20 15:25:17 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-01-20 22:57:45 +0100 |
commit | 177c370a7262a56f408d7343822ca119c9650cd9 (patch) | |
tree | 35fb3b1650f9613fe2a2c18d9eb658c8c7c3df13 /src/gui/kernel/qwindow_p.h | |
parent | d86a02b468666116ca758a5e1f112a1616a5ff07 (diff) |
Improve QAbstractButton::animateClick test
The test is timing sensitive; if it takes more than 100ms
to process events, then the timer that clicks the button might
have fired. So only verify that the button is still down if 100ms have
not yet passed, and verify that at least 100ms have passed when the
click is complete.
Also use QSignalSpy to test the signal emissions.
Pick-to: 6.2 6.3
Change-Id: I95f99e204a17c6709f8e2913eefe4b487e949123
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/gui/kernel/qwindow_p.h')
0 files changed, 0 insertions, 0 deletions