OpenCoverage

qquickmousearea_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickmousearea_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QQuickMouseEvent;-
5class QQuickDrag;-
6class QQuickMouseAreaPrivate;-
7class QQuickWheelEvent;-
8-
9class __attribute__((visibility("default"))) QQuickMouseArea : public QQuickItem-
10{-
11 public:-
12#pragma GCC diagnostic push-
13 -
14#pragma GCC diagnostic ignored "-Wsuggest-override"-
15 static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private:-
16#pragma GCC diagnostic ignored "-Wattributes"-
17 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
18#pragma GCC diagnostic pop-
19 struct QPrivateSignal {};-
20-
21 -
22 -
23 -
24 -
25 -
26 -
27 -
28 -
29 -
30-
31 -
32-
33 -
34 -
35-
36 -
37-
38 -
39 -
40-
41public:-
42 QQuickMouseArea(QQuickItem *parent=nullptr);-
43 ~QQuickMouseArea();-
44-
45 qreal mouseX() const;-
46 qreal mouseY() const;-
47-
48 bool isEnabled() const;-
49 void setEnabled(bool);-
50-
51 bool isScrollGestureEnabled() const;-
52 void setScrollGestureEnabled(bool);-
53-
54 bool hovered() const;-
55 bool pressed() const;-
56 bool containsPress() const;-
57-
58 Qt::MouseButtons pressedButtons() const;-
59-
60 Qt::MouseButtons acceptedButtons() const;-
61 void setAcceptedButtons(Qt::MouseButtons buttons);-
62-
63 bool hoverEnabled() const;-
64 void setHoverEnabled(bool h);-
65-
66-
67 QQuickDrag *drag();-
68-
69-
70 bool preventStealing() const;-
71 void setPreventStealing(bool prevent);-
72-
73 bool propagateComposedEvents() const;-
74 void setPropagateComposedEvents(bool propagate);-
75-
76-
77 Qt::CursorShape cursorShape() const;-
78 void setCursorShape(Qt::CursorShape shape);-
79-
80-
81 int pressAndHoldInterval() const;-
82 void setPressAndHoldInterval(int interval);-
83 void resetPressAndHoldInterval();-
84-
85public :-
86 void hoveredChanged();-
87 void pressedChanged();-
88 void enabledChanged();-
89 void scrollGestureEnabledChanged();-
90 void pressedButtonsChanged();-
91 void acceptedButtonsChanged();-
92 void hoverEnabledChanged();-
93-
94 void cursorShapeChanged();-
95-
96 void positionChanged(QQuickMouseEvent *mouse);-
97 void mouseXChanged(QQuickMouseEvent *mouse);-
98 void mouseYChanged(QQuickMouseEvent *mouse);-
99 void preventStealingChanged();-
100 void propagateComposedEventsChanged();-
101-
102 void pressed(QQuickMouseEvent *mouse);-
103 void pressAndHold(QQuickMouseEvent *mouse);-
104 void released(QQuickMouseEvent *mouse);-
105 void clicked(QQuickMouseEvent *mouse);-
106 void doubleClicked(QQuickMouseEvent *mouse);-
107 void wheel(QQuickWheelEvent *wheel);-
108 void entered();-
109 void exited();-
110 void canceled();-
111 void containsPressChanged();-
112 void pressAndHoldIntervalChanged();-
113-
114protected:-
115 void setHovered(bool);-
116 bool setPressed(Qt::MouseButton button, bool p, Qt::MouseEventSource source);-
117 bool sendMouseEvent(QMouseEvent *event);-
118-
119 void mousePressEvent(QMouseEvent *event) override;-
120 void mouseReleaseEvent(QMouseEvent *event) override;-
121 void mouseDoubleClickEvent(QMouseEvent *event) override;-
122 void mouseMoveEvent(QMouseEvent *event) override;-
123 void mouseUngrabEvent() override;-
124 void hoverEnterEvent(QHoverEvent *event) override;-
125 void hoverMoveEvent(QHoverEvent *event) override;-
126 void hoverLeaveEvent(QHoverEvent *event) override;-
127-
128 void wheelEvent(QWheelEvent *event) override;-
129-
130 bool childMouseEventFilter(QQuickItem *i, QEvent *e) override;-
131 void timerEvent(QTimerEvent *event) override;-
132 void windowDeactivateEvent() override;-
133-
134 void geometryChanged(const QRectF &newGeometry,-
135 const QRectF &oldGeometry) override;-
136 void itemChange(ItemChange change, const ItemChangeData& value) override;-
137 QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override;-
138-
139private:-
140 void handlePress();-
141 void handleRelease();-
142 void ungrabMouse();-
143-
144private:-
145 QQuickMouseArea(const QQuickMouseArea &) = delete; QQuickMouseArea &operator=(const QQuickMouseArea &) = delete;-
146 inline QQuickMouseAreaPrivate* d_func() { return
executed 20612 times by 24 tests: return reinterpret_cast<QQuickMouseAreaPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquickwidget
  • tst_qquickwindow
  • tst_signalspy
  • tst_touchmouse
reinterpret_cast<QQuickMouseAreaPrivate *>(qGetPtrHelper(d_ptr));
executed 20612 times by 24 tests: return reinterpret_cast<QQuickMouseAreaPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquickwidget
  • tst_qquickwindow
  • tst_signalspy
  • tst_touchmouse
} inline const QQuickMouseAreaPrivate* d_func() const { return
executed 1594 times by 14 tests: return reinterpret_cast<const QQuickMouseAreaPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickwidget
  • tst_qquickwindow
  • tst_signalspy
  • tst_touchmouse
reinterpret_cast<const QQuickMouseAreaPrivate *>(qGetPtrHelper(d_ptr));
executed 1594 times by 14 tests: return reinterpret_cast<const QQuickMouseAreaPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickwidget
  • tst_qquickwindow
  • tst_signalspy
  • tst_touchmouse
} friend class QQuickMouseAreaPrivate;
1594-20612
147};-
148-
149-
150-
151 template <> struct QMetaTypeId< QQuickMouseArea * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickMouseArea * >("QQuickMouseArea *", reinterpret_cast< QQuickMouseArea * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickMouseArea> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickMouseArea> >("QQmlListProperty<QQuickMouseArea>", reinterpret_cast< QQmlListProperty<QQuickMouseArea> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } };-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0