Workaround windows not gaining focus on mac.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 28 Oct 2011 06:15:38 +0000 (16:15 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 Nov 2011 04:13:05 +0000 (05:13 +0100)
commit2a40fa8d3cd40bdce7d8771a15497fd75ee12f52
tree33340afb63d5f491c446a66de27741cf281395aa
parent6013a61effd7517f4d659902391f89bee29ec3fe
Workaround windows not gaining focus on mac.

Delaying giving focus to the rootItem until the canvas window gains
focus doesn't work if the window never gains focus.  So give focus to
the rootItem immediately so text input continues to work while
QTBUG-22415 is being resolved.

Task-number: QTBUG-22409
Change-Id: I1bdb13485219d0c2a2f8bdcb3e0972444e3813f2
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/declarative/items/qquickcanvas.cpp
tests/auto/declarative/qquickfocusscope/tst_qquickfocusscope.cpp