Do not deliver mouse wheel events when item is not visible
authorCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Tue, 23 Aug 2011 22:04:16 +0000 (19:04 -0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 24 Aug 2011 02:23:40 +0000 (04:23 +0200)
commit0d572fc7d251691a34fe5b99c60868835409047e
tree4b68d2246e990730af1d711304a656eed06eb866
parent6b18f28e38149a4f35e48dc2a7f52bc7a23587c3
Do not deliver mouse wheel events when item is not visible

This patch change the code to also skip invisible items (it was
done for disabled already) when deciding whether or not deliver the
wheel event to an item. The rationale here is to follow the same
rule as the other mouse events.

An autotest was added to verify and maintain this behavior.

Change-Id: If0fe6d64d1f7cfb8679ce11edda7c02dc3783f94
Reviewed-on: http://codereview.qt.nokia.com/3429
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/declarative/items/qsgcanvas.cpp
tests/auto/declarative/qsgitem/tst_qsgitem.cpp