1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qprogressbar.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/qprogressbar.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qprogressbar.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_QProgressBar_t { |
25 | const uint offsetsAndSize[48]; |
26 | char stringdata0[253]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QProgressBar_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QProgressBar_t qt_meta_stringdata_QProgressBar = { |
31 | { |
32 | QT_MOC_LITERAL(0, 12), // "QProgressBar" |
33 | QT_MOC_LITERAL(13, 12), // "valueChanged" |
34 | QT_MOC_LITERAL(26, 0), // "" |
35 | QT_MOC_LITERAL(27, 5), // "value" |
36 | QT_MOC_LITERAL(33, 5), // "reset" |
37 | QT_MOC_LITERAL(39, 8), // "setRange" |
38 | QT_MOC_LITERAL(48, 7), // "minimum" |
39 | QT_MOC_LITERAL(56, 7), // "maximum" |
40 | QT_MOC_LITERAL(64, 10), // "setMinimum" |
41 | QT_MOC_LITERAL(75, 10), // "setMaximum" |
42 | QT_MOC_LITERAL(86, 8), // "setValue" |
43 | QT_MOC_LITERAL(95, 14), // "setOrientation" |
44 | QT_MOC_LITERAL(110, 15), // "Qt::Orientation" |
45 | QT_MOC_LITERAL(126, 4), // "text" |
46 | QT_MOC_LITERAL(131, 9), // "alignment" |
47 | QT_MOC_LITERAL(141, 13), // "Qt::Alignment" |
48 | QT_MOC_LITERAL(155, 11), // "textVisible" |
49 | QT_MOC_LITERAL(167, 11), // "orientation" |
50 | QT_MOC_LITERAL(179, 18), // "invertedAppearance" |
51 | QT_MOC_LITERAL(198, 13), // "textDirection" |
52 | QT_MOC_LITERAL(212, 9), // "Direction" |
53 | QT_MOC_LITERAL(222, 6), // "format" |
54 | QT_MOC_LITERAL(229, 11), // "TopToBottom" |
55 | QT_MOC_LITERAL(241, 11) // "BottomToTop" |
56 | |
57 | }, |
58 | "QProgressBar\0valueChanged\0\0value\0reset\0" |
59 | "setRange\0minimum\0maximum\0setMinimum\0" |
60 | "setMaximum\0setValue\0setOrientation\0" |
61 | "Qt::Orientation\0text\0alignment\0" |
62 | "Qt::Alignment\0textVisible\0orientation\0" |
63 | "invertedAppearance\0textDirection\0" |
64 | "Direction\0format\0TopToBottom\0BottomToTop" |
65 | }; |
66 | #undef QT_MOC_LITERAL |
67 | |
68 | static const uint qt_meta_data_QProgressBar[] = { |
69 | |
70 | // content: |
71 | 9, // revision |
72 | 0, // classname |
73 | 0, 0, // classinfo |
74 | 7, 14, // methods |
75 | 10, 77, // properties |
76 | 1, 127, // enums/sets |
77 | 0, 0, // constructors |
78 | 0, // flags |
79 | 1, // signalCount |
80 | |
81 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
82 | 1, 1, 56, 2, 0x06, 10 /* Public */, |
83 | |
84 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
85 | 4, 0, 59, 2, 0x0a, 12 /* Public */, |
86 | 5, 2, 60, 2, 0x0a, 13 /* Public */, |
87 | 8, 1, 65, 2, 0x0a, 16 /* Public */, |
88 | 9, 1, 68, 2, 0x0a, 18 /* Public */, |
89 | 10, 1, 71, 2, 0x0a, 20 /* Public */, |
90 | 11, 1, 74, 2, 0x0a, 22 /* Public */, |
91 | |
92 | // signals: parameters |
93 | QMetaType::Void, QMetaType::Int, 3, |
94 | |
95 | // slots: parameters |
96 | QMetaType::Void, |
97 | QMetaType::Void, QMetaType::Int, QMetaType::Int, 6, 7, |
98 | QMetaType::Void, QMetaType::Int, 6, |
99 | QMetaType::Void, QMetaType::Int, 7, |
100 | QMetaType::Void, QMetaType::Int, 3, |
101 | QMetaType::Void, 0x80000000 | 12, 2, |
102 | |
103 | // properties: name, type, flags |
104 | 6, QMetaType::Int, 0x00015103, uint(-1), 0, |
105 | 7, QMetaType::Int, 0x00015103, uint(-1), 0, |
106 | 13, QMetaType::QString, 0x00015001, uint(-1), 0, |
107 | 3, QMetaType::Int, 0x00015103, uint(0), 0, |
108 | 14, 0x80000000 | 15, 0x0001510b, uint(-1), 0, |
109 | 16, QMetaType::Bool, 0x00015103, uint(-1), 0, |
110 | 17, 0x80000000 | 12, 0x0001510b, uint(-1), 0, |
111 | 18, QMetaType::Bool, 0x00015103, uint(-1), 0, |
112 | 19, 0x80000000 | 20, 0x0001510b, uint(-1), 0, |
113 | 21, QMetaType::QString, 0x00015107, uint(-1), 0, |
114 | |
115 | // enums: name, alias, flags, count, data |
116 | 20, 20, 0x0, 2, 132, |
117 | |
118 | // enum data: key, value |
119 | 22, uint(QProgressBar::TopToBottom), |
120 | 23, uint(QProgressBar::BottomToTop), |
121 | |
122 | 0 // eod |
123 | }; |
124 | |
125 | void QProgressBar::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
126 | { |
127 | if (_c == QMetaObject::InvokeMetaMethod) { |
128 | Q_ASSERT(staticMetaObject.cast(_o)); |
129 | auto *_t = static_cast<QProgressBar *>(_o); |
130 | Q_UNUSED(_t) |
131 | switch (_id) { |
132 | case 0: _t->valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break; |
133 | case 1: _t->reset(); break; |
134 | case 2: _t->setRange((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; |
135 | case 3: _t->setMinimum((*reinterpret_cast< int(*)>(_a[1]))); break; |
136 | case 4: _t->setMaximum((*reinterpret_cast< int(*)>(_a[1]))); break; |
137 | case 5: _t->setValue((*reinterpret_cast< int(*)>(_a[1]))); break; |
138 | case 6: _t->setOrientation((*reinterpret_cast< Qt::Orientation(*)>(_a[1]))); break; |
139 | default: ; |
140 | } |
141 | } else if (_c == QMetaObject::IndexOfMethod) { |
142 | int *result = reinterpret_cast<int *>(_a[0]); |
143 | { |
144 | using _t = void (QProgressBar::*)(int ); |
145 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QProgressBar::valueChanged)) { |
146 | *result = 0; |
147 | return; |
148 | } |
149 | } |
150 | } |
151 | #ifndef QT_NO_PROPERTIES |
152 | else if (_c == QMetaObject::ReadProperty) { |
153 | Q_ASSERT(staticMetaObject.cast(_o)); |
154 | auto *_t = static_cast<QProgressBar *>(_o); |
155 | Q_UNUSED(_t) |
156 | void *_v = _a[0]; |
157 | switch (_id) { |
158 | case 0: *reinterpret_cast< int*>(_v) = _t->minimum(); break; |
159 | case 1: *reinterpret_cast< int*>(_v) = _t->maximum(); break; |
160 | case 2: *reinterpret_cast< QString*>(_v) = _t->text(); break; |
161 | case 3: *reinterpret_cast< int*>(_v) = _t->value(); break; |
162 | case 4: *reinterpret_cast< Qt::Alignment*>(_v) = _t->alignment(); break; |
163 | case 5: *reinterpret_cast< bool*>(_v) = _t->isTextVisible(); break; |
164 | case 6: *reinterpret_cast< Qt::Orientation*>(_v) = _t->orientation(); break; |
165 | case 7: *reinterpret_cast< bool*>(_v) = _t->invertedAppearance(); break; |
166 | case 8: *reinterpret_cast< Direction*>(_v) = _t->textDirection(); break; |
167 | case 9: *reinterpret_cast< QString*>(_v) = _t->format(); break; |
168 | default: break; |
169 | } |
170 | } else if (_c == QMetaObject::WriteProperty) { |
171 | Q_ASSERT(staticMetaObject.cast(_o)); |
172 | auto *_t = static_cast<QProgressBar *>(_o); |
173 | Q_UNUSED(_t) |
174 | void *_v = _a[0]; |
175 | switch (_id) { |
176 | case 0: _t->setMinimum(*reinterpret_cast< int*>(_v)); break; |
177 | case 1: _t->setMaximum(*reinterpret_cast< int*>(_v)); break; |
178 | case 3: _t->setValue(*reinterpret_cast< int*>(_v)); break; |
179 | case 4: _t->setAlignment(*reinterpret_cast< Qt::Alignment*>(_v)); break; |
180 | case 5: _t->setTextVisible(*reinterpret_cast< bool*>(_v)); break; |
181 | case 6: _t->setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break; |
182 | case 7: _t->setInvertedAppearance(*reinterpret_cast< bool*>(_v)); break; |
183 | case 8: _t->setTextDirection(*reinterpret_cast< Direction*>(_v)); break; |
184 | case 9: _t->setFormat(*reinterpret_cast< QString*>(_v)); break; |
185 | default: break; |
186 | } |
187 | } else if (_c == QMetaObject::ResetProperty) { |
188 | Q_ASSERT(staticMetaObject.cast(_o)); |
189 | auto *_t = static_cast<QProgressBar *>(_o); |
190 | Q_UNUSED(_t) |
191 | switch (_id) { |
192 | case 9: _t->resetFormat(); break; |
193 | default: break; |
194 | } |
195 | } else if (_c == QMetaObject::BindableProperty) { |
196 | } |
197 | #endif // QT_NO_PROPERTIES |
198 | } |
199 | |
200 | const QMetaObject QProgressBar::staticMetaObject = { { |
201 | QMetaObject::SuperData::link<QWidget::staticMetaObject>(), |
202 | qt_meta_stringdata_QProgressBar.offsetsAndSize, |
203 | qt_meta_data_QProgressBar, |
204 | qt_static_metacall, |
205 | nullptr, |
206 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QProgressBar_t |
207 | , QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::Alignment, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::Orientation, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<Direction, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type> |
208 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_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>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::Orientation, std::false_type> |
209 | |
210 | |
211 | >, |
212 | nullptr |
213 | } }; |
214 | |
215 | |
216 | const QMetaObject *QProgressBar::metaObject() const |
217 | { |
218 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
219 | } |
220 | |
221 | void *QProgressBar::qt_metacast(const char *_clname) |
222 | { |
223 | if (!_clname) return nullptr; |
224 | if (!strcmp(_clname, qt_meta_stringdata_QProgressBar.stringdata0)) |
225 | return static_cast<void*>(this); |
226 | return QWidget::qt_metacast(_clname); |
227 | } |
228 | |
229 | int QProgressBar::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
230 | { |
231 | _id = QWidget::qt_metacall(_c, _id, _a); |
232 | if (_id < 0) |
233 | return _id; |
234 | if (_c == QMetaObject::InvokeMetaMethod) { |
235 | if (_id < 7) |
236 | qt_static_metacall(this, _c, _id, _a); |
237 | _id -= 7; |
238 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
239 | if (_id < 7) |
240 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
241 | _id -= 7; |
242 | } |
243 | #ifndef QT_NO_PROPERTIES |
244 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
245 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
246 | || _c == QMetaObject::RegisterPropertyMetaType) { |
247 | qt_static_metacall(this, _c, _id, _a); |
248 | _id -= 10; |
249 | } |
250 | #endif // QT_NO_PROPERTIES |
251 | return _id; |
252 | } |
253 | |
254 | // SIGNAL 0 |
255 | void QProgressBar::valueChanged(int _t1) |
256 | { |
257 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
258 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
259 | } |
260 | QT_WARNING_POP |
261 | QT_END_MOC_NAMESPACE |
262 | |