Make flushWindowSystemEvents return ev. accepted
authorMorten Johan Sørvig <morten.sorvig@theqtcompany.com>
Wed, 29 Apr 2015 10:34:16 +0000 (12:34 +0200)
committerMorten Johan Sørvig <morten.sorvig@theqtcompany.com>
Thu, 27 Aug 2015 21:58:24 +0000 (21:58 +0000)
commitac9643c85ff829583c8be958b5eea4d543070882
treee8b891d64cfe5861d5d04234050d0511e6a4eeaf
parent6d51697f1d4a5b1d0d57efca29a8d81a591567bd
Make flushWindowSystemEvents return ev. accepted

flushWindowSystemEvents() now returns whether the
most recent event added to the queue was accepted
by Qt or not.

Use QAtomicInt to store the accepted state in order
to avoid a data race on it between the Gui thread
and the event poster thread.

Change-Id: I6c111fdaecda5c514307ca0749a54075fe8e872f
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
src/gui/kernel/qwindowsysteminterface.cpp
src/gui/kernel/qwindowsysteminterface.h
src/gui/kernel/qwindowsysteminterface_p.h