Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlvaluetype_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class __attribute__((visibility("default"))) QQmlValueType : public QObject, public QAbstractDynamicMetaObject | - |
6 | { | - |
7 | public: | - |
8 | QQmlValueType(int userType, const QMetaObject *metaObject); | - |
9 | ~QQmlValueType() override; | - |
10 | void read(QObject *, int); | - |
11 | void write(QObject *, int, QQmlPropertyData::WriteFlags flags); | - |
12 | QVariant value(); | - |
13 | void setValue(const QVariant &); | - |
14 | - | |
15 | - | |
16 | QAbstractDynamicMetaObject *toDynamicMetaObject(QObject *) override; | - |
17 | void objectDestroyed(QObject *) override; | - |
18 | int metaCall(QObject *obj, QMetaObject::Call type, int _id, void **argv) override; | - |
19 | - | |
20 | - | |
21 | private: | - |
22 | const QMetaObject *_metaObject; | - |
23 | void *gadgetPtr; | - |
24 | - | |
25 | public: | - |
26 | int typeId; | - |
27 | QMetaType metaType; | - |
28 | }; | - |
29 | - | |
30 | class __attribute__((visibility("default"))) QQmlValueTypeFactory | - |
31 | { | - |
32 | public: | - |
33 | static bool isValueType(int); | - |
34 | static QQmlValueType *valueType(int idx); | - |
35 | static const QMetaObject *metaObjectForMetaType(int type); | - |
36 | - | |
37 | static void registerValueTypes(const char *uri, int versionMajor, int versionMinor); | - |
38 | }; | - |
39 | - | |
40 | struct QQmlPointFValueType | - |
41 | { | - |
42 | QPointF v; | - |
43 | - | |
44 | - | |
45 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
46 | #pragma GCC diagnostic push | - |
47 | - | |
48 | #pragma GCC diagnostic ignored "-Wattributes" | - |
49 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
50 | #pragma GCC diagnostic pop | - |
51 | - | |
52 | public: | - |
53 | QString toString() const; | - |
54 | qreal x() const; | - |
55 | qreal y() const; | - |
56 | void setX(qreal); | - |
57 | void setY(qreal); | - |
58 | }; | - |
59 | - | |
60 | struct QQmlPointValueType | - |
61 | { | - |
62 | QPoint v; | - |
63 | - | |
64 | - | |
65 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
66 | #pragma GCC diagnostic push | - |
67 | - | |
68 | #pragma GCC diagnostic ignored "-Wattributes" | - |
69 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
70 | #pragma GCC diagnostic pop | - |
71 | - | |
72 | public: | - |
73 | int x() const; | - |
74 | int y() const; | - |
75 | void setX(int); | - |
76 | void setY(int); | - |
77 | }; | - |
78 | - | |
79 | struct QQmlSizeFValueType | - |
80 | { | - |
81 | QSizeF v; | - |
82 | - | |
83 | - | |
84 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
85 | #pragma GCC diagnostic push | - |
86 | - | |
87 | #pragma GCC diagnostic ignored "-Wattributes" | - |
88 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
89 | #pragma GCC diagnostic pop | - |
90 | - | |
91 | public: | - |
92 | QString toString() const; | - |
93 | qreal width() const; | - |
94 | qreal height() const; | - |
95 | void setWidth(qreal); | - |
96 | void setHeight(qreal); | - |
97 | }; | - |
98 | - | |
99 | struct QQmlSizeValueType | - |
100 | { | - |
101 | QSize v; | - |
102 | - | |
103 | - | |
104 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
105 | #pragma GCC diagnostic push | - |
106 | - | |
107 | #pragma GCC diagnostic ignored "-Wattributes" | - |
108 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
109 | #pragma GCC diagnostic pop | - |
110 | - | |
111 | public: | - |
112 | int width() const; | - |
113 | int height() const; | - |
114 | void setWidth(int); | - |
115 | void setHeight(int); | - |
116 | }; | - |
117 | - | |
118 | struct QQmlRectFValueType | - |
119 | { | - |
120 | QRectF v; | - |
121 | - | |
122 | - | |
123 | - | |
124 | - | |
125 | - | |
126 | - | |
127 | - | |
128 | - | |
129 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
130 | #pragma GCC diagnostic push | - |
131 | - | |
132 | #pragma GCC diagnostic ignored "-Wattributes" | - |
133 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
134 | #pragma GCC diagnostic pop | - |
135 | - | |
136 | public: | - |
137 | QString toString() const; | - |
138 | qreal x() const; | - |
139 | qreal y() const; | - |
140 | void setX(qreal); | - |
141 | void setY(qreal); | - |
142 | - | |
143 | qreal width() const; | - |
144 | qreal height() const; | - |
145 | void setWidth(qreal); | - |
146 | void setHeight(qreal); | - |
147 | - | |
148 | qreal left() const; | - |
149 | qreal right() const; | - |
150 | qreal top() const; | - |
151 | qreal bottom() const; | - |
152 | }; | - |
153 | - | |
154 | struct QQmlRectValueType | - |
155 | { | - |
156 | QRect v; | - |
157 | - | |
158 | - | |
159 | - | |
160 | - | |
161 | - | |
162 | - | |
163 | - | |
164 | - | |
165 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
166 | #pragma GCC diagnostic push | - |
167 | - | |
168 | #pragma GCC diagnostic ignored "-Wattributes" | - |
169 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
170 | #pragma GCC diagnostic pop | - |
171 | - | |
172 | public: | - |
173 | int x() const; | - |
174 | int y() const; | - |
175 | void setX(int); | - |
176 | void setY(int); | - |
177 | - | |
178 | int width() const; | - |
179 | int height() const; | - |
180 | void setWidth(int); | - |
181 | void setHeight(int); | - |
182 | - | |
183 | int left() const; | - |
184 | int right() const; | - |
185 | int top() const; | - |
186 | int bottom() const; | - |
187 | }; | - |
188 | - | |
189 | struct QQmlEasingValueType | - |
190 | { | - |
191 | QEasingCurve v; | - |
192 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
193 | #pragma GCC diagnostic push | - |
194 | - | |
195 | #pragma GCC diagnostic ignored "-Wattributes" | - |
196 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
197 | #pragma GCC diagnostic pop | - |
198 | - | |
199 | - | |
200 | - | |
201 | - | |
202 | - | |
203 | - | |
204 | - | |
205 | public: | - |
206 | enum Type { | - |
207 | Linear = QEasingCurve::Linear, | - |
208 | InQuad = QEasingCurve::InQuad, OutQuad = QEasingCurve::OutQuad, | - |
209 | InOutQuad = QEasingCurve::InOutQuad, OutInQuad = QEasingCurve::OutInQuad, | - |
210 | InCubic = QEasingCurve::InCubic, OutCubic = QEasingCurve::OutCubic, | - |
211 | InOutCubic = QEasingCurve::InOutCubic, OutInCubic = QEasingCurve::OutInCubic, | - |
212 | InQuart = QEasingCurve::InQuart, OutQuart = QEasingCurve::OutQuart, | - |
213 | InOutQuart = QEasingCurve::InOutQuart, OutInQuart = QEasingCurve::OutInQuart, | - |
214 | InQuint = QEasingCurve::InQuint, OutQuint = QEasingCurve::OutQuint, | - |
215 | InOutQuint = QEasingCurve::InOutQuint, OutInQuint = QEasingCurve::OutInQuint, | - |
216 | InSine = QEasingCurve::InSine, OutSine = QEasingCurve::OutSine, | - |
217 | InOutSine = QEasingCurve::InOutSine, OutInSine = QEasingCurve::OutInSine, | - |
218 | InExpo = QEasingCurve::InExpo, OutExpo = QEasingCurve::OutExpo, | - |
219 | InOutExpo = QEasingCurve::InOutExpo, OutInExpo = QEasingCurve::OutInExpo, | - |
220 | InCirc = QEasingCurve::InCirc, OutCirc = QEasingCurve::OutCirc, | - |
221 | InOutCirc = QEasingCurve::InOutCirc, OutInCirc = QEasingCurve::OutInCirc, | - |
222 | InElastic = QEasingCurve::InElastic, OutElastic = QEasingCurve::OutElastic, | - |
223 | InOutElastic = QEasingCurve::InOutElastic, OutInElastic = QEasingCurve::OutInElastic, | - |
224 | InBack = QEasingCurve::InBack, OutBack = QEasingCurve::OutBack, | - |
225 | InOutBack = QEasingCurve::InOutBack, OutInBack = QEasingCurve::OutInBack, | - |
226 | InBounce = QEasingCurve::InBounce, OutBounce = QEasingCurve::OutBounce, | - |
227 | InOutBounce = QEasingCurve::InOutBounce, OutInBounce = QEasingCurve::OutInBounce, | - |
228 | InCurve = QEasingCurve::InCurve, OutCurve = QEasingCurve::OutCurve, | - |
229 | SineCurve = QEasingCurve::SineCurve, CosineCurve = QEasingCurve::CosineCurve, | - |
230 | Bezier = QEasingCurve::BezierSpline | - |
231 | }; | - |
232 | friend constexpr const QMetaObject *qt_getEnumMetaObject(Type) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(Type) noexcept { return "Type"; } | - |
233 | - | |
234 | Type type() const; | - |
235 | qreal amplitude() const; | - |
236 | qreal overshoot() const; | - |
237 | qreal period() const; | - |
238 | void setType(Type); | - |
239 | void setAmplitude(qreal); | - |
240 | void setOvershoot(qreal); | - |
241 | void setPeriod(qreal); | - |
242 | void setBezierCurve(const QVariantList &); | - |
243 | QVariantList bezierCurve() const; | - |
244 | }; | - |
245 | - | |
246 | template<typename T> | - |
247 | int qmlRegisterValueTypeEnums(const char *uri, int versionMajor, int versionMinor, const char *qmlName) | - |
248 | { | - |
249 | QByteArray name(T::staticMetaObject.className()); | - |
250 | - | |
251 | QByteArray pointerName(name + '*'); | - |
252 | - | |
253 | QQmlPrivate::RegisterType type = { | - |
254 | 0, | - |
255 | - | |
256 | qRegisterNormalizedMetaType<T *>(pointerName.constData()), 0, 0, nullptr, | - |
257 | - | |
258 | QString(), | - |
259 | - | |
260 | uri, versionMajor, versionMinor, qmlName, &T::staticMetaObject, | - |
261 | - | |
262 | nullptr, nullptr, | - |
263 | - | |
264 | 0, 0, 0, | - |
265 | - | |
266 | nullptr, nullptr, | - |
267 | - | |
268 | nullptr, | - |
269 | 0 | - |
270 | }; | - |
271 | - | |
272 | return executed 752 times by 133 tests: QQmlPrivate::qmlregister(QQmlPrivate::TypeRegistration, &type);return QQmlPrivate::qmlregister(QQmlPrivate::TypeRegistration, &type); Executed by:
executed 752 times by 133 tests: return QQmlPrivate::qmlregister(QQmlPrivate::TypeRegistration, &type); Executed by:
| 752 |
273 | } | - |
274 | - | |
275 | - | |
Switch to Source code | Preprocessed file |