Fix order of QSGItem mouse filtering.
authorMartin Jones <martin.jones@nokia.com>
Mon, 3 Oct 2011 00:59:16 +0000 (10:59 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 3 Oct 2011 02:44:51 +0000 (04:44 +0200)
commit69e925444ecebd352462f742d894b326d4cc9a72
treea84c82b846c8f3b55c825cb74eac2a0e6e9f1b70
parent54da515e5e5f65e7ae253280038aad912780de12
Fix order of QSGItem mouse filtering.

QGraphicsView filtered child items beginning with the item's
parent, grandparent, greatgrandparent... QSGCanvas did the
opposite, which breaks the QML mouse handling element filtering logic.

Task-number: QTBUG-21446
Change-Id: I18e125305eef536237195895a7f41f88b532d4aa
Reviewed-on: http://codereview.qt-project.org/5819
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/declarative/items/qsgcanvas.cpp
tests/auto/declarative/qsgcanvas/tst_qsgcanvas.cpp