Focus changes cause softkey area to flicker
commit09c8171ba0de0e29667254fde9497d08c027eb0a
authorSami Merilä <sami.merila@nokia.com>
Mon, 9 Nov 2009 13:00:42 +0000 (9 15:00 +0200)
committerJason McDonald <jason.mcdonald@nokia.com>
Wed, 18 Nov 2009 06:00:40 +0000 (18 16:00 +1000)
treee2326b4e4c7fa151cf131d648c03729a87e647f5
parent0139751ed083345afdbc3da231035f5df2d9cee0
Focus changes cause softkey area to flicker

Current implementation of softkeys causes flicker, since it re-draws
the softkeys for each event handled.

First re-draw initializes the softkeys to empty ones, and second one
draws the new updated softkeys onscreen. Due to initialization to
empty softkey command set, AVKON cannot deduce if the needed redraw
is necessary (AVKON does not redraw softkeys if the softkey commands
and/or texts won't change).

The fixed behaviour is that softkeys are set to -1 for each command
when initializing, but no call to SetCommandSetL is done. Now, AVKON
won't even try to draw the softkeys until we set the real command set
later.

Task-number: QTBUG-5436
Reviewed-by: Janne Anttila
(cherry picked from commit e55d77afa7f53562d4b9f0aebd30725e5f4fde86)
src/gui/kernel/qsoftkeymanager.cpp