summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qcollator_win.cpp
diff options
authorMorten Sørvig <morten.sorvig@qt.io>2025-04-02 12:07:35 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2025-05-01 02:44:18 +0000
commit51c7503568174669b48a8f8ddbe49eebb127a128 (patch)
tree50d0796b193267f88cda05a3c87b8aa547126357 /src/corelib/text/qcollator_win.cpp
parente57fff63419867d59b6067fc1a5a3495678708dc (diff)
a11y: reduce the number of activation observer callsHEADdev
Reduce the number of activation calls by calling the observer callbacks on active state change only, instead of on each setActive() call. The accessibility backends typically make setActive() calls on each accessibility event, which can result in a large number (100k+) of activation calls if there are many (hundreds) of installed activation observers. This change keeps the following behavior compatibilities: - Each observer is called at least once on setActive(), even if the active state has not changed since it was installed. - Going from active to inactive is supported, though Qt currently does not appear to do this. As a drive-by refactor, make it possible to activate accessibility by calling QAccessible::setActive(), by making it call QPlatformAccessible::setActive(). Change-Id: Iee17160f153b825be032b441923e3529c2f00242 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/text/qcollator_win.cpp')
0 files changed, 0 insertions, 0 deletions
close