summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-03-21 10:48:16 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-22 05:38:07 +0000
commita8c94db51bbb1b9cc91111aa883a3593c209fcc4 (patch)
tree36003e3639c5bc8222f0412ac63d3b9d6f4249be
parent113c6416b78dc1185b25d462c6d2773d55733445 (diff)
QKeyEvent: fix build with QT_TYPESAFE_FLAGS
Change-Id: I708f94b625edf1ed7ff1073792cf49bff39c3d98 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 2532268b1028a006be34132632cc3d67142467ee) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/input/frontend/qkeyevent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/frontend/qkeyevent.h b/src/input/frontend/qkeyevent.h
index acc213b1e..5377de06b 100644
--- a/src/input/frontend/qkeyevent.h
+++ b/src/input/frontend/qkeyevent.h
@@ -72,7 +72,7 @@ public:
inline int key() const { return m_event->key(); }
inline QString text() const { return m_event->text(); }
- inline int modifiers() const { return m_event->modifiers(); }
+ inline int modifiers() const { return int(m_event->modifiers().toInt()); }
inline bool isAutoRepeat() const { return m_event->isAutoRepeat(); }
inline int count() const { return m_event->count(); }
inline quint32 nativeScanCode() const { return m_event->nativeScanCode(); }