1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qgraphicsanchorlayout.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/qgraphicsanchorlayout.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qgraphicsanchorlayout.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 | |
21 | QT_BEGIN_MOC_NAMESPACE |
22 | QT_WARNING_PUSH |
23 | QT_WARNING_DISABLE_DEPRECATED |
24 | struct qt_meta_stringdata_QGraphicsAnchor_t { |
25 | const uint offsetsAndSize[8]; |
26 | char stringdata0[55]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QGraphicsAnchor_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QGraphicsAnchor_t qt_meta_stringdata_QGraphicsAnchor = { |
31 | { |
32 | QT_MOC_LITERAL(0, 15), // "QGraphicsAnchor" |
33 | QT_MOC_LITERAL(16, 7), // "spacing" |
34 | QT_MOC_LITERAL(24, 10), // "sizePolicy" |
35 | QT_MOC_LITERAL(35, 19) // "QSizePolicy::Policy" |
36 | |
37 | }, |
38 | "QGraphicsAnchor\0spacing\0sizePolicy\0" |
39 | "QSizePolicy::Policy" |
40 | }; |
41 | #undef QT_MOC_LITERAL |
42 | |
43 | static const uint qt_meta_data_QGraphicsAnchor[] = { |
44 | |
45 | // content: |
46 | 9, // revision |
47 | 0, // classname |
48 | 0, 0, // classinfo |
49 | 0, 0, // methods |
50 | 2, 14, // properties |
51 | 0, 0, // enums/sets |
52 | 0, 0, // constructors |
53 | 0, // flags |
54 | 0, // signalCount |
55 | |
56 | // properties: name, type, flags |
57 | 1, QMetaType::QReal, 0x00015107, uint(-1), 0, |
58 | 2, 0x80000000 | 3, 0x0001510b, uint(-1), 0, |
59 | |
60 | 0 // eod |
61 | }; |
62 | |
63 | void QGraphicsAnchor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
64 | { |
65 | |
66 | #ifndef QT_NO_PROPERTIES |
67 | if (_c == QMetaObject::ReadProperty) { |
68 | Q_ASSERT(staticMetaObject.cast(_o)); |
69 | auto *_t = static_cast<QGraphicsAnchor *>(_o); |
70 | Q_UNUSED(_t) |
71 | void *_v = _a[0]; |
72 | switch (_id) { |
73 | case 0: *reinterpret_cast< qreal*>(_v) = _t->spacing(); break; |
74 | case 1: *reinterpret_cast< QSizePolicy::Policy*>(_v) = _t->sizePolicy(); break; |
75 | default: break; |
76 | } |
77 | } else if (_c == QMetaObject::WriteProperty) { |
78 | Q_ASSERT(staticMetaObject.cast(_o)); |
79 | auto *_t = static_cast<QGraphicsAnchor *>(_o); |
80 | Q_UNUSED(_t) |
81 | void *_v = _a[0]; |
82 | switch (_id) { |
83 | case 0: _t->setSpacing(*reinterpret_cast< qreal*>(_v)); break; |
84 | case 1: _t->setSizePolicy(*reinterpret_cast< QSizePolicy::Policy*>(_v)); break; |
85 | default: break; |
86 | } |
87 | } else if (_c == QMetaObject::ResetProperty) { |
88 | Q_ASSERT(staticMetaObject.cast(_o)); |
89 | auto *_t = static_cast<QGraphicsAnchor *>(_o); |
90 | Q_UNUSED(_t) |
91 | switch (_id) { |
92 | case 0: _t->unsetSpacing(); break; |
93 | default: break; |
94 | } |
95 | } else if (_c == QMetaObject::BindableProperty) { |
96 | } |
97 | #endif // QT_NO_PROPERTIES |
98 | Q_UNUSED(_o); |
99 | Q_UNUSED(_id); |
100 | Q_UNUSED(_c); |
101 | Q_UNUSED(_a); |
102 | } |
103 | |
104 | static const QMetaObject::SuperData [] = { |
105 | QMetaObject::SuperData::link<QSizePolicy::staticMetaObject>(), |
106 | nullptr |
107 | }; |
108 | |
109 | const QMetaObject QGraphicsAnchor::staticMetaObject = { { |
110 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
111 | qt_meta_stringdata_QGraphicsAnchor.offsetsAndSize, |
112 | qt_meta_data_QGraphicsAnchor, |
113 | qt_static_metacall, |
114 | qt_meta_extradata_QGraphicsAnchor, |
115 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QGraphicsAnchor_t |
116 | , QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<QSizePolicy::Policy, std::true_type> |
117 | |
118 | |
119 | |
120 | >, |
121 | nullptr |
122 | } }; |
123 | |
124 | |
125 | const QMetaObject *QGraphicsAnchor::metaObject() const |
126 | { |
127 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
128 | } |
129 | |
130 | void *QGraphicsAnchor::qt_metacast(const char *_clname) |
131 | { |
132 | if (!_clname) return nullptr; |
133 | if (!strcmp(_clname, qt_meta_stringdata_QGraphicsAnchor.stringdata0)) |
134 | return static_cast<void*>(this); |
135 | return QObject::qt_metacast(_clname); |
136 | } |
137 | |
138 | int QGraphicsAnchor::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
139 | { |
140 | _id = QObject::qt_metacall(_c, _id, _a); |
141 | if (_id < 0) |
142 | return _id; |
143 | |
144 | #ifndef QT_NO_PROPERTIES |
145 | if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
146 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
147 | || _c == QMetaObject::RegisterPropertyMetaType) { |
148 | qt_static_metacall(this, _c, _id, _a); |
149 | _id -= 2; |
150 | } |
151 | #endif // QT_NO_PROPERTIES |
152 | return _id; |
153 | } |
154 | QT_WARNING_POP |
155 | QT_END_MOC_NAMESPACE |
156 | |