diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-08-24 14:10:22 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-08-24 14:15:25 (GMT) |
commit | 1a71668483380f45cacda30cc55424d09def0636 (patch) | |
tree | 3835f12ad1702cc8ad318485f5d131aa2f94d301 /tools/activeqt | |
parent | c5b34ea67668e60a61c463633eaae0e629fee606 (diff) | |
download | Qt-1a71668483380f45cacda30cc55424d09def0636.zip Qt-1a71668483380f45cacda30cc55424d09def0636.tar.gz Qt-1a71668483380f45cacda30cc55424d09def0636.tar.bz2 |
Fix Qt::ClickFocus for QGraphicsProxyWidget.
This fixes click-focus for the Embedded Dialogs demo and the Pad Navigator
demo. In Qt 4.6, the behavior of the spontaneous-bit in events has
changed. This has happened in a number of submits that also modify
Graphics View to have the correct behavior. Somewhere on the line,
the spontaneous bit has been reset, preventing QApplicationPrivate's
ClickFocus handling to kick in. This again causes the Embedded Dialogs
demo to not give focus to widgets that are clicked.
This fix is not likely to be 100% correct. What it does is ensure that
the spont-bit survives a call to qt_sendSpontaneousEvent (as this bit
is for some reason reset at the end of QApplicationPrivate::notify_helper),
and this fixes the most apparent regression in ClickFocus handling.
Pending closer review.
The fix includes an autotest that should be kept if the fix is reverted.
Reviewed-by: bnilsen
Diffstat (limited to 'tools/activeqt')
0 files changed, 0 insertions, 0 deletions