Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1152

toggle input method : missing autorepeats of keys due to QTimer problem

    XMLWordPrintable

Details

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tvete Paul Olav Tvete
            dakovaci Daniel Kovacic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes