Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.2.3
-
None
Description
There's a magic number in src/gui/embedded/qkbd_qws.cpp -
repeatdelay. For numbers up to 200, the timer and autorepeats function as
expected, but for numbers 250 and higher, there are no autorepeats at all.
The problem is revealed using a custom keyboard handler, modelled after ours
in <qtopia phone edition source>/devices/greenphone/src/plugins/qtopiacore/kbddrivers/greenphone/greenphonekbdhandler.cpp
however the custom handler is not the source of the problem, having had it forwarded and checked the key.
The problem is not due to the time period used because a simple little application to check on QTimers revealed that QTimers with higher numbers worked fine.
It was found that there seems to have been changes with timers, between Qt 4.2 and Qt 4.3, such that repeated call's to QTimer::start() can reset the timer, and that the magic number is the amount of time it takes to cause this reset.