summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication.h
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2011-08-17 11:14:57 (GMT)
committerFrederik Gladhorn <frederik.gladhorn@nokia.com>2011-08-17 11:14:57 (GMT)
commit3b5354386225974ea6db78c12f32cb81e2d50104 (patch)
tree6ab2fffb846b52908ec3f6d889403e3e539db08e /src/gui/kernel/qapplication.h
parentfb934f2a8d7398a3ff39a107093f9da6ceda59a7 (diff)
downloadQt-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.h')
-rw-r--r--src/gui/kernel/qapplication.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication.h b/src/gui/kernel/qapplication.h
index 01a246a..1548849 100644
--- a/src/gui/kernel/qapplication.h
+++ b/src/gui/kernel/qapplication.h
@@ -198,6 +198,7 @@ public:
static void alert(QWidget *widget, int duration = 0);
static Qt::KeyboardModifiers keyboardModifiers();
+ static Qt::KeyboardModifiers queryKeyboardModifiers();
static Qt::MouseButtons mouseButtons();
static void setDesktopSettingsAware(bool);