1/****************************************************************************
2** Meta object code from reading C++ file 'qgraphicsitem.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "graphicsview/qgraphicsitem.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qgraphicsitem.h' doesn't include <QObject>."
15#elif Q_MOC_OUTPUT_REVISION != 68
16#error "This file was generated using the moc from 6.0.0. It"
17#error "cannot be used with the include files from this version of Qt."
18#error "(The moc has changed too much.)"
19#endif
20
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QGraphicsObject_t {
25 const uint offsetsAndSize[68];
26 char stringdata0[390];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QGraphicsObject_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QGraphicsObject_t qt_meta_stringdata_QGraphicsObject = {
31 {
32QT_MOC_LITERAL(0, 15), // "QGraphicsObject"
33QT_MOC_LITERAL(16, 15), // "DefaultProperty"
34QT_MOC_LITERAL(32, 8), // "children"
35QT_MOC_LITERAL(41, 13), // "parentChanged"
36QT_MOC_LITERAL(55, 0), // ""
37QT_MOC_LITERAL(56, 14), // "opacityChanged"
38QT_MOC_LITERAL(71, 14), // "visibleChanged"
39QT_MOC_LITERAL(86, 14), // "enabledChanged"
40QT_MOC_LITERAL(101, 8), // "xChanged"
41QT_MOC_LITERAL(110, 8), // "yChanged"
42QT_MOC_LITERAL(119, 8), // "zChanged"
43QT_MOC_LITERAL(128, 15), // "rotationChanged"
44QT_MOC_LITERAL(144, 12), // "scaleChanged"
45QT_MOC_LITERAL(157, 15), // "childrenChanged"
46QT_MOC_LITERAL(173, 12), // "widthChanged"
47QT_MOC_LITERAL(186, 13), // "heightChanged"
48QT_MOC_LITERAL(200, 16), // "updateMicroFocus"
49QT_MOC_LITERAL(217, 6), // "parent"
50QT_MOC_LITERAL(224, 16), // "QGraphicsObject*"
51QT_MOC_LITERAL(241, 7), // "opacity"
52QT_MOC_LITERAL(249, 7), // "enabled"
53QT_MOC_LITERAL(257, 7), // "visible"
54QT_MOC_LITERAL(265, 3), // "pos"
55QT_MOC_LITERAL(269, 1), // "x"
56QT_MOC_LITERAL(271, 1), // "y"
57QT_MOC_LITERAL(273, 1), // "z"
58QT_MOC_LITERAL(275, 8), // "rotation"
59QT_MOC_LITERAL(284, 5), // "scale"
60QT_MOC_LITERAL(290, 20), // "transformOriginPoint"
61QT_MOC_LITERAL(311, 6), // "effect"
62QT_MOC_LITERAL(318, 16), // "QGraphicsEffect*"
63QT_MOC_LITERAL(335, 41), // "QDeclarativeListProperty<QGra..."
64QT_MOC_LITERAL(377, 5), // "width"
65QT_MOC_LITERAL(383, 6) // "height"
66
67 },
68 "QGraphicsObject\0DefaultProperty\0"
69 "children\0parentChanged\0\0opacityChanged\0"
70 "visibleChanged\0enabledChanged\0xChanged\0"
71 "yChanged\0zChanged\0rotationChanged\0"
72 "scaleChanged\0childrenChanged\0widthChanged\0"
73 "heightChanged\0updateMicroFocus\0parent\0"
74 "QGraphicsObject*\0opacity\0enabled\0"
75 "visible\0pos\0x\0y\0z\0rotation\0scale\0"
76 "transformOriginPoint\0effect\0"
77 "QGraphicsEffect*\0"
78 "QDeclarativeListProperty<QGraphicsObject>\0"
79 "width\0height"
80};
81#undef QT_MOC_LITERAL
82
83static const uint qt_meta_data_QGraphicsObject[] = {
84
85 // content:
86 9, // revision
87 0, // classname
88 1, 14, // classinfo
89 13, 16, // methods
90 15, 107, // properties
91 0, 0, // enums/sets
92 0, 0, // constructors
93 0, // flags
94 12, // signalCount
95
96 // classinfo: key, value
97 1, 2,
98
99 // signals: name, argc, parameters, tag, flags, initial metatype offsets
100 3, 0, 94, 4, 0x06, 15 /* Public */,
101 5, 0, 95, 4, 0x06, 16 /* Public */,
102 6, 0, 96, 4, 0x06, 17 /* Public */,
103 7, 0, 97, 4, 0x06, 18 /* Public */,
104 8, 0, 98, 4, 0x06, 19 /* Public */,
105 9, 0, 99, 4, 0x06, 20 /* Public */,
106 10, 0, 100, 4, 0x06, 21 /* Public */,
107 11, 0, 101, 4, 0x06, 22 /* Public */,
108 12, 0, 102, 4, 0x06, 23 /* Public */,
109 13, 0, 103, 4, 0x06, 24 /* Public */,
110 14, 0, 104, 4, 0x06, 25 /* Public */,
111 15, 0, 105, 4, 0x06, 26 /* Public */,
112
113 // slots: name, argc, parameters, tag, flags, initial metatype offsets
114 16, 0, 106, 4, 0x09, 27 /* Protected */,
115
116 // signals: parameters
117 QMetaType::Void,
118 QMetaType::Void,
119 QMetaType::Void,
120 QMetaType::Void,
121 QMetaType::Void,
122 QMetaType::Void,
123 QMetaType::Void,
124 QMetaType::Void,
125 QMetaType::Void,
126 QMetaType::Void,
127 QMetaType::Void,
128 QMetaType::Void,
129
130 // slots: parameters
131 QMetaType::Void,
132
133 // properties: name, type, flags
134 17, 0x80000000 | 18, 0x0001400b, uint(0), 0,
135 19, QMetaType::QReal, 0x00015903, uint(1), 0,
136 20, QMetaType::Bool, 0x00015103, uint(3), 0,
137 21, QMetaType::Bool, 0x00015903, uint(2), 0,
138 22, QMetaType::QPointF, 0x00015903, uint(-1), 0,
139 23, QMetaType::QReal, 0x00015903, uint(4), 0,
140 24, QMetaType::QReal, 0x00015903, uint(5), 0,
141 25, QMetaType::QReal, 0x00015803, uint(6), 0,
142 26, QMetaType::QReal, 0x00015103, uint(7), 0,
143 27, QMetaType::QReal, 0x00015103, uint(8), 0,
144 28, QMetaType::QPointF, 0x00015103, uint(-1), 0,
145 29, 0x80000000 | 30, 0x0001500b, uint(-1), 0,
146 2, 0x80000000 | 31, 0x00014009, uint(9), 0,
147 32, QMetaType::QReal, 0x00015907, uint(10), 0,
148 33, QMetaType::QReal, 0x00015907, uint(11), 0,
149
150 0 // eod
151};
152
153void QGraphicsObject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
154{
155 if (_c == QMetaObject::InvokeMetaMethod) {
156 Q_ASSERT(staticMetaObject.cast(_o));
157 auto *_t = static_cast<QGraphicsObject *>(_o);
158 Q_UNUSED(_t)
159 switch (_id) {
160 case 0: _t->parentChanged(); break;
161 case 1: _t->opacityChanged(); break;
162 case 2: _t->visibleChanged(); break;
163 case 3: _t->enabledChanged(); break;
164 case 4: _t->xChanged(); break;
165 case 5: _t->yChanged(); break;
166 case 6: _t->zChanged(); break;
167 case 7: _t->rotationChanged(); break;
168 case 8: _t->scaleChanged(); break;
169 case 9: _t->childrenChanged(); break;
170 case 10: _t->widthChanged(); break;
171 case 11: _t->heightChanged(); break;
172 case 12: _t->updateMicroFocus(); break;
173 default: ;
174 }
175 } else if (_c == QMetaObject::IndexOfMethod) {
176 int *result = reinterpret_cast<int *>(_a[0]);
177 {
178 using _t = void (QGraphicsObject::*)();
179 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::parentChanged)) {
180 *result = 0;
181 return;
182 }
183 }
184 {
185 using _t = void (QGraphicsObject::*)();
186 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::opacityChanged)) {
187 *result = 1;
188 return;
189 }
190 }
191 {
192 using _t = void (QGraphicsObject::*)();
193 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::visibleChanged)) {
194 *result = 2;
195 return;
196 }
197 }
198 {
199 using _t = void (QGraphicsObject::*)();
200 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::enabledChanged)) {
201 *result = 3;
202 return;
203 }
204 }
205 {
206 using _t = void (QGraphicsObject::*)();
207 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::xChanged)) {
208 *result = 4;
209 return;
210 }
211 }
212 {
213 using _t = void (QGraphicsObject::*)();
214 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::yChanged)) {
215 *result = 5;
216 return;
217 }
218 }
219 {
220 using _t = void (QGraphicsObject::*)();
221 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::zChanged)) {
222 *result = 6;
223 return;
224 }
225 }
226 {
227 using _t = void (QGraphicsObject::*)();
228 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::rotationChanged)) {
229 *result = 7;
230 return;
231 }
232 }
233 {
234 using _t = void (QGraphicsObject::*)();
235 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::scaleChanged)) {
236 *result = 8;
237 return;
238 }
239 }
240 {
241 using _t = void (QGraphicsObject::*)();
242 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::childrenChanged)) {
243 *result = 9;
244 return;
245 }
246 }
247 {
248 using _t = void (QGraphicsObject::*)();
249 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::widthChanged)) {
250 *result = 10;
251 return;
252 }
253 }
254 {
255 using _t = void (QGraphicsObject::*)();
256 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsObject::heightChanged)) {
257 *result = 11;
258 return;
259 }
260 }
261 } else if (_c == QMetaObject::RegisterPropertyMetaType) {
262 switch (_id) {
263 default: *reinterpret_cast<int*>(_a[0]) = -1; break;
264 case 0:
265 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsObject* >(); break;
266 }
267 }
268
269#ifndef QT_NO_PROPERTIES
270 else if (_c == QMetaObject::ReadProperty) {
271 Q_ASSERT(staticMetaObject.cast(_o));
272 auto *_t = static_cast<QGraphicsObject *>(_o);
273 Q_UNUSED(_t)
274 void *_v = _a[0];
275 switch (_id) {
276 case 0: *reinterpret_cast< QGraphicsObject**>(_v) = _t->parentObject(); break;
277 case 1: *reinterpret_cast< qreal*>(_v) = _t->opacity(); break;
278 case 2: *reinterpret_cast< bool*>(_v) = _t->isEnabled(); break;
279 case 3: *reinterpret_cast< bool*>(_v) = _t->isVisible(); break;
280 case 4: *reinterpret_cast< QPointF*>(_v) = _t->pos(); break;
281 case 5: *reinterpret_cast< qreal*>(_v) = _t->x(); break;
282 case 6: *reinterpret_cast< qreal*>(_v) = _t->y(); break;
283 case 7: *reinterpret_cast< qreal*>(_v) = _t->zValue(); break;
284 case 8: *reinterpret_cast< qreal*>(_v) = _t->rotation(); break;
285 case 9: *reinterpret_cast< qreal*>(_v) = _t->scale(); break;
286 case 10: *reinterpret_cast< QPointF*>(_v) = _t->transformOriginPoint(); break;
287 case 11: *reinterpret_cast< QGraphicsEffect**>(_v) = _t->graphicsEffect(); break;
288 case 12: *reinterpret_cast< QDeclarativeListProperty<QGraphicsObject>*>(_v) = _t->QGraphicsItem::d_func()->childrenList(); break;
289 case 13: *reinterpret_cast< qreal*>(_v) = _t->QGraphicsItem::d_func()->width(); break;
290 case 14: *reinterpret_cast< qreal*>(_v) = _t->QGraphicsItem::d_func()->height(); break;
291 default: break;
292 }
293 } else if (_c == QMetaObject::WriteProperty) {
294 Q_ASSERT(staticMetaObject.cast(_o));
295 auto *_t = static_cast<QGraphicsObject *>(_o);
296 Q_UNUSED(_t)
297 void *_v = _a[0];
298 switch (_id) {
299 case 0: _t->setParentItem(*reinterpret_cast< QGraphicsObject**>(_v)); break;
300 case 1: _t->setOpacity(*reinterpret_cast< qreal*>(_v)); break;
301 case 2: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break;
302 case 3: _t->setVisible(*reinterpret_cast< bool*>(_v)); break;
303 case 4: _t->setPos(*reinterpret_cast< QPointF*>(_v)); break;
304 case 5: _t->setX(*reinterpret_cast< qreal*>(_v)); break;
305 case 6: _t->setY(*reinterpret_cast< qreal*>(_v)); break;
306 case 7: _t->setZValue(*reinterpret_cast< qreal*>(_v)); break;
307 case 8: _t->setRotation(*reinterpret_cast< qreal*>(_v)); break;
308 case 9: _t->setScale(*reinterpret_cast< qreal*>(_v)); break;
309 case 10: _t->setTransformOriginPoint(*reinterpret_cast< QPointF*>(_v)); break;
310 case 11: _t->setGraphicsEffect(*reinterpret_cast< QGraphicsEffect**>(_v)); break;
311 case 13: _t->QGraphicsItem::d_func()->setWidth(*reinterpret_cast< qreal*>(_v)); break;
312 case 14: _t->QGraphicsItem::d_func()->setHeight(*reinterpret_cast< qreal*>(_v)); break;
313 default: break;
314 }
315 } else if (_c == QMetaObject::ResetProperty) {
316 Q_ASSERT(staticMetaObject.cast(_o));
317 auto *_t = static_cast<QGraphicsObject *>(_o);
318 Q_UNUSED(_t)
319 switch (_id) {
320 case 13: _t->QGraphicsItem::d_func()->resetWidth(); break;
321 case 14: _t->QGraphicsItem::d_func()->resetHeight(); break;
322 default: break;
323 }
324 } else if (_c == QMetaObject::BindableProperty) {
325 }
326#endif // QT_NO_PROPERTIES
327}
328
329const QMetaObject QGraphicsObject::staticMetaObject = { {
330 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
331 qt_meta_stringdata_QGraphicsObject.offsetsAndSize,
332 qt_meta_data_QGraphicsObject,
333 qt_static_metacall,
334 nullptr,
335qt_incomplete_metaTypeArray<qt_meta_stringdata_QGraphicsObject_t
336, QtPrivate::TypeAndForceComplete<QGraphicsObject*, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QPointF, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<QPointF, std::true_type>, QtPrivate::TypeAndForceComplete<QGraphicsEffect*, std::true_type>, QtPrivate::TypeAndForceComplete<QDeclarativeListProperty<QGraphicsObject>, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
337, QtPrivate::TypeAndForceComplete<void, std::false_type>
338
339
340>,
341 nullptr
342} };
343
344
345const QMetaObject *QGraphicsObject::metaObject() const
346{
347 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
348}
349
350void *QGraphicsObject::qt_metacast(const char *_clname)
351{
352 if (!_clname) return nullptr;
353 if (!strcmp(_clname, qt_meta_stringdata_QGraphicsObject.stringdata0))
354 return static_cast<void*>(this);
355 if (!strcmp(_clname, "QGraphicsItem"))
356 return static_cast< QGraphicsItem*>(this);
357 if (!strcmp(_clname, "org.qt-project.Qt.QGraphicsItem"))
358 return static_cast< QGraphicsItem*>(this);
359 return QObject::qt_metacast(_clname);
360}
361
362int QGraphicsObject::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
363{
364 _id = QObject::qt_metacall(_c, _id, _a);
365 if (_id < 0)
366 return _id;
367 if (_c == QMetaObject::InvokeMetaMethod) {
368 if (_id < 13)
369 qt_static_metacall(this, _c, _id, _a);
370 _id -= 13;
371 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
372 if (_id < 13)
373 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
374 _id -= 13;
375 }
376#ifndef QT_NO_PROPERTIES
377 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
378 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
379 || _c == QMetaObject::RegisterPropertyMetaType) {
380 qt_static_metacall(this, _c, _id, _a);
381 _id -= 15;
382 }
383#endif // QT_NO_PROPERTIES
384 return _id;
385}
386
387// SIGNAL 0
388void QGraphicsObject::parentChanged()
389{
390 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
391}
392
393// SIGNAL 1
394void QGraphicsObject::opacityChanged()
395{
396 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
397}
398
399// SIGNAL 2
400void QGraphicsObject::visibleChanged()
401{
402 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
403}
404
405// SIGNAL 3
406void QGraphicsObject::enabledChanged()
407{
408 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
409}
410
411// SIGNAL 4
412void QGraphicsObject::xChanged()
413{
414 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
415}
416
417// SIGNAL 5
418void QGraphicsObject::yChanged()
419{
420 QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
421}
422
423// SIGNAL 6
424void QGraphicsObject::zChanged()
425{
426 QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
427}
428
429// SIGNAL 7
430void QGraphicsObject::rotationChanged()
431{
432 QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
433}
434
435// SIGNAL 8
436void QGraphicsObject::scaleChanged()
437{
438 QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
439}
440
441// SIGNAL 9
442void QGraphicsObject::childrenChanged()
443{
444 QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
445}
446
447// SIGNAL 10
448void QGraphicsObject::widthChanged()
449{
450 QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
451}
452
453// SIGNAL 11
454void QGraphicsObject::heightChanged()
455{
456 QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
457}
458struct qt_meta_stringdata_QGraphicsTextItem_t {
459 const uint offsetsAndSize[14];
460 char stringdata0[94];
461};
462#define QT_MOC_LITERAL(ofs, len) \
463 uint(offsetof(qt_meta_stringdata_QGraphicsTextItem_t, stringdata0) + ofs), len
464static const qt_meta_stringdata_QGraphicsTextItem_t qt_meta_stringdata_QGraphicsTextItem = {
465 {
466QT_MOC_LITERAL(0, 17), // "QGraphicsTextItem"
467QT_MOC_LITERAL(18, 13), // "linkActivated"
468QT_MOC_LITERAL(32, 0), // ""
469QT_MOC_LITERAL(33, 11), // "linkHovered"
470QT_MOC_LITERAL(45, 21), // "_q_updateBoundingRect"
471QT_MOC_LITERAL(67, 9), // "_q_update"
472QT_MOC_LITERAL(77, 16) // "_q_ensureVisible"
473
474 },
475 "QGraphicsTextItem\0linkActivated\0\0"
476 "linkHovered\0_q_updateBoundingRect\0"
477 "_q_update\0_q_ensureVisible"
478};
479#undef QT_MOC_LITERAL
480
481static const uint qt_meta_data_QGraphicsTextItem[] = {
482
483 // content:
484 9, // revision
485 0, // classname
486 0, 0, // classinfo
487 5, 14, // methods
488 0, 0, // properties
489 0, 0, // enums/sets
490 0, 0, // constructors
491 0, // flags
492 2, // signalCount
493
494 // signals: name, argc, parameters, tag, flags, initial metatype offsets
495 1, 1, 44, 2, 0x06, 0 /* Public */,
496 3, 1, 47, 2, 0x06, 2 /* Public */,
497
498 // slots: name, argc, parameters, tag, flags, initial metatype offsets
499 4, 1, 50, 2, 0x08, 4 /* Private */,
500 5, 1, 53, 2, 0x08, 6 /* Private */,
501 6, 1, 56, 2, 0x08, 8 /* Private */,
502
503 // signals: parameters
504 QMetaType::Void, QMetaType::QString, 2,
505 QMetaType::Void, QMetaType::QString, 2,
506
507 // slots: parameters
508 QMetaType::Void, QMetaType::QSizeF, 2,
509 QMetaType::Void, QMetaType::QRectF, 2,
510 QMetaType::Void, QMetaType::QRectF, 2,
511
512 0 // eod
513};
514
515void QGraphicsTextItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
516{
517 if (_c == QMetaObject::InvokeMetaMethod) {
518 Q_ASSERT(staticMetaObject.cast(_o));
519 auto *_t = static_cast<QGraphicsTextItem *>(_o);
520 Q_UNUSED(_t)
521 switch (_id) {
522 case 0: _t->linkActivated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
523 case 1: _t->linkHovered((*reinterpret_cast< const QString(*)>(_a[1]))); break;
524 case 2: _t->dd->_q_updateBoundingRect((*reinterpret_cast< const QSizeF(*)>(_a[1]))); break;
525 case 3: _t->dd->_q_update((*reinterpret_cast< QRectF(*)>(_a[1]))); break;
526 case 4: _t->dd->_q_ensureVisible((*reinterpret_cast< QRectF(*)>(_a[1]))); break;
527 default: ;
528 }
529 } else if (_c == QMetaObject::IndexOfMethod) {
530 int *result = reinterpret_cast<int *>(_a[0]);
531 {
532 using _t = void (QGraphicsTextItem::*)(const QString & );
533 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsTextItem::linkActivated)) {
534 *result = 0;
535 return;
536 }
537 }
538 {
539 using _t = void (QGraphicsTextItem::*)(const QString & );
540 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsTextItem::linkHovered)) {
541 *result = 1;
542 return;
543 }
544 }
545 }
546}
547
548const QMetaObject QGraphicsTextItem::staticMetaObject = { {
549 QMetaObject::SuperData::link<QGraphicsObject::staticMetaObject>(),
550 qt_meta_stringdata_QGraphicsTextItem.offsetsAndSize,
551 qt_meta_data_QGraphicsTextItem,
552 qt_static_metacall,
553 nullptr,
554qt_incomplete_metaTypeArray<qt_meta_stringdata_QGraphicsTextItem_t
555, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>
556, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QSizeF &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QRectF, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QRectF, std::false_type>
557
558
559>,
560 nullptr
561} };
562
563
564const QMetaObject *QGraphicsTextItem::metaObject() const
565{
566 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
567}
568
569void *QGraphicsTextItem::qt_metacast(const char *_clname)
570{
571 if (!_clname) return nullptr;
572 if (!strcmp(_clname, qt_meta_stringdata_QGraphicsTextItem.stringdata0))
573 return static_cast<void*>(this);
574 return QGraphicsObject::qt_metacast(_clname);
575}
576
577int QGraphicsTextItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
578{
579 _id = QGraphicsObject::qt_metacall(_c, _id, _a);
580 if (_id < 0)
581 return _id;
582 if (_c == QMetaObject::InvokeMetaMethod) {
583 if (_id < 5)
584 qt_static_metacall(this, _c, _id, _a);
585 _id -= 5;
586 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
587 if (_id < 5)
588 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
589 _id -= 5;
590 }
591 return _id;
592}
593
594// SIGNAL 0
595void QGraphicsTextItem::linkActivated(const QString & _t1)
596{
597 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
598 QMetaObject::activate(this, &staticMetaObject, 0, _a);
599}
600
601// SIGNAL 1
602void QGraphicsTextItem::linkHovered(const QString & _t1)
603{
604 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
605 QMetaObject::activate(this, &staticMetaObject, 1, _a);
606}
607QT_WARNING_POP
608QT_END_MOC_NAMESPACE
609