| 1 | /**************************************************************************** |
| 2 | ** Meta object code from reading C++ file 'qstackedlayout.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/qstackedlayout.h" |
| 11 | #include <QtCore/qbytearray.h> |
| 12 | #include <QtCore/qmetatype.h> |
| 13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
| 14 | #error "The header file 'qstackedlayout.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_QStackedLayout_t { |
| 25 | const uint offsetsAndSize[28]; |
| 26 | char stringdata0[152]; |
| 27 | }; |
| 28 | #define QT_MOC_LITERAL(ofs, len) \ |
| 29 | uint(offsetof(qt_meta_stringdata_QStackedLayout_t, stringdata0) + ofs), len |
| 30 | static const qt_meta_stringdata_QStackedLayout_t qt_meta_stringdata_QStackedLayout = { |
| 31 | { |
| 32 | QT_MOC_LITERAL(0, 14), // "QStackedLayout" |
| 33 | QT_MOC_LITERAL(15, 13), // "widgetRemoved" |
| 34 | QT_MOC_LITERAL(29, 0), // "" |
| 35 | QT_MOC_LITERAL(30, 5), // "index" |
| 36 | QT_MOC_LITERAL(36, 14), // "currentChanged" |
| 37 | QT_MOC_LITERAL(51, 15), // "setCurrentIndex" |
| 38 | QT_MOC_LITERAL(67, 16), // "setCurrentWidget" |
| 39 | QT_MOC_LITERAL(84, 8), // "QWidget*" |
| 40 | QT_MOC_LITERAL(93, 1), // "w" |
| 41 | QT_MOC_LITERAL(95, 12), // "currentIndex" |
| 42 | QT_MOC_LITERAL(108, 12), // "stackingMode" |
| 43 | QT_MOC_LITERAL(121, 12), // "StackingMode" |
| 44 | QT_MOC_LITERAL(134, 8), // "StackOne" |
| 45 | QT_MOC_LITERAL(143, 8) // "StackAll" |
| 46 | |
| 47 | }, |
| 48 | "QStackedLayout\0widgetRemoved\0\0index\0" |
| 49 | "currentChanged\0setCurrentIndex\0" |
| 50 | "setCurrentWidget\0QWidget*\0w\0currentIndex\0" |
| 51 | "stackingMode\0StackingMode\0StackOne\0" |
| 52 | "StackAll" |
| 53 | }; |
| 54 | #undef QT_MOC_LITERAL |
| 55 | |
| 56 | static const uint qt_meta_data_QStackedLayout[] = { |
| 57 | |
| 58 | // content: |
| 59 | 9, // revision |
| 60 | 0, // classname |
| 61 | 0, 0, // classinfo |
| 62 | 4, 14, // methods |
| 63 | 2, 50, // properties |
| 64 | 1, 60, // enums/sets |
| 65 | 0, 0, // constructors |
| 66 | 0, // flags |
| 67 | 2, // signalCount |
| 68 | |
| 69 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 70 | 1, 1, 38, 2, 0x06, 2 /* Public */, |
| 71 | 4, 1, 41, 2, 0x06, 4 /* Public */, |
| 72 | |
| 73 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
| 74 | 5, 1, 44, 2, 0x0a, 6 /* Public */, |
| 75 | 6, 1, 47, 2, 0x0a, 8 /* Public */, |
| 76 | |
| 77 | // signals: parameters |
| 78 | QMetaType::Void, QMetaType::Int, 3, |
| 79 | QMetaType::Void, QMetaType::Int, 3, |
| 80 | |
| 81 | // slots: parameters |
| 82 | QMetaType::Void, QMetaType::Int, 3, |
| 83 | QMetaType::Void, 0x80000000 | 7, 8, |
| 84 | |
| 85 | // properties: name, type, flags |
| 86 | 9, QMetaType::Int, 0x00015103, uint(1), 0, |
| 87 | 10, 0x80000000 | 11, 0x0001510b, uint(-1), 0, |
| 88 | |
| 89 | // enums: name, alias, flags, count, data |
| 90 | 11, 11, 0x0, 2, 65, |
| 91 | |
| 92 | // enum data: key, value |
| 93 | 12, uint(QStackedLayout::StackOne), |
| 94 | 13, uint(QStackedLayout::StackAll), |
| 95 | |
| 96 | 0 // eod |
| 97 | }; |
| 98 | |
| 99 | void QStackedLayout::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 100 | { |
| 101 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 102 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 103 | auto *_t = static_cast<QStackedLayout *>(_o); |
| 104 | Q_UNUSED(_t) |
| 105 | switch (_id) { |
| 106 | case 0: _t->widgetRemoved((*reinterpret_cast< int(*)>(_a[1]))); break; |
| 107 | case 1: _t->currentChanged((*reinterpret_cast< int(*)>(_a[1]))); break; |
| 108 | case 2: _t->setCurrentIndex((*reinterpret_cast< int(*)>(_a[1]))); break; |
| 109 | case 3: _t->setCurrentWidget((*reinterpret_cast< QWidget*(*)>(_a[1]))); break; |
| 110 | default: ; |
| 111 | } |
| 112 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 113 | int *result = reinterpret_cast<int *>(_a[0]); |
| 114 | { |
| 115 | using _t = void (QStackedLayout::*)(int ); |
| 116 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QStackedLayout::widgetRemoved)) { |
| 117 | *result = 0; |
| 118 | return; |
| 119 | } |
| 120 | } |
| 121 | { |
| 122 | using _t = void (QStackedLayout::*)(int ); |
| 123 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QStackedLayout::currentChanged)) { |
| 124 | *result = 1; |
| 125 | return; |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | #ifndef QT_NO_PROPERTIES |
| 130 | else if (_c == QMetaObject::ReadProperty) { |
| 131 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 132 | auto *_t = static_cast<QStackedLayout *>(_o); |
| 133 | Q_UNUSED(_t) |
| 134 | void *_v = _a[0]; |
| 135 | switch (_id) { |
| 136 | case 0: *reinterpret_cast< int*>(_v) = _t->currentIndex(); break; |
| 137 | case 1: *reinterpret_cast< StackingMode*>(_v) = _t->stackingMode(); break; |
| 138 | default: break; |
| 139 | } |
| 140 | } else if (_c == QMetaObject::WriteProperty) { |
| 141 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 142 | auto *_t = static_cast<QStackedLayout *>(_o); |
| 143 | Q_UNUSED(_t) |
| 144 | void *_v = _a[0]; |
| 145 | switch (_id) { |
| 146 | case 0: _t->setCurrentIndex(*reinterpret_cast< int*>(_v)); break; |
| 147 | case 1: _t->setStackingMode(*reinterpret_cast< StackingMode*>(_v)); break; |
| 148 | default: break; |
| 149 | } |
| 150 | } else if (_c == QMetaObject::ResetProperty) { |
| 151 | } else if (_c == QMetaObject::BindableProperty) { |
| 152 | } |
| 153 | #endif // QT_NO_PROPERTIES |
| 154 | } |
| 155 | |
| 156 | const QMetaObject QStackedLayout::staticMetaObject = { { |
| 157 | QMetaObject::SuperData::link<QLayout::staticMetaObject>(), |
| 158 | qt_meta_stringdata_QStackedLayout.offsetsAndSize, |
| 159 | qt_meta_data_QStackedLayout, |
| 160 | qt_static_metacall, |
| 161 | nullptr, |
| 162 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QStackedLayout_t |
| 163 | , QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<StackingMode, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type> |
| 164 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QWidget *, std::false_type> |
| 165 | |
| 166 | |
| 167 | >, |
| 168 | nullptr |
| 169 | } }; |
| 170 | |
| 171 | |
| 172 | const QMetaObject *QStackedLayout::metaObject() const |
| 173 | { |
| 174 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 175 | } |
| 176 | |
| 177 | void *QStackedLayout::qt_metacast(const char *_clname) |
| 178 | { |
| 179 | if (!_clname) return nullptr; |
| 180 | if (!strcmp(_clname, qt_meta_stringdata_QStackedLayout.stringdata0)) |
| 181 | return static_cast<void*>(this); |
| 182 | return QLayout::qt_metacast(_clname); |
| 183 | } |
| 184 | |
| 185 | int QStackedLayout::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
| 186 | { |
| 187 | _id = QLayout::qt_metacall(_c, _id, _a); |
| 188 | if (_id < 0) |
| 189 | return _id; |
| 190 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 191 | if (_id < 4) |
| 192 | qt_static_metacall(this, _c, _id, _a); |
| 193 | _id -= 4; |
| 194 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 195 | if (_id < 4) |
| 196 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 197 | _id -= 4; |
| 198 | } |
| 199 | #ifndef QT_NO_PROPERTIES |
| 200 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
| 201 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
| 202 | || _c == QMetaObject::RegisterPropertyMetaType) { |
| 203 | qt_static_metacall(this, _c, _id, _a); |
| 204 | _id -= 2; |
| 205 | } |
| 206 | #endif // QT_NO_PROPERTIES |
| 207 | return _id; |
| 208 | } |
| 209 | |
| 210 | // SIGNAL 0 |
| 211 | void QStackedLayout::widgetRemoved(int _t1) |
| 212 | { |
| 213 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
| 214 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
| 215 | } |
| 216 | |
| 217 | // SIGNAL 1 |
| 218 | void QStackedLayout::currentChanged(int _t1) |
| 219 | { |
| 220 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
| 221 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
| 222 | } |
| 223 | QT_WARNING_POP |
| 224 | QT_END_MOC_NAMESPACE |
| 225 | |