summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-04-12 14:27:09 +0200
committerUlf Hermann <ulf.hermann@qt.io>2024-04-18 17:06:02 +0000
commit460b0f98c656643f36729fe3b0abc1ba361481b0 (patch)
tree62e34b9d1bb62e89b13a01d467377195cba905b8
parenta56461883830cecf281b1d6db5e7d6103154d3d9 (diff)
Gui: Add Q_GADGET to QPointerEvent
It's exposed in the QPointingDevice::grabChanged signal. In order to build a complete graph of metaobjects via properties and methods we need to know about all argument and return types as metaobjecs. Such a graph is desirable for reasoning about the consistency of the type system. Task-number: QTBUG-101143 Change-Id: Ib8eca9490504846ae96814f7d746084adf6a29f9 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r--src/gui/kernel/qevent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h
index a001b8f3473..a24f0c471ce 100644
--- a/src/gui/kernel/qevent.h
+++ b/src/gui/kernel/qevent.h
@@ -71,6 +71,7 @@ protected:
class Q_GUI_EXPORT QPointerEvent : public QInputEvent
{
+ Q_GADGET
Q_DECL_EVENT_COMMON(QPointerEvent)
public:
explicit QPointerEvent(Type type, const QPointingDevice *dev,