Focus reason
authorCaroline Chao <caroline.chao@digia.com>
Tue, 5 Mar 2013 11:00:19 +0000 (12:00 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 7 Mar 2013 10:58:50 +0000 (11:58 +0100)
commitbd6ae5e5931b98b781847fd67f7c5b570b2b61c0
tree0643adee4d49c436a70fca219182f00637b90699
parente70f21152aa8b2459c903db0cf4ca30bde5bd178
Focus reason

When trying to do for example text handling it becomes
obvious that focus handling is not proper.

A mouse click focus should de-select text,
while a window change should preserve the selection.

Re-introduce focus reason.

Change-Id: I3322c976437cba68938d7c9188e549bdb499fa5a
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
src/quick/items/qquickitem.cpp
src/quick/items/qquickitem.h
src/quick/items/qquicktextedit.cpp
src/quick/items/qquickwindow.cpp
src/quick/items/qquickwindow_p.h