summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcheckbox
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-04-08 08:27:28 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-04-08 08:33:34 (GMT)
commit510ce6fa8a3a30063744eaaf004850679610060e (patch)
treedfd5f6c3fbebc9c9fa04ba67e93acd0c408fd5ad /tests/auto/qcheckbox
parent3f3d09cf1511dde99797671a7bc848cdabc8d7fa (diff)
downloadQt-510ce6fa8a3a30063744eaaf004850679610060e.zip
Qt-510ce6fa8a3a30063744eaaf004850679610060e.tar.gz
Qt-510ce6fa8a3a30063744eaaf004850679610060e.tar.bz2
BT: Fix the embedded dialogs demo on Mac OS X and Motif style
The CustomProxy class installs an event filter on its child to detect whether it is shadowed by a popup or not. The problem is it does this regardless of whether it currently has a scene assigned or not. Styles that assign palettes, or otherwise cause side effects when assigned to a QGraphicsProxyWidget, will cause the demo to print warnings to the console and fail to install the event filter. The reason for the failure to install the filter is that QGraphicsItem only allows scene event filters to be installed between items that are in the same scene. So, depending on the style, you either get an ItemSceneHasChanged or an ItemChildAddedChange first. The demo must account for this, and install its filter only when the items are guaranteed to be in the scene already. Reviewed-by: Alexis
Diffstat (limited to 'tests/auto/qcheckbox')
0 files changed, 0 insertions, 0 deletions