Do not deliver hover events when item is not visible
authorCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Mon, 29 Aug 2011 13:11:31 +0000 (10:11 -0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 31 Aug 2011 01:25:28 +0000 (03:25 +0200)
commit1646db78918f740c5e5a7e487914f56d732f4a17
tree378868e617a6a565b05e0ecf34ab5b8b32b83fdb
parentede31210aafbfb961059a6e0934d6e6a79e06447
Do not deliver hover 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
hover events to an item. The rationale here is to follow the same
rule as the other mouse events.

Change-Id: If0fe6d64d1f7cfb8679ce11edda7c02dc3783f9b
Reviewed-on: http://codereview.qt.nokia.com/3861
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/declarative/items/qsgcanvas.cpp
tests/auto/declarative/qsgitem/tst_qsgitem.cpp