Avoided calling updateAccessibility() from updateMicroFocus if the item was hidden
authorJan-Arve Sæther <jan-arve.saether@nokia.com>
Thu, 5 May 2011 14:40:45 +0000 (16:40 +0200)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>
Tue, 10 May 2011 10:35:52 +0000 (12:35 +0200)
commit97952e918df3d7ace112d805377907927f1c7c2d
tree6d7cc3393a867e084be4a9a99f51f972e9da547a
parent015434360832572fcd9508f03ff8de0009b88777
Avoided calling updateAccessibility() from updateMicroFocus if the item was hidden

This had the following negative effect in qmlviewer:
- Every time the qmlviewer logged something to its QPlainTextEdit
  (regardless of if it was visible or not) it would call
  updateMicroFocus (because appending to QPlainTextEdit would move the
  cursor). The result was that the AT client got overloaded with
  accessibility state changes, and response time got really bad.
(cherry picked from commit ad50e45311cce712fbe35641cde973d616ff560d)

Reviewed-by: Frederik Gladhorn
(cherry picked from commit a825b3a9e6132842090e43fae85d2c6c61b2def6)
src/gui/kernel/qwidget.cpp