Fix resolution of cursor when items are overlapping.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 25 Jul 2012 04:04:47 +0000 (14:04 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 26 Jul 2012 03:54:37 +0000 (05:54 +0200)
commit419296133aa68a317838e047b22513f1e5508b47
treee3a0597f6d9c83cc2ac06eba385decd3ec12ff62
parent57485805057eda17008d14ca618e9c1f69a5a35d
Fix resolution of cursor when items are overlapping.

If MouseArea with cursorShapes are overlapping then cursor shape
of the foremost item under the mouse cursor should be shown, but because
the hover events are delivered to the foremost items first the opposite
is occuring.  This makes QQuickWindow responsible for correctly setting
its own cursor instead of relying on items to work it out amongst
themselves.

Change-Id: Iedf144c583dfa3d1ff441e19db9601b5e171902a
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickitem.cpp
src/quick/items/qquickitem.h
src/quick/items/qquickitem_p.h
src/quick/items/qquickmousearea.cpp
src/quick/items/qquickmousearea_p.h
src/quick/items/qquickwindow.cpp
src/quick/items/qquickwindow_p.h
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp
tests/auto/quick/qquickwindow/tst_qquickwindow.cpp