1/****************************************************************************
2** Meta object code from reading C++ file 'qlayout.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 "kernel/qlayout.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qlayout.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_QLayout_t {
25 const uint offsetsAndSize[24];
26 char stringdata0[168];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QLayout_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QLayout_t qt_meta_stringdata_QLayout = {
31 {
32QT_MOC_LITERAL(0, 7), // "QLayout"
33QT_MOC_LITERAL(8, 7), // "spacing"
34QT_MOC_LITERAL(16, 15), // "contentsMargins"
35QT_MOC_LITERAL(32, 8), // "QMargins"
36QT_MOC_LITERAL(41, 14), // "sizeConstraint"
37QT_MOC_LITERAL(56, 14), // "SizeConstraint"
38QT_MOC_LITERAL(71, 20), // "SetDefaultConstraint"
39QT_MOC_LITERAL(92, 15), // "SetNoConstraint"
40QT_MOC_LITERAL(108, 14), // "SetMinimumSize"
41QT_MOC_LITERAL(123, 12), // "SetFixedSize"
42QT_MOC_LITERAL(136, 14), // "SetMaximumSize"
43QT_MOC_LITERAL(151, 16) // "SetMinAndMaxSize"
44
45 },
46 "QLayout\0spacing\0contentsMargins\0"
47 "QMargins\0sizeConstraint\0SizeConstraint\0"
48 "SetDefaultConstraint\0SetNoConstraint\0"
49 "SetMinimumSize\0SetFixedSize\0SetMaximumSize\0"
50 "SetMinAndMaxSize"
51};
52#undef QT_MOC_LITERAL
53
54static const uint qt_meta_data_QLayout[] = {
55
56 // content:
57 9, // revision
58 0, // classname
59 0, 0, // classinfo
60 0, 0, // methods
61 3, 14, // properties
62 1, 29, // enums/sets
63 0, 0, // constructors
64 0, // flags
65 0, // signalCount
66
67 // properties: name, type, flags
68 1, QMetaType::Int, 0x00015103, uint(-1), 0,
69 2, 0x80000000 | 3, 0x0001510b, uint(-1), 0,
70 4, 0x80000000 | 5, 0x0001510b, uint(-1), 0,
71
72 // enums: name, alias, flags, count, data
73 5, 5, 0x0, 6, 34,
74
75 // enum data: key, value
76 6, uint(QLayout::SetDefaultConstraint),
77 7, uint(QLayout::SetNoConstraint),
78 8, uint(QLayout::SetMinimumSize),
79 9, uint(QLayout::SetFixedSize),
80 10, uint(QLayout::SetMaximumSize),
81 11, uint(QLayout::SetMinAndMaxSize),
82
83 0 // eod
84};
85
86void QLayout::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
87{
88
89#ifndef QT_NO_PROPERTIES
90 if (_c == QMetaObject::ReadProperty) {
91 Q_ASSERT(staticMetaObject.cast(_o));
92 auto *_t = static_cast<QLayout *>(_o);
93 Q_UNUSED(_t)
94 void *_v = _a[0];
95 switch (_id) {
96 case 0: *reinterpret_cast< int*>(_v) = _t->spacing(); break;
97 case 1: *reinterpret_cast< QMargins*>(_v) = _t->contentsMargins(); break;
98 case 2: *reinterpret_cast< SizeConstraint*>(_v) = _t->sizeConstraint(); break;
99 default: break;
100 }
101 } else if (_c == QMetaObject::WriteProperty) {
102 Q_ASSERT(staticMetaObject.cast(_o));
103 auto *_t = static_cast<QLayout *>(_o);
104 Q_UNUSED(_t)
105 void *_v = _a[0];
106 switch (_id) {
107 case 0: _t->setSpacing(*reinterpret_cast< int*>(_v)); break;
108 case 1: _t->setContentsMargins(*reinterpret_cast< QMargins*>(_v)); break;
109 case 2: _t->setSizeConstraint(*reinterpret_cast< SizeConstraint*>(_v)); break;
110 default: break;
111 }
112 } else if (_c == QMetaObject::ResetProperty) {
113 } else if (_c == QMetaObject::BindableProperty) {
114 }
115#endif // QT_NO_PROPERTIES
116 Q_UNUSED(_o);
117 Q_UNUSED(_id);
118 Q_UNUSED(_c);
119 Q_UNUSED(_a);
120}
121
122const QMetaObject QLayout::staticMetaObject = { {
123 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
124 qt_meta_stringdata_QLayout.offsetsAndSize,
125 qt_meta_data_QLayout,
126 qt_static_metacall,
127 nullptr,
128qt_incomplete_metaTypeArray<qt_meta_stringdata_QLayout_t
129, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<QMargins, std::true_type>, QtPrivate::TypeAndForceComplete<SizeConstraint, std::true_type>
130
131
132
133>,
134 nullptr
135} };
136
137
138const QMetaObject *QLayout::metaObject() const
139{
140 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
141}
142
143void *QLayout::qt_metacast(const char *_clname)
144{
145 if (!_clname) return nullptr;
146 if (!strcmp(_clname, qt_meta_stringdata_QLayout.stringdata0))
147 return static_cast<void*>(this);
148 if (!strcmp(_clname, "QLayoutItem"))
149 return static_cast< QLayoutItem*>(this);
150 return QObject::qt_metacast(_clname);
151}
152
153int QLayout::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
154{
155 _id = QObject::qt_metacall(_c, _id, _a);
156 if (_id < 0)
157 return _id;
158
159#ifndef QT_NO_PROPERTIES
160 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
161 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
162 || _c == QMetaObject::RegisterPropertyMetaType) {
163 qt_static_metacall(this, _c, _id, _a);
164 _id -= 3;
165 }
166#endif // QT_NO_PROPERTIES
167 return _id;
168}
169QT_WARNING_POP
170QT_END_MOC_NAMESPACE
171