diff options
author | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-01-13 17:41:34 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-01-15 04:22:08 +0000 |
commit | ec5f3fa6b7ddf0ed80801f70add90444f3714593 (patch) | |
tree | df88e86197a4daa83114646d9175bb850a3455b7 /src/quick/items/qquickevents_p_p.h | |
parent | b6ed5ff46f4637c51fcc39305aac270f2f878409 (diff) |
Fix build without feature.shortcut
Change-Id: Id0ea0037db4cc3878ae2f75109aa3a7daa120189
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r-- | src/quick/items/qquickevents_p_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h index 7b281623fe..cf6f83e5b1 100644 --- a/src/quick/items/qquickevents_p_p.h +++ b/src/quick/items/qquickevents_p_p.h @@ -108,7 +108,9 @@ public: bool isAccepted() { return event.isAccepted(); } void setAccepted(bool accepted) { event.setAccepted(accepted); } +#if QT_CONFIG(shortcut) Q_REVISION(2) Q_INVOKABLE bool matches(QKeySequence::StandardKey key) const { return event.matches(key); } +#endif private: QKeyEvent event; |