diff options
author | Andy Shaw <andy.shaw@qt.io> | 2018-11-30 13:26:16 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-11-30 14:14:50 +0000 |
commit | ea725e1b54e5a28fb7c37f23acfdd95e6269624a (patch) | |
tree | b5b40d32fdc2d72f6306b5494adbff89df549861 /src/quick/items/qquickevents_p_p.h | |
parent | b17091b0006e41c0bb4ddf77dbbc09621d809aea (diff) |
Declare the enum so it can be passed to the QML side
In order for the enum value to be passed to the QML side then it needs
to be registered so it can be picked up. This fixes the signals using
QQuickEventPoint::GrabTransition, such as PointerHandler's grabChanged.
Change-Id: I387930d50f03fee867b3d869618525d44173b538
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r-- | src/quick/items/qquickevents_p_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h index d1a8bbd901..e614b1bd6d 100644 --- a/src/quick/items/qquickevents_p_p.h +++ b/src/quick/items/qquickevents_p_p.h @@ -723,5 +723,6 @@ QML_DECLARE_TYPE(QQuickCloseEvent) QML_DECLARE_TYPE(QQuickPointerDevice) QML_DECLARE_TYPE(QPointingDeviceUniqueId) QML_DECLARE_TYPE(QQuickPointerEvent) +Q_DECLARE_METATYPE(QQuickEventPoint::GrabTransition) #endif // QQUICKEVENTS_P_P_H |