qt5base-lts/tests/auto
Shawn Rutledge 0f94430a0f testlib: make it possible to test double-clicks with discrete events
The timestamp will no longer be incremented by 500ms after a mouse
release if the delay has been explicitly specified.

The default delay is 1 ms since f5010c49a3
but the running timestamp was unconditionally post-incremented by 500ms
after every mouse release, to prevent double-clicks, which were always
deemed as unintended (because we have a mouseDClick function for that).
Now, we do that 500ms increment only if the user has not provided a
delay value in the function argument at all. We have often found it
useful in our own tests to generate double-clicks "the hard way", by
sending indivdual events, so as to be able to check state in some target
object at each step, as shown in the new snippet.

[ChangeLog][QtTest] QTest::mouseRelease() and mouseClick() can now be
used to test double-clicks, by specifying a realistic timestamp delay.

Fixes: QTBUG-102441
Change-Id: I8e8d242061f79efb4c6e02638645e03661a9cd92
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2022-10-16 08:36:03 +02:00
..
bic/data Add BiC data for the new way to do BiC testing 2022-05-12 13:33:41 +03:00
cmake CMake: Set RPATH of deployed plugins on Linux 2022-10-15 13:00:04 +02:00
concurrent Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
corelib Long live Q_UNREACHABLE_RETURN()! 2022-10-15 22:11:47 +02:00
dbus Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
gui tests: skip tst_QTouchEvent::multiPointRawEventTranslationOnTouchPad() on Wayland 2022-10-14 17:18:53 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network Autotest/Unix: request zero-sized core dumps for crashing code 2022-10-14 08:18:53 -07:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Long live Q_UNREACHABLE_RETURN()! 2022-10-15 22:11:47 +02:00
printsupport Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql SQL/tests: fix tst_qsqlquery 2022-10-16 06:05:34 +02:00
testlib testlib: make it possible to test double-clicks with discrete events 2022-10-16 08:36:03 +02:00
tools Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
wasm Fix QWasmWindowStack::topWindow when the stack is empty 2022-09-12 20:09:03 +02:00
widgets tests: skip tst_QWidget::touchEventSynthesizedMouseEvent() on Wayland 2022-10-14 17:18:53 +02:00
xml Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00