1/****************************************************************************
2** Meta object code from reading C++ file 'qgraphicsscene.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/qgraphicsscene.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#include <QtCore/QList>
14#if !defined(Q_MOC_OUTPUT_REVISION)
15#error "The header file 'qgraphicsscene.h' doesn't include <QObject>."
16#elif Q_MOC_OUTPUT_REVISION != 68
17#error "This file was generated using the moc from 6.0.0. It"
18#error "cannot be used with the include files from this version of Qt."
19#error "(The moc has changed too much.)"
20#endif
21
22QT_BEGIN_MOC_NAMESPACE
23QT_WARNING_PUSH
24QT_WARNING_DISABLE_DEPRECATED
25struct qt_meta_stringdata_QGraphicsScene_t {
26 const uint offsetsAndSize[80];
27 char stringdata0[491];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QGraphicsScene_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QGraphicsScene_t qt_meta_stringdata_QGraphicsScene = {
32 {
33QT_MOC_LITERAL(0, 14), // "QGraphicsScene"
34QT_MOC_LITERAL(15, 7), // "changed"
35QT_MOC_LITERAL(23, 0), // ""
36QT_MOC_LITERAL(24, 13), // "QList<QRectF>"
37QT_MOC_LITERAL(38, 6), // "region"
38QT_MOC_LITERAL(45, 16), // "sceneRectChanged"
39QT_MOC_LITERAL(62, 4), // "rect"
40QT_MOC_LITERAL(67, 16), // "selectionChanged"
41QT_MOC_LITERAL(84, 16), // "focusItemChanged"
42QT_MOC_LITERAL(101, 14), // "QGraphicsItem*"
43QT_MOC_LITERAL(116, 8), // "newFocus"
44QT_MOC_LITERAL(125, 8), // "oldFocus"
45QT_MOC_LITERAL(134, 15), // "Qt::FocusReason"
46QT_MOC_LITERAL(150, 6), // "reason"
47QT_MOC_LITERAL(157, 6), // "update"
48QT_MOC_LITERAL(164, 10), // "invalidate"
49QT_MOC_LITERAL(175, 11), // "SceneLayers"
50QT_MOC_LITERAL(187, 6), // "layers"
51QT_MOC_LITERAL(194, 7), // "advance"
52QT_MOC_LITERAL(202, 14), // "clearSelection"
53QT_MOC_LITERAL(217, 5), // "clear"
54QT_MOC_LITERAL(223, 18), // "focusNextPrevChild"
55QT_MOC_LITERAL(242, 4), // "next"
56QT_MOC_LITERAL(247, 14), // "_q_emitUpdated"
57QT_MOC_LITERAL(262, 14), // "_q_polishItems"
58QT_MOC_LITERAL(277, 20), // "_q_processDirtyItems"
59QT_MOC_LITERAL(298, 28), // "_q_updateScenePosDescendants"
60QT_MOC_LITERAL(327, 15), // "backgroundBrush"
61QT_MOC_LITERAL(343, 15), // "foregroundBrush"
62QT_MOC_LITERAL(359, 15), // "itemIndexMethod"
63QT_MOC_LITERAL(375, 15), // "ItemIndexMethod"
64QT_MOC_LITERAL(391, 9), // "sceneRect"
65QT_MOC_LITERAL(401, 12), // "bspTreeDepth"
66QT_MOC_LITERAL(414, 7), // "palette"
67QT_MOC_LITERAL(422, 4), // "font"
68QT_MOC_LITERAL(427, 11), // "stickyFocus"
69QT_MOC_LITERAL(439, 17), // "minimumRenderSize"
70QT_MOC_LITERAL(457, 12), // "focusOnTouch"
71QT_MOC_LITERAL(470, 12), // "BspTreeIndex"
72QT_MOC_LITERAL(483, 7) // "NoIndex"
73
74 },
75 "QGraphicsScene\0changed\0\0QList<QRectF>\0"
76 "region\0sceneRectChanged\0rect\0"
77 "selectionChanged\0focusItemChanged\0"
78 "QGraphicsItem*\0newFocus\0oldFocus\0"
79 "Qt::FocusReason\0reason\0update\0invalidate\0"
80 "SceneLayers\0layers\0advance\0clearSelection\0"
81 "clear\0focusNextPrevChild\0next\0"
82 "_q_emitUpdated\0_q_polishItems\0"
83 "_q_processDirtyItems\0_q_updateScenePosDescendants\0"
84 "backgroundBrush\0foregroundBrush\0"
85 "itemIndexMethod\0ItemIndexMethod\0"
86 "sceneRect\0bspTreeDepth\0palette\0font\0"
87 "stickyFocus\0minimumRenderSize\0"
88 "focusOnTouch\0BspTreeIndex\0NoIndex"
89};
90#undef QT_MOC_LITERAL
91
92static const uint qt_meta_data_QGraphicsScene[] = {
93
94 // content:
95 9, // revision
96 0, // classname
97 0, 0, // classinfo
98 17, 14, // methods
99 10, 153, // properties
100 1, 203, // enums/sets
101 0, 0, // constructors
102 0, // flags
103 4, // signalCount
104
105 // signals: name, argc, parameters, tag, flags, initial metatype offsets
106 1, 1, 116, 2, 0x06, 10 /* Public */,
107 5, 1, 119, 2, 0x06, 12 /* Public */,
108 7, 0, 122, 2, 0x06, 14 /* Public */,
109 8, 3, 123, 2, 0x06, 15 /* Public */,
110
111 // slots: name, argc, parameters, tag, flags, initial metatype offsets
112 14, 1, 130, 2, 0x0a, 19 /* Public */,
113 14, 0, 133, 2, 0x2a, 21 /* Public | MethodCloned */,
114 15, 2, 134, 2, 0x0a, 22 /* Public */,
115 15, 1, 139, 2, 0x2a, 25 /* Public | MethodCloned */,
116 15, 0, 142, 2, 0x2a, 27 /* Public | MethodCloned */,
117 18, 0, 143, 2, 0x0a, 28 /* Public */,
118 19, 0, 144, 2, 0x0a, 29 /* Public */,
119 20, 0, 145, 2, 0x0a, 30 /* Public */,
120 21, 1, 146, 2, 0x09, 31 /* Protected */,
121 23, 0, 149, 2, 0x08, 33 /* Private */,
122 24, 0, 150, 2, 0x08, 34 /* Private */,
123 25, 0, 151, 2, 0x08, 35 /* Private */,
124 26, 0, 152, 2, 0x08, 36 /* Private */,
125
126 // signals: parameters
127 QMetaType::Void, 0x80000000 | 3, 4,
128 QMetaType::Void, QMetaType::QRectF, 6,
129 QMetaType::Void,
130 QMetaType::Void, 0x80000000 | 9, 0x80000000 | 9, 0x80000000 | 12, 10, 11, 13,
131
132 // slots: parameters
133 QMetaType::Void, QMetaType::QRectF, 6,
134 QMetaType::Void,
135 QMetaType::Void, QMetaType::QRectF, 0x80000000 | 16, 6, 17,
136 QMetaType::Void, QMetaType::QRectF, 6,
137 QMetaType::Void,
138 QMetaType::Void,
139 QMetaType::Void,
140 QMetaType::Void,
141 QMetaType::Bool, QMetaType::Bool, 22,
142 QMetaType::Void,
143 QMetaType::Void,
144 QMetaType::Void,
145 QMetaType::Void,
146
147 // properties: name, type, flags
148 27, QMetaType::QBrush, 0x00015103, uint(-1), 0,
149 28, QMetaType::QBrush, 0x00015103, uint(-1), 0,
150 29, 0x80000000 | 30, 0x0001510b, uint(-1), 0,
151 31, QMetaType::QRectF, 0x00015103, uint(-1), 0,
152 32, QMetaType::Int, 0x00015103, uint(-1), 0,
153 33, QMetaType::QPalette, 0x00015103, uint(-1), 0,
154 34, QMetaType::QFont, 0x00015103, uint(-1), 0,
155 35, QMetaType::Bool, 0x00015103, uint(-1), 0,
156 36, QMetaType::QReal, 0x00015103, uint(-1), 0,
157 37, QMetaType::Bool, 0x00015103, uint(-1), 0,
158
159 // enums: name, alias, flags, count, data
160 30, 30, 0x0, 2, 208,
161
162 // enum data: key, value
163 38, uint(QGraphicsScene::BspTreeIndex),
164 39, uint(QGraphicsScene::NoIndex),
165
166 0 // eod
167};
168
169void QGraphicsScene::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
170{
171 if (_c == QMetaObject::InvokeMetaMethod) {
172 Q_ASSERT(staticMetaObject.cast(_o));
173 auto *_t = static_cast<QGraphicsScene *>(_o);
174 Q_UNUSED(_t)
175 switch (_id) {
176 case 0: _t->changed((*reinterpret_cast< const QList<QRectF>(*)>(_a[1]))); break;
177 case 1: _t->sceneRectChanged((*reinterpret_cast< const QRectF(*)>(_a[1]))); break;
178 case 2: _t->selectionChanged(); break;
179 case 3: _t->focusItemChanged((*reinterpret_cast< QGraphicsItem*(*)>(_a[1])),(*reinterpret_cast< QGraphicsItem*(*)>(_a[2])),(*reinterpret_cast< Qt::FocusReason(*)>(_a[3]))); break;
180 case 4: _t->update((*reinterpret_cast< const QRectF(*)>(_a[1]))); break;
181 case 5: _t->update(); break;
182 case 6: _t->invalidate((*reinterpret_cast< const QRectF(*)>(_a[1])),(*reinterpret_cast< SceneLayers(*)>(_a[2]))); break;
183 case 7: _t->invalidate((*reinterpret_cast< const QRectF(*)>(_a[1]))); break;
184 case 8: _t->invalidate(); break;
185 case 9: _t->advance(); break;
186 case 10: _t->clearSelection(); break;
187 case 11: _t->clear(); break;
188 case 12: { bool _r = _t->focusNextPrevChild((*reinterpret_cast< bool(*)>(_a[1])));
189 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
190 case 13: _t->d_func()->_q_emitUpdated(); break;
191 case 14: _t->d_func()->_q_polishItems(); break;
192 case 15: _t->d_func()->_q_processDirtyItems(); break;
193 case 16: _t->d_func()->_q_updateScenePosDescendants(); break;
194 default: ;
195 }
196 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
197 switch (_id) {
198 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
199 case 0:
200 switch (*reinterpret_cast<int*>(_a[1])) {
201 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
202 case 0:
203 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<QRectF> >(); break;
204 }
205 break;
206 }
207 } else if (_c == QMetaObject::IndexOfMethod) {
208 int *result = reinterpret_cast<int *>(_a[0]);
209 {
210 using _t = void (QGraphicsScene::*)(const QList<QRectF> & );
211 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsScene::changed)) {
212 *result = 0;
213 return;
214 }
215 }
216 {
217 using _t = void (QGraphicsScene::*)(const QRectF & );
218 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsScene::sceneRectChanged)) {
219 *result = 1;
220 return;
221 }
222 }
223 {
224 using _t = void (QGraphicsScene::*)();
225 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsScene::selectionChanged)) {
226 *result = 2;
227 return;
228 }
229 }
230 {
231 using _t = void (QGraphicsScene::*)(QGraphicsItem * , QGraphicsItem * , Qt::FocusReason );
232 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsScene::focusItemChanged)) {
233 *result = 3;
234 return;
235 }
236 }
237 }
238#ifndef QT_NO_PROPERTIES
239 else if (_c == QMetaObject::ReadProperty) {
240 Q_ASSERT(staticMetaObject.cast(_o));
241 auto *_t = static_cast<QGraphicsScene *>(_o);
242 Q_UNUSED(_t)
243 void *_v = _a[0];
244 switch (_id) {
245 case 0: *reinterpret_cast< QBrush*>(_v) = _t->backgroundBrush(); break;
246 case 1: *reinterpret_cast< QBrush*>(_v) = _t->foregroundBrush(); break;
247 case 2: *reinterpret_cast< ItemIndexMethod*>(_v) = _t->itemIndexMethod(); break;
248 case 3: *reinterpret_cast< QRectF*>(_v) = _t->sceneRect(); break;
249 case 4: *reinterpret_cast< int*>(_v) = _t->bspTreeDepth(); break;
250 case 5: *reinterpret_cast< QPalette*>(_v) = _t->palette(); break;
251 case 6: *reinterpret_cast< QFont*>(_v) = _t->font(); break;
252 case 7: *reinterpret_cast< bool*>(_v) = _t->stickyFocus(); break;
253 case 8: *reinterpret_cast< qreal*>(_v) = _t->minimumRenderSize(); break;
254 case 9: *reinterpret_cast< bool*>(_v) = _t->focusOnTouch(); break;
255 default: break;
256 }
257 } else if (_c == QMetaObject::WriteProperty) {
258 Q_ASSERT(staticMetaObject.cast(_o));
259 auto *_t = static_cast<QGraphicsScene *>(_o);
260 Q_UNUSED(_t)
261 void *_v = _a[0];
262 switch (_id) {
263 case 0: _t->setBackgroundBrush(*reinterpret_cast< QBrush*>(_v)); break;
264 case 1: _t->setForegroundBrush(*reinterpret_cast< QBrush*>(_v)); break;
265 case 2: _t->setItemIndexMethod(*reinterpret_cast< ItemIndexMethod*>(_v)); break;
266 case 3: _t->setSceneRect(*reinterpret_cast< QRectF*>(_v)); break;
267 case 4: _t->setBspTreeDepth(*reinterpret_cast< int*>(_v)); break;
268 case 5: _t->setPalette(*reinterpret_cast< QPalette*>(_v)); break;
269 case 6: _t->setFont(*reinterpret_cast< QFont*>(_v)); break;
270 case 7: _t->setStickyFocus(*reinterpret_cast< bool*>(_v)); break;
271 case 8: _t->setMinimumRenderSize(*reinterpret_cast< qreal*>(_v)); break;
272 case 9: _t->setFocusOnTouch(*reinterpret_cast< bool*>(_v)); break;
273 default: break;
274 }
275 } else if (_c == QMetaObject::ResetProperty) {
276 } else if (_c == QMetaObject::BindableProperty) {
277 }
278#endif // QT_NO_PROPERTIES
279}
280
281const QMetaObject QGraphicsScene::staticMetaObject = { {
282 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
283 qt_meta_stringdata_QGraphicsScene.offsetsAndSize,
284 qt_meta_data_QGraphicsScene,
285 qt_static_metacall,
286 nullptr,
287qt_incomplete_metaTypeArray<qt_meta_stringdata_QGraphicsScene_t
288, QtPrivate::TypeAndForceComplete<QBrush, std::true_type>, QtPrivate::TypeAndForceComplete<QBrush, std::true_type>, QtPrivate::TypeAndForceComplete<ItemIndexMethod, std::true_type>, QtPrivate::TypeAndForceComplete<QRectF, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<QPalette, std::true_type>, QtPrivate::TypeAndForceComplete<QFont, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QList<QRectF> &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRectF &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QGraphicsItem *, std::false_type>, QtPrivate::TypeAndForceComplete<QGraphicsItem *, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::FocusReason, std::false_type>
289, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRectF &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRectF &, std::false_type>, QtPrivate::TypeAndForceComplete<SceneLayers, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRectF &, 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<bool, std::false_type>, QtPrivate::TypeAndForceComplete<bool, 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>
290
291
292>,
293 nullptr
294} };
295
296
297const QMetaObject *QGraphicsScene::metaObject() const
298{
299 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
300}
301
302void *QGraphicsScene::qt_metacast(const char *_clname)
303{
304 if (!_clname) return nullptr;
305 if (!strcmp(_clname, qt_meta_stringdata_QGraphicsScene.stringdata0))
306 return static_cast<void*>(this);
307 return QObject::qt_metacast(_clname);
308}
309
310int QGraphicsScene::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
311{
312 _id = QObject::qt_metacall(_c, _id, _a);
313 if (_id < 0)
314 return _id;
315 if (_c == QMetaObject::InvokeMetaMethod) {
316 if (_id < 17)
317 qt_static_metacall(this, _c, _id, _a);
318 _id -= 17;
319 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
320 if (_id < 17)
321 qt_static_metacall(this, _c, _id, _a);
322 _id -= 17;
323 }
324#ifndef QT_NO_PROPERTIES
325 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
326 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
327 || _c == QMetaObject::RegisterPropertyMetaType) {
328 qt_static_metacall(this, _c, _id, _a);
329 _id -= 10;
330 }
331#endif // QT_NO_PROPERTIES
332 return _id;
333}
334
335// SIGNAL 0
336void QGraphicsScene::changed(const QList<QRectF> & _t1)
337{
338 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
339 QMetaObject::activate(this, &staticMetaObject, 0, _a);
340}
341
342// SIGNAL 1
343void QGraphicsScene::sceneRectChanged(const QRectF & _t1)
344{
345 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
346 QMetaObject::activate(this, &staticMetaObject, 1, _a);
347}
348
349// SIGNAL 2
350void QGraphicsScene::selectionChanged()
351{
352 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
353}
354
355// SIGNAL 3
356void QGraphicsScene::focusItemChanged(QGraphicsItem * _t1, QGraphicsItem * _t2, Qt::FocusReason _t3)
357{
358 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
359 QMetaObject::activate(this, &staticMetaObject, 3, _a);
360}
361QT_WARNING_POP
362QT_END_MOC_NAMESPACE
363