Flickable should only call ungrabMouse() if it is the mouse grabber
authorAndras Becsi <andras.becsi@nokia.com>
Mon, 2 Apr 2012 10:54:56 +0000 (12:54 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Apr 2012 10:14:50 +0000 (12:14 +0200)
commit62e88faeb4ec8b3ad6209cadd2d3e5dcc3b4217e
tree004f4408dda1408cec8c187bcee977717e60feb1
parent38d535bd9a4aca8a897e2ae15aed13daa822de2d
Flickable should only call ungrabMouse() if it is the mouse grabber

Check whether the Flickable is the mouse grabber before ungrabbing
in mouseReleaseEvent() to suppress warnings in case event delivery
does not rely on mouse grabbing.

Change-Id: I3c3398ebbb9d8ab2cb6181677752b73e265cf02f
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickflickable.cpp