diff options
author | David Faure <faure@kde.org> | 2011-08-17 11:14:57 (GMT) |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-08-17 11:14:57 (GMT) |
commit | 3b5354386225974ea6db78c12f32cb81e2d50104 (patch) | |
tree | 6ab2fffb846b52908ec3f6d889403e3e539db08e /src/gui/kernel/qapplication_win.cpp | |
parent | fb934f2a8d7398a3ff39a107093f9da6ceda59a7 (diff) | |
download | Qt-3b5354386225974ea6db78c12f32cb81e2d50104.zip Qt-3b5354386225974ea6db78c12f32cb81e2d50104.tar.gz Qt-3b5354386225974ea6db78c12f32cb81e2d50104.tar.bz2 |
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>
Diffstat (limited to 'src/gui/kernel/qapplication_win.cpp')
-rw-r--r-- | src/gui/kernel/qapplication_win.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index c34e75f..756cb56 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -1319,6 +1319,11 @@ Qt::KeyboardModifiers qt_win_getKeyboardModifiers() return modifiers; } +Qt::KeyboardModifiers QApplication::queryKeyboardModifiers() +{ + return qt_win_getKeyboardModifiers(); +} + /***************************************************************************** Routines to find a Qt widget from a screen position *****************************************************************************/ |