OpenCoverage

qquicksinglepointhandler_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquicksinglepointhandler_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class __attribute__((visibility("default"))) QQuickSinglePointHandler : public QQuickPointerDeviceHandler-
5{-
6 public:-
7#pragma GCC diagnostic push-
8 -
9#pragma GCC diagnostic ignored "-Wsuggest-override"-
10 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:-
11#pragma GCC diagnostic ignored "-Wattributes"-
12 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
13#pragma GCC diagnostic pop-
14 struct QPrivateSignal {};-
15 -
16public:-
17 explicit QQuickSinglePointHandler(QObject *parent = nullptr);-
18 virtual ~QQuickSinglePointHandler() { }-
19-
20 QQuickHandlerPoint point() const { return
executed 9326 times by 4 tests: return m_pointInfo;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
m_pointInfo;
executed 9326 times by 4 tests: return m_pointInfo;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
}
9326
21-
22public :-
23 void pointChanged();-
24 void singlePointGrabChanged();-
25-
26protected:-
27 bool wantsPointerEvent(QQuickPointerEvent *event) override;-
28 void handlePointerEventImpl(QQuickPointerEvent *event) override;-
29 virtual void handleEventPoint(QQuickEventPoint *point) = 0;-
30-
31 QQuickEventPoint *currentPoint(QQuickPointerEvent *ev) { return
never executed: return ev->pointById(m_pointInfo.m_id);
ev->pointById(m_pointInfo.m_id);
never executed: return ev->pointById(m_pointInfo.m_id);
}
0
32 void onGrabChanged(QQuickPointerHandler *grabber, QQuickEventPoint::GrabState stateChange, QQuickEventPoint *point) override;-
33-
34 void setIgnoreAdditionalPoints(bool v = true);-
35-
36 void moveTarget(QPointF pos, QQuickEventPoint *point);-
37-
38 void setPointId(int id);-
39-
40private:-
41 void reset();-
42-
43private:-
44 QQuickHandlerPoint m_pointInfo;-
45 bool m_ignoreAdditionalPoints : 1;-
46};-
47-
48-
49-
50 template <> struct QMetaTypeId< QQuickSinglePointHandler * > { 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< QQuickSinglePointHandler * >("QQuickSinglePointHandler *", reinterpret_cast< QQuickSinglePointHandler * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickSinglePointHandler> > { 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<QQuickSinglePointHandler> >("QQmlListProperty<QQuickSinglePointHandler>", reinterpret_cast< QQmlListProperty<QQuickSinglePointHandler> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } };-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0