diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-18 17:33:08 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-21 09:50:13 +0200 |
commit | 9927866cf699cf53fc948b8d74ba03f9e519700d (patch) | |
tree | 12020d7986d83d34332ffef8ce6f34d0b9b669d6 | |
parent | 0dfdfd2300e6d96e69527e37bb77079f4cda29ed (diff) |
Register StandardKey as foreign namespace rather than element
We are only interested in the enum of the same name. StandardKey is not
creatable nor does it have any properties. It is also written in
uppercase. Logically it therefore is a namespace.
Change-Id: I98217625161f8d6f04bc328620cb2d93aa601fae
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | src/quick/util/qquickforeignutils_p.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/quick/util/qquickforeignutils_p.h b/src/quick/util/qquickforeignutils_p.h index 5db1197abe..4d6288bc36 100644 --- a/src/quick/util/qquickforeignutils_p.h +++ b/src/quick/util/qquickforeignutils_p.h @@ -100,13 +100,12 @@ struct QInputMethodForeign #endif // QT_CONFIG(im) #if QT_CONFIG(shortcut) -struct QKeySequenceForeign +namespace QKeySequenceForeign { - Q_GADGET - QML_FOREIGN(QKeySequence) + Q_NAMESPACE + QML_FOREIGN_NAMESPACE(QKeySequence) QML_NAMED_ELEMENT(StandardKey) QML_ADDED_IN_VERSION(2, 2) - QML_UNCREATABLE("Cannot create an instance of StandardKey.") }; #endif // QT_CONFIG(shortcut) |