1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qcheckbox.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 "widgets/qcheckbox.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qcheckbox.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_QCheckBox_t { |
25 | const uint offsetsAndSize[8]; |
26 | char stringdata0[33]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QCheckBox_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QCheckBox_t qt_meta_stringdata_QCheckBox = { |
31 | { |
32 | QT_MOC_LITERAL(0, 9), // "QCheckBox" |
33 | QT_MOC_LITERAL(10, 12), // "stateChanged" |
34 | QT_MOC_LITERAL(23, 0), // "" |
35 | QT_MOC_LITERAL(24, 8) // "tristate" |
36 | |
37 | }, |
38 | "QCheckBox\0stateChanged\0\0tristate" |
39 | }; |
40 | #undef QT_MOC_LITERAL |
41 | |
42 | static const uint qt_meta_data_QCheckBox[] = { |
43 | |
44 | // content: |
45 | 9, // revision |
46 | 0, // classname |
47 | 0, 0, // classinfo |
48 | 1, 14, // methods |
49 | 1, 23, // properties |
50 | 0, 0, // enums/sets |
51 | 0, 0, // constructors |
52 | 0, // flags |
53 | 1, // signalCount |
54 | |
55 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
56 | 1, 1, 20, 2, 0x06, 1 /* Public */, |
57 | |
58 | // signals: parameters |
59 | QMetaType::Void, QMetaType::Int, 2, |
60 | |
61 | // properties: name, type, flags |
62 | 3, QMetaType::Bool, 0x00015103, uint(-1), 0, |
63 | |
64 | 0 // eod |
65 | }; |
66 | |
67 | void QCheckBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
68 | { |
69 | if (_c == QMetaObject::InvokeMetaMethod) { |
70 | Q_ASSERT(staticMetaObject.cast(_o)); |
71 | auto *_t = static_cast<QCheckBox *>(_o); |
72 | Q_UNUSED(_t) |
73 | switch (_id) { |
74 | case 0: _t->stateChanged((*reinterpret_cast< int(*)>(_a[1]))); break; |
75 | default: ; |
76 | } |
77 | } else if (_c == QMetaObject::IndexOfMethod) { |
78 | int *result = reinterpret_cast<int *>(_a[0]); |
79 | { |
80 | using _t = void (QCheckBox::*)(int ); |
81 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QCheckBox::stateChanged)) { |
82 | *result = 0; |
83 | return; |
84 | } |
85 | } |
86 | } |
87 | #ifndef QT_NO_PROPERTIES |
88 | else if (_c == QMetaObject::ReadProperty) { |
89 | Q_ASSERT(staticMetaObject.cast(_o)); |
90 | auto *_t = static_cast<QCheckBox *>(_o); |
91 | Q_UNUSED(_t) |
92 | void *_v = _a[0]; |
93 | switch (_id) { |
94 | case 0: *reinterpret_cast< bool*>(_v) = _t->isTristate(); break; |
95 | default: break; |
96 | } |
97 | } else if (_c == QMetaObject::WriteProperty) { |
98 | Q_ASSERT(staticMetaObject.cast(_o)); |
99 | auto *_t = static_cast<QCheckBox *>(_o); |
100 | Q_UNUSED(_t) |
101 | void *_v = _a[0]; |
102 | switch (_id) { |
103 | case 0: _t->setTristate(*reinterpret_cast< bool*>(_v)); break; |
104 | default: break; |
105 | } |
106 | } else if (_c == QMetaObject::ResetProperty) { |
107 | } else if (_c == QMetaObject::BindableProperty) { |
108 | } |
109 | #endif // QT_NO_PROPERTIES |
110 | } |
111 | |
112 | const QMetaObject QCheckBox::staticMetaObject = { { |
113 | QMetaObject::SuperData::link<QAbstractButton::staticMetaObject>(), |
114 | qt_meta_stringdata_QCheckBox.offsetsAndSize, |
115 | qt_meta_data_QCheckBox, |
116 | qt_static_metacall, |
117 | nullptr, |
118 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QCheckBox_t |
119 | , QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type> |
120 | |
121 | |
122 | |
123 | >, |
124 | nullptr |
125 | } }; |
126 | |
127 | |
128 | const QMetaObject *QCheckBox::metaObject() const |
129 | { |
130 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
131 | } |
132 | |
133 | void *QCheckBox::qt_metacast(const char *_clname) |
134 | { |
135 | if (!_clname) return nullptr; |
136 | if (!strcmp(_clname, qt_meta_stringdata_QCheckBox.stringdata0)) |
137 | return static_cast<void*>(this); |
138 | return QAbstractButton::qt_metacast(_clname); |
139 | } |
140 | |
141 | int QCheckBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
142 | { |
143 | _id = QAbstractButton::qt_metacall(_c, _id, _a); |
144 | if (_id < 0) |
145 | return _id; |
146 | if (_c == QMetaObject::InvokeMetaMethod) { |
147 | if (_id < 1) |
148 | qt_static_metacall(this, _c, _id, _a); |
149 | _id -= 1; |
150 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
151 | if (_id < 1) |
152 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
153 | _id -= 1; |
154 | } |
155 | #ifndef QT_NO_PROPERTIES |
156 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
157 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
158 | || _c == QMetaObject::RegisterPropertyMetaType) { |
159 | qt_static_metacall(this, _c, _id, _a); |
160 | _id -= 1; |
161 | } |
162 | #endif // QT_NO_PROPERTIES |
163 | return _id; |
164 | } |
165 | |
166 | // SIGNAL 0 |
167 | void QCheckBox::stateChanged(int _t1) |
168 | { |
169 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
170 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
171 | } |
172 | QT_WARNING_POP |
173 | QT_END_MOC_NAMESPACE |
174 | |