diff options
author | Stephan Binner <stephan.binner@basyskom.com> | 2017-04-20 09:24:44 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-04-27 11:08:23 +0000 |
commit | a6164a44f2c9ec0fac50060847ff91dcaa993d4a (patch) | |
tree | d55beeb5675540d7f163e53ac64f97d4ec76c267 /src | |
parent | 34b3ea85829076b5d668c3940b1d1d7acc4b16d9 (diff) |
Fix build for -no-feature-shortcut
Change-Id: I1ddd01924fc1d5667be7e0bba2540e24c2272bc3
Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/input/frontend/qkeyevent.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/frontend/qkeyevent.h b/src/input/frontend/qkeyevent.h index 23fed5545..e028438ce 100644 --- a/src/input/frontend/qkeyevent.h +++ b/src/input/frontend/qkeyevent.h @@ -78,7 +78,9 @@ public: inline bool isAccepted() const { return m_event.isAccepted(); } inline void setAccepted(bool accepted) { m_event.setAccepted(accepted); } inline QEvent::Type type() const { return m_event.type(); } +#if QT_CONFIG(shortcut) Q_INVOKABLE bool matches(QKeySequence::StandardKey key_) const { return m_event.matches(key_); } +#endif private: QT_PREPEND_NAMESPACE(QKeyEvent) m_event; |