Update item focus when the enabled property is changed.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 23 Jan 2012 03:30:37 +0000 (13:30 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Feb 2012 07:37:49 +0000 (08:37 +0100)
commit6a8439070ed0582311053d130500facfd3e9d89d
treea6e0bfe04d2947b15158c66e6c95620e1cb02831
parente7224de627ac89a7c4701f53dc884616891a0199
Update item focus when the enabled property is changed.

Remove active focus from an item when it is disabled, and give active
focus to an enabled item if it has focus within a scope with active
focus.

Task-number: QTBUG-22404
Change-Id: Iff2b774a9ff784e6107a4ed6524c93e749ae0182
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/items/qquickcanvas.cpp
src/quick/items/qquickcanvas_p.h
src/quick/items/qquickitem.cpp
src/quick/items/qquickitem_p.h
tests/auto/qtquick2/qquickitem/tst_qquickitem.cpp