Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickpinchhandler_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | class __attribute__((visibility("default"))) QQuickPinchHandler : public QQuickMultiPointHandler | - |
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 | - | |
16 | - | |
17 | - | |
18 | - | |
19 | - | |
20 | - | |
21 | - | |
22 | - | |
23 | - | |
24 | - | |
25 | - | |
26 | - | |
27 | - | |
28 | - | |
29 | public: | - |
30 | enum PinchOrigin { | - |
31 | FirstPoint, PinchCenter, TargetCenter | - |
32 | }; | - |
33 | friend constexpr const QMetaObject *qt_getEnumMetaObject(PinchOrigin) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(PinchOrigin) noexcept { return "PinchOrigin"; } | - |
34 | - | |
35 | explicit QQuickPinchHandler(QObject *parent = nullptr); | - |
36 | ~QQuickPinchHandler(); | - |
37 | - | |
38 | qreal minimumScale() const { return never executed: m_minimumScale;return m_minimumScale; never executed: }return m_minimumScale; | 0 |
39 | void setMinimumScale(qreal minimumScale); | - |
40 | - | |
41 | qreal maximumScale() const { return never executed: m_maximumScale;return m_maximumScale; never executed: }return m_maximumScale; | 0 |
42 | void setMaximumScale(qreal maximumScale); | - |
43 | - | |
44 | qreal minimumRotation() const { return never executed: m_minimumRotation;return m_minimumRotation; never executed: }return m_minimumRotation; | 0 |
45 | void setMinimumRotation(qreal minimumRotation); | - |
46 | - | |
47 | qreal maximumRotation() const { return never executed: m_maximumRotation;return m_maximumRotation; never executed: }return m_maximumRotation; | 0 |
48 | void setMaximumRotation(qreal maximumRotation); | - |
49 | - | |
50 | PinchOrigin pinchOrigin() const { return never executed: m_pinchOrigin;return m_pinchOrigin; never executed: }return m_pinchOrigin; | 0 |
51 | void setPinchOrigin(PinchOrigin pinchOrigin); | - |
52 | - | |
53 | QVector2D translation() const { return never executed: m_activeTranslation;return m_activeTranslation; never executed: }return m_activeTranslation; | 0 |
54 | qreal scale() const { return never executed: m_accumulatedScale;return m_accumulatedScale; never executed: }return m_accumulatedScale; | 0 |
55 | qreal activeScale() const { return executed 2 times by 1 test: m_activeScale;return m_activeScale; Executed by:
executed 2 times by 1 test: }return m_activeScale; Executed by:
| 2 |
56 | qreal rotation() const { return executed 8 times by 1 test: m_activeRotation;return m_activeRotation; Executed by:
executed 8 times by 1 test: }return m_activeRotation; Executed by:
| 8 |
57 | qreal minimumX() const { return never executed: m_minimumX;return m_minimumX; never executed: }return m_minimumX; | 0 |
58 | void setMinimumX(qreal minX); | - |
59 | qreal maximumX() const { return never executed: m_maximumX;return m_maximumX; never executed: }return m_maximumX; | 0 |
60 | void setMaximumX(qreal maxX); | - |
61 | qreal minimumY() const { return never executed: m_minimumY;return m_minimumY; never executed: }return m_minimumY; | 0 |
62 | void setMinimumY(qreal minY); | - |
63 | qreal maximumY() const { return never executed: m_maximumY;return m_maximumY; never executed: }return m_maximumY; | 0 |
64 | void setMaximumY(qreal maxY); | - |
65 | - | |
66 | public : | - |
67 | void minimumScaleChanged(); | - |
68 | void maximumScaleChanged(); | - |
69 | void minimumRotationChanged(); | - |
70 | void maximumRotationChanged(); | - |
71 | void minimumXChanged(); | - |
72 | void maximumXChanged(); | - |
73 | void minimumYChanged(); | - |
74 | void maximumYChanged(); | - |
75 | void pinchOriginChanged(); | - |
76 | void updated(); | - |
77 | - | |
78 | protected: | - |
79 | bool wantsPointerEvent(QQuickPointerEvent *event) override; | - |
80 | void onActiveChanged() override; | - |
81 | void handlePointerEventImpl(QQuickPointerEvent *event) override; | - |
82 | - | |
83 | private: | - |
84 | - | |
85 | qreal m_activeScale; | - |
86 | qreal m_accumulatedScale; | - |
87 | qreal m_activeRotation; | - |
88 | QVector2D m_activeTranslation; | - |
89 | - | |
90 | qreal m_minimumScale; | - |
91 | qreal m_maximumScale; | - |
92 | - | |
93 | qreal m_minimumRotation; | - |
94 | qreal m_maximumRotation; | - |
95 | - | |
96 | qreal m_minimumX; | - |
97 | qreal m_maximumX; | - |
98 | qreal m_minimumY; | - |
99 | qreal m_maximumY; | - |
100 | - | |
101 | PinchOrigin m_pinchOrigin; | - |
102 | - | |
103 | - | |
104 | qreal m_startScale; | - |
105 | qreal m_startRotation; | - |
106 | qreal m_startDistance; | - |
107 | QPointF m_startPos; | - |
108 | - | |
109 | QVector<PointData> m_startAngles; | - |
110 | QMatrix4x4 m_startMatrix; | - |
111 | QQuickMatrix4x4 m_transform; | - |
112 | - | |
113 | }; | - |
114 | - | |
115 | - | |
116 | - | |
117 | template <> struct QMetaTypeId< QQuickPinchHandler * > { 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< QQuickPinchHandler * >("QQuickPinchHandler *", reinterpret_cast< QQuickPinchHandler * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPinchHandler> > { 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<QQuickPinchHandler> >("QQmlListProperty<QQuickPinchHandler>", reinterpret_cast< QQmlListProperty<QQuickPinchHandler> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |