Implement automatic mouse grabbing on mouse button press.
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Mon, 25 Jun 2012 13:56:16 +0000 (16:56 +0300)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Jul 2012 12:49:48 +0000 (14:49 +0200)
commit6b5bbc531b30d8ece25425e39843c6ae1af1d045
tree99c4e9baa1a3c796bd464dfb46d5ce7bca330de8
parentd3af02f190461c9b98dc2f575aa84945b48ec360
Implement automatic mouse grabbing on mouse button press.

QWidget::grabMouse() documentation states that Qt automatically grabs
the mouse when a button is pressed and ungrabs it when it is released.
Implemented this functionality to make Qt5 behavior similar to Qt4.

Task-number: QTBUG-25977
Change-Id: I17aa7e8190f4f5224ebc382d62970c86ae492bdb
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/widgets/kernel/qapplication.cpp
src/widgets/kernel/qapplication_p.h
src/widgets/kernel/qapplication_qpa.cpp