Document and use UserEvent::nullWindow for event delivery
authorGirish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Mon, 18 Jun 2012 21:51:14 +0000 (14:51 -0700)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jun 2012 10:38:32 +0000 (12:38 +0200)
commiteff1f61e501bd3f81a03cdeef017c92bfd770fa8
tree2a2c7a0b396f9f99d8d2978dd9d0e1eb71874a94
parent6d9c545d2b83305c3c30a0e917e6c3a474dfe66a
Document and use UserEvent::nullWindow for event delivery

nullWindow is used to track if the window was null when the event
was created. If the window was null at contruction time, the qpa
event delivery code will choose a window to deliver it to.

If the window was not-null at creation time but became null during
the actuall event processing time, the event is ignored.

All the event delivery except the touch event delivery has been
changed to reflect this. I have not changed touch event delivery
because I don't really know what all need to be retranslated into
new window co-ordinates.

Change-Id: Ic62d12a13e70dd4d01226509411817db1b6af108
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
src/gui/kernel/qguiapplication.cpp