1/****************************************************************************
2** Meta object code from reading C++ file 'qgraphicswidget.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/qgraphicswidget.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qgraphicswidget.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_QGraphicsWidget_t {
25 const uint offsetsAndSize[46];
26 char stringdata0[276];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QGraphicsWidget_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QGraphicsWidget_t qt_meta_stringdata_QGraphicsWidget = {
31 {
32QT_MOC_LITERAL(0, 15), // "QGraphicsWidget"
33QT_MOC_LITERAL(16, 15), // "geometryChanged"
34QT_MOC_LITERAL(32, 0), // ""
35QT_MOC_LITERAL(33, 13), // "layoutChanged"
36QT_MOC_LITERAL(47, 5), // "close"
37QT_MOC_LITERAL(53, 7), // "palette"
38QT_MOC_LITERAL(61, 4), // "font"
39QT_MOC_LITERAL(66, 15), // "layoutDirection"
40QT_MOC_LITERAL(82, 19), // "Qt::LayoutDirection"
41QT_MOC_LITERAL(102, 4), // "size"
42QT_MOC_LITERAL(107, 11), // "minimumSize"
43QT_MOC_LITERAL(119, 13), // "preferredSize"
44QT_MOC_LITERAL(133, 11), // "maximumSize"
45QT_MOC_LITERAL(145, 10), // "sizePolicy"
46QT_MOC_LITERAL(156, 11), // "focusPolicy"
47QT_MOC_LITERAL(168, 15), // "Qt::FocusPolicy"
48QT_MOC_LITERAL(184, 11), // "windowFlags"
49QT_MOC_LITERAL(196, 15), // "Qt::WindowFlags"
50QT_MOC_LITERAL(212, 11), // "windowTitle"
51QT_MOC_LITERAL(224, 8), // "geometry"
52QT_MOC_LITERAL(233, 18), // "autoFillBackground"
53QT_MOC_LITERAL(252, 6), // "layout"
54QT_MOC_LITERAL(259, 16) // "QGraphicsLayout*"
55
56 },
57 "QGraphicsWidget\0geometryChanged\0\0"
58 "layoutChanged\0close\0palette\0font\0"
59 "layoutDirection\0Qt::LayoutDirection\0"
60 "size\0minimumSize\0preferredSize\0"
61 "maximumSize\0sizePolicy\0focusPolicy\0"
62 "Qt::FocusPolicy\0windowFlags\0Qt::WindowFlags\0"
63 "windowTitle\0geometry\0autoFillBackground\0"
64 "layout\0QGraphicsLayout*"
65};
66#undef QT_MOC_LITERAL
67
68static const uint qt_meta_data_QGraphicsWidget[] = {
69
70 // content:
71 9, // revision
72 0, // classname
73 0, 0, // classinfo
74 3, 14, // methods
75 14, 35, // properties
76 0, 0, // enums/sets
77 0, 0, // constructors
78 0, // flags
79 2, // signalCount
80
81 // signals: name, argc, parameters, tag, flags, initial metatype offsets
82 1, 0, 32, 2, 0x06, 14 /* Public */,
83 3, 0, 33, 2, 0x06, 15 /* Public */,
84
85 // slots: name, argc, parameters, tag, flags, initial metatype offsets
86 4, 0, 34, 2, 0x0a, 16 /* Public */,
87
88 // signals: parameters
89 QMetaType::Void,
90 QMetaType::Void,
91
92 // slots: parameters
93 QMetaType::Bool,
94
95 // properties: name, type, flags
96 5, QMetaType::QPalette, 0x00015103, uint(-1), 0,
97 6, QMetaType::QFont, 0x00015103, uint(-1), 0,
98 7, 0x80000000 | 8, 0x0001510f, uint(-1), 0,
99 9, QMetaType::QSizeF, 0x00015003, uint(0), 0,
100 10, QMetaType::QSizeF, 0x00015103, uint(-1), 0,
101 11, QMetaType::QSizeF, 0x00015103, uint(-1), 0,
102 12, QMetaType::QSizeF, 0x00015103, uint(-1), 0,
103 13, QMetaType::QSizePolicy, 0x00015103, uint(-1), 0,
104 14, 0x80000000 | 15, 0x0001510b, uint(-1), 0,
105 16, 0x80000000 | 17, 0x0001510b, uint(-1), 0,
106 18, QMetaType::QString, 0x00015103, uint(-1), 0,
107 19, QMetaType::QRectF, 0x00015103, uint(0), 0,
108 20, QMetaType::Bool, 0x00015103, uint(-1), 0,
109 21, 0x80000000 | 22, 0x0001510b, uint(1), 0,
110
111 0 // eod
112};
113
114void QGraphicsWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
115{
116 if (_c == QMetaObject::InvokeMetaMethod) {
117 Q_ASSERT(staticMetaObject.cast(_o));
118 auto *_t = static_cast<QGraphicsWidget *>(_o);
119 Q_UNUSED(_t)
120 switch (_id) {
121 case 0: _t->geometryChanged(); break;
122 case 1: _t->layoutChanged(); break;
123 case 2: { bool _r = _t->close();
124 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
125 default: ;
126 }
127 } else if (_c == QMetaObject::IndexOfMethod) {
128 int *result = reinterpret_cast<int *>(_a[0]);
129 {
130 using _t = void (QGraphicsWidget::*)();
131 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsWidget::geometryChanged)) {
132 *result = 0;
133 return;
134 }
135 }
136 {
137 using _t = void (QGraphicsWidget::*)();
138 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsWidget::layoutChanged)) {
139 *result = 1;
140 return;
141 }
142 }
143 }
144#ifndef QT_NO_PROPERTIES
145 else if (_c == QMetaObject::ReadProperty) {
146 Q_ASSERT(staticMetaObject.cast(_o));
147 auto *_t = static_cast<QGraphicsWidget *>(_o);
148 Q_UNUSED(_t)
149 void *_v = _a[0];
150 switch (_id) {
151 case 0: *reinterpret_cast< QPalette*>(_v) = _t->palette(); break;
152 case 1: *reinterpret_cast< QFont*>(_v) = _t->font(); break;
153 case 2: *reinterpret_cast< Qt::LayoutDirection*>(_v) = _t->layoutDirection(); break;
154 case 3: *reinterpret_cast< QSizeF*>(_v) = _t->size(); break;
155 case 4: *reinterpret_cast< QSizeF*>(_v) = _t->minimumSize(); break;
156 case 5: *reinterpret_cast< QSizeF*>(_v) = _t->preferredSize(); break;
157 case 6: *reinterpret_cast< QSizeF*>(_v) = _t->maximumSize(); break;
158 case 7: *reinterpret_cast< QSizePolicy*>(_v) = _t->sizePolicy(); break;
159 case 8: *reinterpret_cast< Qt::FocusPolicy*>(_v) = _t->focusPolicy(); break;
160 case 9: *reinterpret_cast< Qt::WindowFlags*>(_v) = _t->windowFlags(); break;
161 case 10: *reinterpret_cast< QString*>(_v) = _t->windowTitle(); break;
162 case 11: *reinterpret_cast< QRectF*>(_v) = _t->geometry(); break;
163 case 12: *reinterpret_cast< bool*>(_v) = _t->autoFillBackground(); break;
164 case 13: *reinterpret_cast< QGraphicsLayout**>(_v) = _t->layout(); break;
165 default: break;
166 }
167 } else if (_c == QMetaObject::WriteProperty) {
168 Q_ASSERT(staticMetaObject.cast(_o));
169 auto *_t = static_cast<QGraphicsWidget *>(_o);
170 Q_UNUSED(_t)
171 void *_v = _a[0];
172 switch (_id) {
173 case 0: _t->setPalette(*reinterpret_cast< QPalette*>(_v)); break;
174 case 1: _t->setFont(*reinterpret_cast< QFont*>(_v)); break;
175 case 2: _t->setLayoutDirection(*reinterpret_cast< Qt::LayoutDirection*>(_v)); break;
176 case 3: _t->resize(*reinterpret_cast< QSizeF*>(_v)); break;
177 case 4: _t->setMinimumSize(*reinterpret_cast< QSizeF*>(_v)); break;
178 case 5: _t->setPreferredSize(*reinterpret_cast< QSizeF*>(_v)); break;
179 case 6: _t->setMaximumSize(*reinterpret_cast< QSizeF*>(_v)); break;
180 case 7: _t->setSizePolicy(*reinterpret_cast< QSizePolicy*>(_v)); break;
181 case 8: _t->setFocusPolicy(*reinterpret_cast< Qt::FocusPolicy*>(_v)); break;
182 case 9: _t->setWindowFlags(*reinterpret_cast< Qt::WindowFlags*>(_v)); break;
183 case 10: _t->setWindowTitle(*reinterpret_cast< QString*>(_v)); break;
184 case 11: _t->setGeometry(*reinterpret_cast< QRectF*>(_v)); break;
185 case 12: _t->setAutoFillBackground(*reinterpret_cast< bool*>(_v)); break;
186 case 13: _t->setLayout(*reinterpret_cast< QGraphicsLayout**>(_v)); break;
187 default: break;
188 }
189 } else if (_c == QMetaObject::ResetProperty) {
190 Q_ASSERT(staticMetaObject.cast(_o));
191 auto *_t = static_cast<QGraphicsWidget *>(_o);
192 Q_UNUSED(_t)
193 switch (_id) {
194 case 2: _t->unsetLayoutDirection(); break;
195 default: break;
196 }
197 } else if (_c == QMetaObject::BindableProperty) {
198 }
199#endif // QT_NO_PROPERTIES
200}
201
202const QMetaObject QGraphicsWidget::staticMetaObject = { {
203 QMetaObject::SuperData::link<QGraphicsObject::staticMetaObject>(),
204 qt_meta_stringdata_QGraphicsWidget.offsetsAndSize,
205 qt_meta_data_QGraphicsWidget,
206 qt_static_metacall,
207 nullptr,
208qt_incomplete_metaTypeArray<qt_meta_stringdata_QGraphicsWidget_t
209, QtPrivate::TypeAndForceComplete<QPalette, std::true_type>, QtPrivate::TypeAndForceComplete<QFont, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::LayoutDirection, std::true_type>, QtPrivate::TypeAndForceComplete<QSizeF, std::true_type>, QtPrivate::TypeAndForceComplete<QSizeF, std::true_type>, QtPrivate::TypeAndForceComplete<QSizeF, std::true_type>, QtPrivate::TypeAndForceComplete<QSizeF, std::true_type>, QtPrivate::TypeAndForceComplete<QSizePolicy, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::FocusPolicy, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::WindowFlags, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QRectF, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QGraphicsLayout*, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
210, QtPrivate::TypeAndForceComplete<bool, std::false_type>
211
212
213>,
214 nullptr
215} };
216
217
218const QMetaObject *QGraphicsWidget::metaObject() const
219{
220 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
221}
222
223void *QGraphicsWidget::qt_metacast(const char *_clname)
224{
225 if (!_clname) return nullptr;
226 if (!strcmp(_clname, qt_meta_stringdata_QGraphicsWidget.stringdata0))
227 return static_cast<void*>(this);
228 if (!strcmp(_clname, "QGraphicsLayoutItem"))
229 return static_cast< QGraphicsLayoutItem*>(this);
230 if (!strcmp(_clname, "org.qt-project.Qt.QGraphicsItem"))
231 return static_cast< QGraphicsItem*>(this);
232 if (!strcmp(_clname, "org.qt-project.Qt.QGraphicsLayoutItem"))
233 return static_cast< QGraphicsLayoutItem*>(this);
234 return QGraphicsObject::qt_metacast(_clname);
235}
236
237int QGraphicsWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
238{
239 _id = QGraphicsObject::qt_metacall(_c, _id, _a);
240 if (_id < 0)
241 return _id;
242 if (_c == QMetaObject::InvokeMetaMethod) {
243 if (_id < 3)
244 qt_static_metacall(this, _c, _id, _a);
245 _id -= 3;
246 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
247 if (_id < 3)
248 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
249 _id -= 3;
250 }
251#ifndef QT_NO_PROPERTIES
252 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
253 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
254 || _c == QMetaObject::RegisterPropertyMetaType) {
255 qt_static_metacall(this, _c, _id, _a);
256 _id -= 14;
257 }
258#endif // QT_NO_PROPERTIES
259 return _id;
260}
261
262// SIGNAL 0
263void QGraphicsWidget::geometryChanged()
264{
265 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
266}
267
268// SIGNAL 1
269void QGraphicsWidget::layoutChanged()
270{
271 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
272}
273QT_WARNING_POP
274QT_END_MOC_NAMESPACE
275