1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qformlayout.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/qformlayout.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qformlayout.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_QFormLayout_t { |
25 | const uint offsetsAndSize[40]; |
26 | char stringdata0[296]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QFormLayout_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QFormLayout_t qt_meta_stringdata_QFormLayout = { |
31 | { |
32 | QT_MOC_LITERAL(0, 11), // "QFormLayout" |
33 | QT_MOC_LITERAL(12, 17), // "fieldGrowthPolicy" |
34 | QT_MOC_LITERAL(30, 17), // "FieldGrowthPolicy" |
35 | QT_MOC_LITERAL(48, 13), // "rowWrapPolicy" |
36 | QT_MOC_LITERAL(62, 13), // "RowWrapPolicy" |
37 | QT_MOC_LITERAL(76, 14), // "labelAlignment" |
38 | QT_MOC_LITERAL(91, 13), // "Qt::Alignment" |
39 | QT_MOC_LITERAL(105, 13), // "formAlignment" |
40 | QT_MOC_LITERAL(119, 17), // "horizontalSpacing" |
41 | QT_MOC_LITERAL(137, 15), // "verticalSpacing" |
42 | QT_MOC_LITERAL(153, 20), // "FieldsStayAtSizeHint" |
43 | QT_MOC_LITERAL(174, 19), // "ExpandingFieldsGrow" |
44 | QT_MOC_LITERAL(194, 21), // "AllNonFixedFieldsGrow" |
45 | QT_MOC_LITERAL(216, 12), // "DontWrapRows" |
46 | QT_MOC_LITERAL(229, 12), // "WrapLongRows" |
47 | QT_MOC_LITERAL(242, 11), // "WrapAllRows" |
48 | QT_MOC_LITERAL(254, 8), // "ItemRole" |
49 | QT_MOC_LITERAL(263, 9), // "LabelRole" |
50 | QT_MOC_LITERAL(273, 9), // "FieldRole" |
51 | QT_MOC_LITERAL(283, 12) // "SpanningRole" |
52 | |
53 | }, |
54 | "QFormLayout\0fieldGrowthPolicy\0" |
55 | "FieldGrowthPolicy\0rowWrapPolicy\0" |
56 | "RowWrapPolicy\0labelAlignment\0Qt::Alignment\0" |
57 | "formAlignment\0horizontalSpacing\0" |
58 | "verticalSpacing\0FieldsStayAtSizeHint\0" |
59 | "ExpandingFieldsGrow\0AllNonFixedFieldsGrow\0" |
60 | "DontWrapRows\0WrapLongRows\0WrapAllRows\0" |
61 | "ItemRole\0LabelRole\0FieldRole\0SpanningRole" |
62 | }; |
63 | #undef QT_MOC_LITERAL |
64 | |
65 | static const uint qt_meta_data_QFormLayout[] = { |
66 | |
67 | // content: |
68 | 9, // revision |
69 | 0, // classname |
70 | 0, 0, // classinfo |
71 | 0, 0, // methods |
72 | 6, 14, // properties |
73 | 3, 44, // enums/sets |
74 | 0, 0, // constructors |
75 | 0, // flags |
76 | 0, // signalCount |
77 | |
78 | // properties: name, type, flags |
79 | 1, 0x80000000 | 2, 0x0001510f, uint(-1), 0, |
80 | 3, 0x80000000 | 4, 0x0001510f, uint(-1), 0, |
81 | 5, 0x80000000 | 6, 0x0001510f, uint(-1), 0, |
82 | 7, 0x80000000 | 6, 0x0001510f, uint(-1), 0, |
83 | 8, QMetaType::Int, 0x00015103, uint(-1), 0, |
84 | 9, QMetaType::Int, 0x00015103, uint(-1), 0, |
85 | |
86 | // enums: name, alias, flags, count, data |
87 | 2, 2, 0x0, 3, 59, |
88 | 4, 4, 0x0, 3, 65, |
89 | 16, 16, 0x0, 3, 71, |
90 | |
91 | // enum data: key, value |
92 | 10, uint(QFormLayout::FieldsStayAtSizeHint), |
93 | 11, uint(QFormLayout::ExpandingFieldsGrow), |
94 | 12, uint(QFormLayout::AllNonFixedFieldsGrow), |
95 | 13, uint(QFormLayout::DontWrapRows), |
96 | 14, uint(QFormLayout::WrapLongRows), |
97 | 15, uint(QFormLayout::WrapAllRows), |
98 | 17, uint(QFormLayout::LabelRole), |
99 | 18, uint(QFormLayout::FieldRole), |
100 | 19, uint(QFormLayout::SpanningRole), |
101 | |
102 | 0 // eod |
103 | }; |
104 | |
105 | void QFormLayout::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
106 | { |
107 | |
108 | #ifndef QT_NO_PROPERTIES |
109 | if (_c == QMetaObject::ReadProperty) { |
110 | Q_ASSERT(staticMetaObject.cast(_o)); |
111 | auto *_t = static_cast<QFormLayout *>(_o); |
112 | Q_UNUSED(_t) |
113 | void *_v = _a[0]; |
114 | switch (_id) { |
115 | case 0: *reinterpret_cast< FieldGrowthPolicy*>(_v) = _t->fieldGrowthPolicy(); break; |
116 | case 1: *reinterpret_cast< RowWrapPolicy*>(_v) = _t->rowWrapPolicy(); break; |
117 | case 2: *reinterpret_cast< Qt::Alignment*>(_v) = _t->labelAlignment(); break; |
118 | case 3: *reinterpret_cast< Qt::Alignment*>(_v) = _t->formAlignment(); break; |
119 | case 4: *reinterpret_cast< int*>(_v) = _t->horizontalSpacing(); break; |
120 | case 5: *reinterpret_cast< int*>(_v) = _t->verticalSpacing(); break; |
121 | default: break; |
122 | } |
123 | } else if (_c == QMetaObject::WriteProperty) { |
124 | Q_ASSERT(staticMetaObject.cast(_o)); |
125 | auto *_t = static_cast<QFormLayout *>(_o); |
126 | Q_UNUSED(_t) |
127 | void *_v = _a[0]; |
128 | switch (_id) { |
129 | case 0: _t->setFieldGrowthPolicy(*reinterpret_cast< FieldGrowthPolicy*>(_v)); break; |
130 | case 1: _t->setRowWrapPolicy(*reinterpret_cast< RowWrapPolicy*>(_v)); break; |
131 | case 2: _t->setLabelAlignment(*reinterpret_cast< Qt::Alignment*>(_v)); break; |
132 | case 3: _t->setFormAlignment(*reinterpret_cast< Qt::Alignment*>(_v)); break; |
133 | case 4: _t->setHorizontalSpacing(*reinterpret_cast< int*>(_v)); break; |
134 | case 5: _t->setVerticalSpacing(*reinterpret_cast< int*>(_v)); break; |
135 | default: break; |
136 | } |
137 | } else if (_c == QMetaObject::ResetProperty) { |
138 | Q_ASSERT(staticMetaObject.cast(_o)); |
139 | auto *_t = static_cast<QFormLayout *>(_o); |
140 | Q_UNUSED(_t) |
141 | switch (_id) { |
142 | case 0: _t->resetFieldGrowthPolicy(); break; |
143 | case 1: _t->resetRowWrapPolicy(); break; |
144 | case 2: _t->resetLabelAlignment(); break; |
145 | case 3: _t->resetFormAlignment(); break; |
146 | default: break; |
147 | } |
148 | } else if (_c == QMetaObject::BindableProperty) { |
149 | } |
150 | #endif // QT_NO_PROPERTIES |
151 | Q_UNUSED(_o); |
152 | Q_UNUSED(_id); |
153 | Q_UNUSED(_c); |
154 | Q_UNUSED(_a); |
155 | } |
156 | |
157 | const QMetaObject QFormLayout::staticMetaObject = { { |
158 | QMetaObject::SuperData::link<QLayout::staticMetaObject>(), |
159 | qt_meta_stringdata_QFormLayout.offsetsAndSize, |
160 | qt_meta_data_QFormLayout, |
161 | qt_static_metacall, |
162 | nullptr, |
163 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QFormLayout_t |
164 | , QtPrivate::TypeAndForceComplete<FieldGrowthPolicy, std::true_type>, QtPrivate::TypeAndForceComplete<RowWrapPolicy, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::Alignment, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::Alignment, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type> |
165 | |
166 | |
167 | |
168 | >, |
169 | nullptr |
170 | } }; |
171 | |
172 | |
173 | const QMetaObject *QFormLayout::metaObject() const |
174 | { |
175 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
176 | } |
177 | |
178 | void *QFormLayout::qt_metacast(const char *_clname) |
179 | { |
180 | if (!_clname) return nullptr; |
181 | if (!strcmp(_clname, qt_meta_stringdata_QFormLayout.stringdata0)) |
182 | return static_cast<void*>(this); |
183 | return QLayout::qt_metacast(_clname); |
184 | } |
185 | |
186 | int QFormLayout::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
187 | { |
188 | _id = QLayout::qt_metacall(_c, _id, _a); |
189 | if (_id < 0) |
190 | return _id; |
191 | |
192 | #ifndef QT_NO_PROPERTIES |
193 | if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
194 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
195 | || _c == QMetaObject::RegisterPropertyMetaType) { |
196 | qt_static_metacall(this, _c, _id, _a); |
197 | _id -= 6; |
198 | } |
199 | #endif // QT_NO_PROPERTIES |
200 | return _id; |
201 | } |
202 | QT_WARNING_POP |
203 | QT_END_MOC_NAMESPACE |
204 | |