Add a QApplication::queryKeyboardModifiers() method.
authorDavid Faure <faure@kde.org>
Wed, 17 Aug 2011 11:14:57 +0000 (13:14 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 25 Aug 2011 09:37:06 +0000 (11:37 +0200)
commitd4d883de469a87914748b41c69d80d9a890205e4
treedc56950db6c8fd8c9d5470c41c5c845d85f0f550
parent7347a5f99df2da154acb1bdc538d4bc771cab066
Add a QApplication::queryKeyboardModifiers() method.

QApplication::keyboardModifiers returns the keyboard modifiers
from the last keypress event in this process, as documented. However
there are use cases for querying keyboard modifiers as they currently are,
see QTBUG-11243.

Merge-request: 585
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
(cherry picked from commit 3b5354386225974ea6db78c12f32cb81e2d50104)

Change-Id: I9b4e54ac79fc225e3ed8d2bcaba953a6eb59f0d2
Reviewed-on: http://codereview.qt.nokia.com/3581
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/gui/kernel/qapplication.cpp
src/gui/kernel/qapplication.h
src/gui/kernel/qapplication_mac.mm
src/gui/kernel/qapplication_qws.cpp
src/gui/kernel/qapplication_s60.cpp
src/gui/kernel/qapplication_win.cpp
src/gui/kernel/qapplication_x11.cpp
src/gui/kernel/qdnd_x11.cpp