OpenCoverage

moc_qquicktextmetrics_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquicktextmetrics_p.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3#pragma GCC diagnostic push-
4-
5-
6#pragma GCC diagnostic ignored "-Wdeprecated-declarations"-
7-
8struct qt_meta_stringdata_QQuickTextMetrics_t {-
9 QByteArrayData data[18];-
10 char stringdata0[202];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQuickTextMetrics_t qt_meta_stringdata_QQuickTextMetrics = {-
18 {-
19{ { { -1 } }, 17, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQuickTextMetrics_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 11, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQuickTextMetrics_t-
29, -
30stringdata0-
31) -
32+ 18 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQuickTextMetrics_t-
36, -
37stringdata0-
38) -
39+ 30 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 11, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQuickTextMetrics_t-
43, -
44stringdata0-
45) -
46+ 31 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 12, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQuickTextMetrics_t-
50, -
51stringdata0-
52) -
53+ 43 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 17, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQuickTextMetrics_t-
57, -
58stringdata0-
59) -
60+ 56 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 14, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQuickTextMetrics_t-
64, -
65stringdata0-
66) -
67+ 74 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 4, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQuickTextMetrics_t-
71, -
72stringdata0-
73) -
74+ 89 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 4, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQuickTextMetrics_t-
78, -
79stringdata0-
80) -
81+ 94 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 12, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQuickTextMetrics_t-
85, -
86stringdata0-
87) -
88+ 99 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 12, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQuickTextMetrics_t-
92, -
93stringdata0-
94) -
95+ 112 - 10 * sizeof(QByteArrayData)) },-
96{ { { -1 } }, 5, 0, 0, qptrdiff(-
97__builtin_offsetof (-
98qt_meta_stringdata_QQuickTextMetrics_t-
99, -
100stringdata0-
101) -
102+ 125 - 11 * sizeof(QByteArrayData)) },-
103{ { { -1 } }, 6, 0, 0, qptrdiff(-
104__builtin_offsetof (-
105qt_meta_stringdata_QQuickTextMetrics_t-
106, -
107stringdata0-
108) -
109+ 131 - 12 * sizeof(QByteArrayData)) },-
110{ { { -1 } }, 17, 0, 0, qptrdiff(-
111__builtin_offsetof (-
112qt_meta_stringdata_QQuickTextMetrics_t-
113, -
114stringdata0-
115) -
116+ 138 - 13 * sizeof(QByteArrayData)) },-
117{ { { -1 } }, 10, 0, 0, qptrdiff(-
118__builtin_offsetof (-
119qt_meta_stringdata_QQuickTextMetrics_t-
120, -
121stringdata0-
122) -
123+ 156 - 14 * sizeof(QByteArrayData)) },-
124{ { { -1 } }, 5, 0, 0, qptrdiff(-
125__builtin_offsetof (-
126qt_meta_stringdata_QQuickTextMetrics_t-
127, -
128stringdata0-
129) -
130+ 167 - 15 * sizeof(QByteArrayData)) },-
131{ { { -1 } }, 17, 0, 0, qptrdiff(-
132__builtin_offsetof (-
133qt_meta_stringdata_QQuickTextMetrics_t-
134, -
135stringdata0-
136) -
137+ 173 - 16 * sizeof(QByteArrayData)) },-
138{ { { -1 } }, 10, 0, 0, qptrdiff(-
139__builtin_offsetof (-
140qt_meta_stringdata_QQuickTextMetrics_t-
141, -
142stringdata0-
143) -
144+ 191 - 17 * sizeof(QByteArrayData)) }-
145-
146 },-
147 "QQuickTextMetrics\0fontChanged\0\0"-
148 "textChanged\0elideChanged\0elideWidthChanged\0"-
149 "metricsChanged\0font\0text\0advanceWidth\0"-
150 "boundingRect\0width\0height\0tightBoundingRect\0"-
151 "elidedText\0elide\0Qt::TextElideMode\0"-
152 "elideWidth"-
153};-
154-
155-
156static const uint qt_meta_data_QQuickTextMetrics[] = {-
157-
158-
159 7,-
160 0,-
161 0, 0,-
162 5, 14,-
163 10, 44,-
164 0, 0,-
165 0, 0,-
166 0,-
167 5,-
168-
169-
170 1, 0, 39, 2, 0x06 ,-
171 3, 0, 40, 2, 0x06 ,-
172 4, 0, 41, 2, 0x06 ,-
173 5, 0, 42, 2, 0x06 ,-
174 6, 0, 43, 2, 0x06 ,-
175-
176-
177 QMetaType::Void,-
178 QMetaType::Void,-
179 QMetaType::Void,-
180 QMetaType::Void,-
181 QMetaType::Void,-
182-
183-
184 7, QMetaType::QFont, 0x00495903,-
185 8, QMetaType::QString, 0x00495903,-
186 9, QMetaType::QReal, 0x00495801,-
187 10, QMetaType::QRectF, 0x00495801,-
188 11, QMetaType::QReal, 0x00495801,-
189 12, QMetaType::QReal, 0x00495801,-
190 13, QMetaType::QRectF, 0x00495801,-
191 14, QMetaType::QString, 0x00495801,-
192 15, 0x80000000 | 16, 0x0049590b,-
193 17, QMetaType::QReal, 0x00495903,-
194-
195-
196 0,-
197 1,-
198 4,-
199 4,-
200 4,-
201 4,-
202 4,-
203 4,-
204 2,-
205 3,-
206-
207 0-
208};-
209-
210void QQuickTextMetrics::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
211{-
212 if (_c == QMetaObject::InvokeMetaMethod) {-
213 QQuickTextMetrics *_t = static_cast<QQuickTextMetrics *>(_o);-
214 (void)_t;-
215 switch (_id) {-
216 case 0: _t->fontChanged(); break;-
217 case 1: _t->textChanged(); break;-
218 case 2: _t->elideChanged(); break;-
219 case 3: _t->elideWidthChanged(); break;-
220 case 4: _t->metricsChanged(); break;-
221 default: ;-
222 }-
223 } else if (_c == QMetaObject::IndexOfMethod) {-
224 int *result = reinterpret_cast<int *>(_a[0]);-
225 {-
226 using _t = void (QQuickTextMetrics::*)();-
227 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTextMetrics::fontChanged)) {-
228 *result = 0;-
229 return;-
230 }-
231 }-
232 {-
233 using _t = void (QQuickTextMetrics::*)();-
234 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTextMetrics::textChanged)) {-
235 *result = 1;-
236 return;-
237 }-
238 }-
239 {-
240 using _t = void (QQuickTextMetrics::*)();-
241 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTextMetrics::elideChanged)) {-
242 *result = 2;-
243 return;-
244 }-
245 }-
246 {-
247 using _t = void (QQuickTextMetrics::*)();-
248 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTextMetrics::elideWidthChanged)) {-
249 *result = 3;-
250 return;-
251 }-
252 }-
253 {-
254 using _t = void (QQuickTextMetrics::*)();-
255 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTextMetrics::metricsChanged)) {-
256 *result = 4;-
257 return;-
258 }-
259 }-
260 }-
261-
262 else if (_c == QMetaObject::ReadProperty) {-
263 QQuickTextMetrics *_t = static_cast<QQuickTextMetrics *>(_o);-
264 (void)_t;-
265 void *_v = _a[0];-
266 switch (_id) {-
267 case 0: *reinterpret_cast< QFont*>(_v) = _t->font(); break;-
268 case 1: *reinterpret_cast< QString*>(_v) = _t->text(); break;-
269 case 2: *reinterpret_cast< qreal*>(_v) = _t->advanceWidth(); break;-
270 case 3: *reinterpret_cast< QRectF*>(_v) = _t->boundingRect(); break;-
271 case 4: *reinterpret_cast< qreal*>(_v) = _t->width(); break;-
272 case 5: *reinterpret_cast< qreal*>(_v) = _t->height(); break;-
273 case 6: *reinterpret_cast< QRectF*>(_v) = _t->tightBoundingRect(); break;-
274 case 7: *reinterpret_cast< QString*>(_v) = _t->elidedText(); break;-
275 case 8: *reinterpret_cast< Qt::TextElideMode*>(_v) = _t->elide(); break;-
276 case 9: *reinterpret_cast< qreal*>(_v) = _t->elideWidth(); break;-
277 default: break;-
278 }-
279 } else if (_c == QMetaObject::WriteProperty) {-
280 QQuickTextMetrics *_t = static_cast<QQuickTextMetrics *>(_o);-
281 (void)_t;-
282 void *_v = _a[0];-
283 switch (_id) {-
284 case 0: _t->setFont(*reinterpret_cast< QFont*>(_v)); break;-
285 case 1: _t->setText(*reinterpret_cast< QString*>(_v)); break;-
286 case 8: _t->setElide(*reinterpret_cast< Qt::TextElideMode*>(_v)); break;-
287 case 9: _t->setElideWidth(*reinterpret_cast< qreal*>(_v)); break;-
288 default: break;-
289 }-
290 } else if (_c == QMetaObject::ResetProperty) {-
291 }-
292-
293 (void)_a;;-
294}-
295-
296 const QMetaObject QQuickTextMetrics::staticMetaObject = {-
297 { &QObject::staticMetaObject, qt_meta_stringdata_QQuickTextMetrics.data,-
298 qt_meta_data_QQuickTextMetrics, qt_static_metacall, nullptr, nullptr}-
299};-
300-
301-
302const QMetaObject *QQuickTextMetrics::metaObject() const-
303{-
304 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
305}-
306-
307void *QQuickTextMetrics::qt_metacast(const char *_clname)-
308{-
309 if (!_clname) return nullptr;-
310 if (!strcmp(_clname, qt_meta_stringdata_QQuickTextMetrics.stringdata0))-
311 return static_cast<void*>(this);-
312 return QObject::qt_metacast(_clname);-
313}-
314-
315int QQuickTextMetrics::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
316{-
317 _id = QObject::qt_metacall(_c, _id, _a);-
318 if (_id < 0)-
319 return _id;-
320 if (_c == QMetaObject::InvokeMetaMethod) {-
321 if (_id < 5)-
322 qt_static_metacall(this, _c, _id, _a);-
323 _id -= 5;-
324 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
325 if (_id < 5)-
326 *reinterpret_cast<int*>(_a[0]) = -1;-
327 _id -= 5;-
328 }-
329-
330 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
331 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
332 qt_static_metacall(this, _c, _id, _a);-
333 _id -= 10;-
334 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
335 _id -= 10;-
336 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
337 _id -= 10;-
338 } else if (_c == QMetaObject::QueryPropertyStored) {-
339 _id -= 10;-
340 } else if (_c == QMetaObject::QueryPropertyEditable) {-
341 _id -= 10;-
342 } else if (_c == QMetaObject::QueryPropertyUser) {-
343 _id -= 10;-
344 }-
345-
346 return _id;-
347}-
348-
349-
350void QQuickTextMetrics::fontChanged()-
351{-
352 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
353}
never executed: end of block
0
354-
355-
356void QQuickTextMetrics::textChanged()-
357{-
358 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
359}
never executed: end of block
0
360-
361-
362void QQuickTextMetrics::elideChanged()-
363{-
364 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
365}
never executed: end of block
0
366-
367-
368void QQuickTextMetrics::elideWidthChanged()-
369{-
370 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);-
371}
never executed: end of block
0
372-
373-
374void QQuickTextMetrics::metricsChanged()-
375{-
376 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);-
377}
never executed: end of block
0
378-
379#pragma GCC diagnostic pop-
380-
381-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0