1/****************************************************************************
2** Meta object code from reading C++ file 'qdatetimeedit.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/qdatetimeedit.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qdatetimeedit.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_QDateTimeEdit_t {
25 const uint offsetsAndSize[78];
26 char stringdata0[476];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QDateTimeEdit_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QDateTimeEdit_t qt_meta_stringdata_QDateTimeEdit = {
31 {
32QT_MOC_LITERAL(0, 13), // "QDateTimeEdit"
33QT_MOC_LITERAL(14, 15), // "dateTimeChanged"
34QT_MOC_LITERAL(30, 0), // ""
35QT_MOC_LITERAL(31, 8), // "dateTime"
36QT_MOC_LITERAL(40, 11), // "timeChanged"
37QT_MOC_LITERAL(52, 4), // "time"
38QT_MOC_LITERAL(57, 11), // "dateChanged"
39QT_MOC_LITERAL(69, 4), // "date"
40QT_MOC_LITERAL(74, 11), // "setDateTime"
41QT_MOC_LITERAL(86, 7), // "setDate"
42QT_MOC_LITERAL(94, 7), // "setTime"
43QT_MOC_LITERAL(102, 14), // "_q_resetButton"
44QT_MOC_LITERAL(117, 15), // "maximumDateTime"
45QT_MOC_LITERAL(133, 15), // "minimumDateTime"
46QT_MOC_LITERAL(149, 11), // "maximumDate"
47QT_MOC_LITERAL(161, 11), // "minimumDate"
48QT_MOC_LITERAL(173, 11), // "maximumTime"
49QT_MOC_LITERAL(185, 11), // "minimumTime"
50QT_MOC_LITERAL(197, 14), // "currentSection"
51QT_MOC_LITERAL(212, 7), // "Section"
52QT_MOC_LITERAL(220, 17), // "displayedSections"
53QT_MOC_LITERAL(238, 8), // "Sections"
54QT_MOC_LITERAL(247, 13), // "displayFormat"
55QT_MOC_LITERAL(261, 13), // "calendarPopup"
56QT_MOC_LITERAL(275, 19), // "currentSectionIndex"
57QT_MOC_LITERAL(295, 12), // "sectionCount"
58QT_MOC_LITERAL(308, 8), // "timeSpec"
59QT_MOC_LITERAL(317, 12), // "Qt::TimeSpec"
60QT_MOC_LITERAL(330, 9), // "NoSection"
61QT_MOC_LITERAL(340, 11), // "AmPmSection"
62QT_MOC_LITERAL(352, 11), // "MSecSection"
63QT_MOC_LITERAL(364, 13), // "SecondSection"
64QT_MOC_LITERAL(378, 13), // "MinuteSection"
65QT_MOC_LITERAL(392, 11), // "HourSection"
66QT_MOC_LITERAL(404, 10), // "DaySection"
67QT_MOC_LITERAL(415, 12), // "MonthSection"
68QT_MOC_LITERAL(428, 11), // "YearSection"
69QT_MOC_LITERAL(440, 17), // "TimeSections_Mask"
70QT_MOC_LITERAL(458, 17) // "DateSections_Mask"
71
72 },
73 "QDateTimeEdit\0dateTimeChanged\0\0dateTime\0"
74 "timeChanged\0time\0dateChanged\0date\0"
75 "setDateTime\0setDate\0setTime\0_q_resetButton\0"
76 "maximumDateTime\0minimumDateTime\0"
77 "maximumDate\0minimumDate\0maximumTime\0"
78 "minimumTime\0currentSection\0Section\0"
79 "displayedSections\0Sections\0displayFormat\0"
80 "calendarPopup\0currentSectionIndex\0"
81 "sectionCount\0timeSpec\0Qt::TimeSpec\0"
82 "NoSection\0AmPmSection\0MSecSection\0"
83 "SecondSection\0MinuteSection\0HourSection\0"
84 "DaySection\0MonthSection\0YearSection\0"
85 "TimeSections_Mask\0DateSections_Mask"
86};
87#undef QT_MOC_LITERAL
88
89static const uint qt_meta_data_QDateTimeEdit[] = {
90
91 // content:
92 9, // revision
93 0, // classname
94 0, 0, // classinfo
95 7, 14, // methods
96 16, 75, // properties
97 2, 155, // enums/sets
98 0, 0, // constructors
99 0, // flags
100 3, // signalCount
101
102 // signals: name, argc, parameters, tag, flags, initial metatype offsets
103 1, 1, 56, 2, 0x06, 16 /* Public */,
104 4, 1, 59, 2, 0x06, 18 /* Public */,
105 6, 1, 62, 2, 0x06, 20 /* Public */,
106
107 // slots: name, argc, parameters, tag, flags, initial metatype offsets
108 8, 1, 65, 2, 0x0a, 22 /* Public */,
109 9, 1, 68, 2, 0x0a, 24 /* Public */,
110 10, 1, 71, 2, 0x0a, 26 /* Public */,
111 11, 0, 74, 2, 0x08, 28 /* Private */,
112
113 // signals: parameters
114 QMetaType::Void, QMetaType::QDateTime, 3,
115 QMetaType::Void, QMetaType::QTime, 5,
116 QMetaType::Void, QMetaType::QDate, 7,
117
118 // slots: parameters
119 QMetaType::Void, QMetaType::QDateTime, 3,
120 QMetaType::Void, QMetaType::QDate, 7,
121 QMetaType::Void, QMetaType::QTime, 5,
122 QMetaType::Void,
123
124 // properties: name, type, flags
125 3, QMetaType::QDateTime, 0x00115103, uint(0), 0,
126 7, QMetaType::QDate, 0x00015103, uint(2), 0,
127 5, QMetaType::QTime, 0x00015103, uint(1), 0,
128 12, QMetaType::QDateTime, 0x00015107, uint(-1), 0,
129 13, QMetaType::QDateTime, 0x00015107, uint(-1), 0,
130 14, QMetaType::QDate, 0x00015107, uint(-1), 0,
131 15, QMetaType::QDate, 0x00015107, uint(-1), 0,
132 16, QMetaType::QTime, 0x00015107, uint(-1), 0,
133 17, QMetaType::QTime, 0x00015107, uint(-1), 0,
134 18, 0x80000000 | 19, 0x0001510b, uint(-1), 0,
135 20, 0x80000000 | 21, 0x00015009, uint(-1), 0,
136 22, QMetaType::QString, 0x00015103, uint(-1), 0,
137 23, QMetaType::Bool, 0x00015103, uint(-1), 0,
138 24, QMetaType::Int, 0x00015103, uint(-1), 0,
139 25, QMetaType::Int, 0x00015001, uint(-1), 0,
140 26, 0x80000000 | 27, 0x0001510b, uint(-1), 0,
141
142 // enums: name, alias, flags, count, data
143 19, 19, 0x0, 11, 165,
144 21, 19, 0x1, 11, 187,
145
146 // enum data: key, value
147 28, uint(QDateTimeEdit::NoSection),
148 29, uint(QDateTimeEdit::AmPmSection),
149 30, uint(QDateTimeEdit::MSecSection),
150 31, uint(QDateTimeEdit::SecondSection),
151 32, uint(QDateTimeEdit::MinuteSection),
152 33, uint(QDateTimeEdit::HourSection),
153 34, uint(QDateTimeEdit::DaySection),
154 35, uint(QDateTimeEdit::MonthSection),
155 36, uint(QDateTimeEdit::YearSection),
156 37, uint(QDateTimeEdit::TimeSections_Mask),
157 38, uint(QDateTimeEdit::DateSections_Mask),
158 28, uint(QDateTimeEdit::NoSection),
159 29, uint(QDateTimeEdit::AmPmSection),
160 30, uint(QDateTimeEdit::MSecSection),
161 31, uint(QDateTimeEdit::SecondSection),
162 32, uint(QDateTimeEdit::MinuteSection),
163 33, uint(QDateTimeEdit::HourSection),
164 34, uint(QDateTimeEdit::DaySection),
165 35, uint(QDateTimeEdit::MonthSection),
166 36, uint(QDateTimeEdit::YearSection),
167 37, uint(QDateTimeEdit::TimeSections_Mask),
168 38, uint(QDateTimeEdit::DateSections_Mask),
169
170 0 // eod
171};
172
173void QDateTimeEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
174{
175 if (_c == QMetaObject::InvokeMetaMethod) {
176 Q_ASSERT(staticMetaObject.cast(_o));
177 auto *_t = static_cast<QDateTimeEdit *>(_o);
178 Q_UNUSED(_t)
179 switch (_id) {
180 case 0: _t->dateTimeChanged((*reinterpret_cast< const QDateTime(*)>(_a[1]))); break;
181 case 1: _t->timeChanged((*reinterpret_cast< QTime(*)>(_a[1]))); break;
182 case 2: _t->dateChanged((*reinterpret_cast< QDate(*)>(_a[1]))); break;
183 case 3: _t->setDateTime((*reinterpret_cast< const QDateTime(*)>(_a[1]))); break;
184 case 4: _t->setDate((*reinterpret_cast< QDate(*)>(_a[1]))); break;
185 case 5: _t->setTime((*reinterpret_cast< QTime(*)>(_a[1]))); break;
186 case 6: _t->d_func()->_q_resetButton(); break;
187 default: ;
188 }
189 } else if (_c == QMetaObject::IndexOfMethod) {
190 int *result = reinterpret_cast<int *>(_a[0]);
191 {
192 using _t = void (QDateTimeEdit::*)(const QDateTime & );
193 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDateTimeEdit::dateTimeChanged)) {
194 *result = 0;
195 return;
196 }
197 }
198 {
199 using _t = void (QDateTimeEdit::*)(QTime );
200 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDateTimeEdit::timeChanged)) {
201 *result = 1;
202 return;
203 }
204 }
205 {
206 using _t = void (QDateTimeEdit::*)(QDate );
207 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDateTimeEdit::dateChanged)) {
208 *result = 2;
209 return;
210 }
211 }
212 }
213#ifndef QT_NO_PROPERTIES
214 else if (_c == QMetaObject::ReadProperty) {
215 Q_ASSERT(staticMetaObject.cast(_o));
216 auto *_t = static_cast<QDateTimeEdit *>(_o);
217 Q_UNUSED(_t)
218 void *_v = _a[0];
219 switch (_id) {
220 case 0: *reinterpret_cast< QDateTime*>(_v) = _t->dateTime(); break;
221 case 1: *reinterpret_cast< QDate*>(_v) = _t->date(); break;
222 case 2: *reinterpret_cast< QTime*>(_v) = _t->time(); break;
223 case 3: *reinterpret_cast< QDateTime*>(_v) = _t->maximumDateTime(); break;
224 case 4: *reinterpret_cast< QDateTime*>(_v) = _t->minimumDateTime(); break;
225 case 5: *reinterpret_cast< QDate*>(_v) = _t->maximumDate(); break;
226 case 6: *reinterpret_cast< QDate*>(_v) = _t->minimumDate(); break;
227 case 7: *reinterpret_cast< QTime*>(_v) = _t->maximumTime(); break;
228 case 8: *reinterpret_cast< QTime*>(_v) = _t->minimumTime(); break;
229 case 9: *reinterpret_cast< Section*>(_v) = _t->currentSection(); break;
230 case 10: *reinterpret_cast<int*>(_v) = QFlag(_t->displayedSections()); break;
231 case 11: *reinterpret_cast< QString*>(_v) = _t->displayFormat(); break;
232 case 12: *reinterpret_cast< bool*>(_v) = _t->calendarPopup(); break;
233 case 13: *reinterpret_cast< int*>(_v) = _t->currentSectionIndex(); break;
234 case 14: *reinterpret_cast< int*>(_v) = _t->sectionCount(); break;
235 case 15: *reinterpret_cast< Qt::TimeSpec*>(_v) = _t->timeSpec(); break;
236 default: break;
237 }
238 } else if (_c == QMetaObject::WriteProperty) {
239 Q_ASSERT(staticMetaObject.cast(_o));
240 auto *_t = static_cast<QDateTimeEdit *>(_o);
241 Q_UNUSED(_t)
242 void *_v = _a[0];
243 switch (_id) {
244 case 0: _t->setDateTime(*reinterpret_cast< QDateTime*>(_v)); break;
245 case 1: _t->setDate(*reinterpret_cast< QDate*>(_v)); break;
246 case 2: _t->setTime(*reinterpret_cast< QTime*>(_v)); break;
247 case 3: _t->setMaximumDateTime(*reinterpret_cast< QDateTime*>(_v)); break;
248 case 4: _t->setMinimumDateTime(*reinterpret_cast< QDateTime*>(_v)); break;
249 case 5: _t->setMaximumDate(*reinterpret_cast< QDate*>(_v)); break;
250 case 6: _t->setMinimumDate(*reinterpret_cast< QDate*>(_v)); break;
251 case 7: _t->setMaximumTime(*reinterpret_cast< QTime*>(_v)); break;
252 case 8: _t->setMinimumTime(*reinterpret_cast< QTime*>(_v)); break;
253 case 9: _t->setCurrentSection(*reinterpret_cast< Section*>(_v)); break;
254 case 11: _t->setDisplayFormat(*reinterpret_cast< QString*>(_v)); break;
255 case 12: _t->setCalendarPopup(*reinterpret_cast< bool*>(_v)); break;
256 case 13: _t->setCurrentSectionIndex(*reinterpret_cast< int*>(_v)); break;
257 case 15: _t->setTimeSpec(*reinterpret_cast< Qt::TimeSpec*>(_v)); break;
258 default: break;
259 }
260 } else if (_c == QMetaObject::ResetProperty) {
261 Q_ASSERT(staticMetaObject.cast(_o));
262 auto *_t = static_cast<QDateTimeEdit *>(_o);
263 Q_UNUSED(_t)
264 switch (_id) {
265 case 3: _t->clearMaximumDateTime(); break;
266 case 4: _t->clearMinimumDateTime(); break;
267 case 5: _t->clearMaximumDate(); break;
268 case 6: _t->clearMinimumDate(); break;
269 case 7: _t->clearMaximumTime(); break;
270 case 8: _t->clearMinimumTime(); break;
271 default: break;
272 }
273 } else if (_c == QMetaObject::BindableProperty) {
274 }
275#endif // QT_NO_PROPERTIES
276}
277
278const QMetaObject QDateTimeEdit::staticMetaObject = { {
279 QMetaObject::SuperData::link<QAbstractSpinBox::staticMetaObject>(),
280 qt_meta_stringdata_QDateTimeEdit.offsetsAndSize,
281 qt_meta_data_QDateTimeEdit,
282 qt_static_metacall,
283 nullptr,
284qt_incomplete_metaTypeArray<qt_meta_stringdata_QDateTimeEdit_t
285, QtPrivate::TypeAndForceComplete<QDateTime, std::true_type>, QtPrivate::TypeAndForceComplete<QDate, std::true_type>, QtPrivate::TypeAndForceComplete<QTime, std::true_type>, QtPrivate::TypeAndForceComplete<QDateTime, std::true_type>, QtPrivate::TypeAndForceComplete<QDateTime, std::true_type>, QtPrivate::TypeAndForceComplete<QDate, std::true_type>, QtPrivate::TypeAndForceComplete<QDate, std::true_type>, QtPrivate::TypeAndForceComplete<QTime, std::true_type>, QtPrivate::TypeAndForceComplete<QTime, std::true_type>, QtPrivate::TypeAndForceComplete<Section, std::true_type>, QtPrivate::TypeAndForceComplete<Sections, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::TimeSpec, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QDateTime &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QTime, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QDate, std::false_type>
286, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QDateTime &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QDate, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QTime, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
287
288
289>,
290 nullptr
291} };
292
293
294const QMetaObject *QDateTimeEdit::metaObject() const
295{
296 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
297}
298
299void *QDateTimeEdit::qt_metacast(const char *_clname)
300{
301 if (!_clname) return nullptr;
302 if (!strcmp(_clname, qt_meta_stringdata_QDateTimeEdit.stringdata0))
303 return static_cast<void*>(this);
304 return QAbstractSpinBox::qt_metacast(_clname);
305}
306
307int QDateTimeEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
308{
309 _id = QAbstractSpinBox::qt_metacall(_c, _id, _a);
310 if (_id < 0)
311 return _id;
312 if (_c == QMetaObject::InvokeMetaMethod) {
313 if (_id < 7)
314 qt_static_metacall(this, _c, _id, _a);
315 _id -= 7;
316 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
317 if (_id < 7)
318 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
319 _id -= 7;
320 }
321#ifndef QT_NO_PROPERTIES
322 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
323 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
324 || _c == QMetaObject::RegisterPropertyMetaType) {
325 qt_static_metacall(this, _c, _id, _a);
326 _id -= 16;
327 }
328#endif // QT_NO_PROPERTIES
329 return _id;
330}
331
332// SIGNAL 0
333void QDateTimeEdit::dateTimeChanged(const QDateTime & _t1)
334{
335 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
336 QMetaObject::activate(this, &staticMetaObject, 0, _a);
337}
338
339// SIGNAL 1
340void QDateTimeEdit::timeChanged(QTime _t1)
341{
342 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
343 QMetaObject::activate(this, &staticMetaObject, 1, _a);
344}
345
346// SIGNAL 2
347void QDateTimeEdit::dateChanged(QDate _t1)
348{
349 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
350 QMetaObject::activate(this, &staticMetaObject, 2, _a);
351}
352struct qt_meta_stringdata_QTimeEdit_t {
353 const uint offsetsAndSize[8];
354 char stringdata0[32];
355};
356#define QT_MOC_LITERAL(ofs, len) \
357 uint(offsetof(qt_meta_stringdata_QTimeEdit_t, stringdata0) + ofs), len
358static const qt_meta_stringdata_QTimeEdit_t qt_meta_stringdata_QTimeEdit = {
359 {
360QT_MOC_LITERAL(0, 9), // "QTimeEdit"
361QT_MOC_LITERAL(10, 15), // "userTimeChanged"
362QT_MOC_LITERAL(26, 0), // ""
363QT_MOC_LITERAL(27, 4) // "time"
364
365 },
366 "QTimeEdit\0userTimeChanged\0\0time"
367};
368#undef QT_MOC_LITERAL
369
370static const uint qt_meta_data_QTimeEdit[] = {
371
372 // content:
373 9, // revision
374 0, // classname
375 0, 0, // classinfo
376 1, 14, // methods
377 1, 23, // properties
378 0, 0, // enums/sets
379 0, 0, // constructors
380 0, // flags
381 1, // signalCount
382
383 // signals: name, argc, parameters, tag, flags, initial metatype offsets
384 1, 1, 20, 2, 0x06, 1 /* Public */,
385
386 // signals: parameters
387 QMetaType::Void, QMetaType::QTime, 3,
388
389 // properties: name, type, flags
390 3, QMetaType::QTime, 0x00115103, uint(0), 0,
391
392 0 // eod
393};
394
395void QTimeEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
396{
397 if (_c == QMetaObject::InvokeMetaMethod) {
398 Q_ASSERT(staticMetaObject.cast(_o));
399 auto *_t = static_cast<QTimeEdit *>(_o);
400 Q_UNUSED(_t)
401 switch (_id) {
402 case 0: _t->userTimeChanged((*reinterpret_cast< QTime(*)>(_a[1]))); break;
403 default: ;
404 }
405 } else if (_c == QMetaObject::IndexOfMethod) {
406 int *result = reinterpret_cast<int *>(_a[0]);
407 {
408 using _t = void (QTimeEdit::*)(QTime );
409 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTimeEdit::userTimeChanged)) {
410 *result = 0;
411 return;
412 }
413 }
414 }
415#ifndef QT_NO_PROPERTIES
416 else if (_c == QMetaObject::ReadProperty) {
417 Q_ASSERT(staticMetaObject.cast(_o));
418 auto *_t = static_cast<QTimeEdit *>(_o);
419 Q_UNUSED(_t)
420 void *_v = _a[0];
421 switch (_id) {
422 case 0: *reinterpret_cast< QTime*>(_v) = _t->time(); break;
423 default: break;
424 }
425 } else if (_c == QMetaObject::WriteProperty) {
426 Q_ASSERT(staticMetaObject.cast(_o));
427 auto *_t = static_cast<QTimeEdit *>(_o);
428 Q_UNUSED(_t)
429 void *_v = _a[0];
430 switch (_id) {
431 case 0: _t->setTime(*reinterpret_cast< QTime*>(_v)); break;
432 default: break;
433 }
434 } else if (_c == QMetaObject::ResetProperty) {
435 } else if (_c == QMetaObject::BindableProperty) {
436 }
437#endif // QT_NO_PROPERTIES
438}
439
440const QMetaObject QTimeEdit::staticMetaObject = { {
441 QMetaObject::SuperData::link<QDateTimeEdit::staticMetaObject>(),
442 qt_meta_stringdata_QTimeEdit.offsetsAndSize,
443 qt_meta_data_QTimeEdit,
444 qt_static_metacall,
445 nullptr,
446qt_incomplete_metaTypeArray<qt_meta_stringdata_QTimeEdit_t
447, QtPrivate::TypeAndForceComplete<QTime, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QTime, std::false_type>
448
449
450
451>,
452 nullptr
453} };
454
455
456const QMetaObject *QTimeEdit::metaObject() const
457{
458 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
459}
460
461void *QTimeEdit::qt_metacast(const char *_clname)
462{
463 if (!_clname) return nullptr;
464 if (!strcmp(_clname, qt_meta_stringdata_QTimeEdit.stringdata0))
465 return static_cast<void*>(this);
466 return QDateTimeEdit::qt_metacast(_clname);
467}
468
469int QTimeEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
470{
471 _id = QDateTimeEdit::qt_metacall(_c, _id, _a);
472 if (_id < 0)
473 return _id;
474 if (_c == QMetaObject::InvokeMetaMethod) {
475 if (_id < 1)
476 qt_static_metacall(this, _c, _id, _a);
477 _id -= 1;
478 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
479 if (_id < 1)
480 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
481 _id -= 1;
482 }
483#ifndef QT_NO_PROPERTIES
484 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
485 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
486 || _c == QMetaObject::RegisterPropertyMetaType) {
487 qt_static_metacall(this, _c, _id, _a);
488 _id -= 1;
489 }
490#endif // QT_NO_PROPERTIES
491 return _id;
492}
493
494// SIGNAL 0
495void QTimeEdit::userTimeChanged(QTime _t1)
496{
497 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
498 QMetaObject::activate(this, &staticMetaObject, 0, _a);
499}
500struct qt_meta_stringdata_QDateEdit_t {
501 const uint offsetsAndSize[8];
502 char stringdata0[32];
503};
504#define QT_MOC_LITERAL(ofs, len) \
505 uint(offsetof(qt_meta_stringdata_QDateEdit_t, stringdata0) + ofs), len
506static const qt_meta_stringdata_QDateEdit_t qt_meta_stringdata_QDateEdit = {
507 {
508QT_MOC_LITERAL(0, 9), // "QDateEdit"
509QT_MOC_LITERAL(10, 15), // "userDateChanged"
510QT_MOC_LITERAL(26, 0), // ""
511QT_MOC_LITERAL(27, 4) // "date"
512
513 },
514 "QDateEdit\0userDateChanged\0\0date"
515};
516#undef QT_MOC_LITERAL
517
518static const uint qt_meta_data_QDateEdit[] = {
519
520 // content:
521 9, // revision
522 0, // classname
523 0, 0, // classinfo
524 1, 14, // methods
525 1, 23, // properties
526 0, 0, // enums/sets
527 0, 0, // constructors
528 0, // flags
529 1, // signalCount
530
531 // signals: name, argc, parameters, tag, flags, initial metatype offsets
532 1, 1, 20, 2, 0x06, 1 /* Public */,
533
534 // signals: parameters
535 QMetaType::Void, QMetaType::QDate, 3,
536
537 // properties: name, type, flags
538 3, QMetaType::QDate, 0x00115103, uint(0), 0,
539
540 0 // eod
541};
542
543void QDateEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
544{
545 if (_c == QMetaObject::InvokeMetaMethod) {
546 Q_ASSERT(staticMetaObject.cast(_o));
547 auto *_t = static_cast<QDateEdit *>(_o);
548 Q_UNUSED(_t)
549 switch (_id) {
550 case 0: _t->userDateChanged((*reinterpret_cast< QDate(*)>(_a[1]))); break;
551 default: ;
552 }
553 } else if (_c == QMetaObject::IndexOfMethod) {
554 int *result = reinterpret_cast<int *>(_a[0]);
555 {
556 using _t = void (QDateEdit::*)(QDate );
557 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDateEdit::userDateChanged)) {
558 *result = 0;
559 return;
560 }
561 }
562 }
563#ifndef QT_NO_PROPERTIES
564 else if (_c == QMetaObject::ReadProperty) {
565 Q_ASSERT(staticMetaObject.cast(_o));
566 auto *_t = static_cast<QDateEdit *>(_o);
567 Q_UNUSED(_t)
568 void *_v = _a[0];
569 switch (_id) {
570 case 0: *reinterpret_cast< QDate*>(_v) = _t->date(); break;
571 default: break;
572 }
573 } else if (_c == QMetaObject::WriteProperty) {
574 Q_ASSERT(staticMetaObject.cast(_o));
575 auto *_t = static_cast<QDateEdit *>(_o);
576 Q_UNUSED(_t)
577 void *_v = _a[0];
578 switch (_id) {
579 case 0: _t->setDate(*reinterpret_cast< QDate*>(_v)); break;
580 default: break;
581 }
582 } else if (_c == QMetaObject::ResetProperty) {
583 } else if (_c == QMetaObject::BindableProperty) {
584 }
585#endif // QT_NO_PROPERTIES
586}
587
588const QMetaObject QDateEdit::staticMetaObject = { {
589 QMetaObject::SuperData::link<QDateTimeEdit::staticMetaObject>(),
590 qt_meta_stringdata_QDateEdit.offsetsAndSize,
591 qt_meta_data_QDateEdit,
592 qt_static_metacall,
593 nullptr,
594qt_incomplete_metaTypeArray<qt_meta_stringdata_QDateEdit_t
595, QtPrivate::TypeAndForceComplete<QDate, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QDate, std::false_type>
596
597
598
599>,
600 nullptr
601} };
602
603
604const QMetaObject *QDateEdit::metaObject() const
605{
606 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
607}
608
609void *QDateEdit::qt_metacast(const char *_clname)
610{
611 if (!_clname) return nullptr;
612 if (!strcmp(_clname, qt_meta_stringdata_QDateEdit.stringdata0))
613 return static_cast<void*>(this);
614 return QDateTimeEdit::qt_metacast(_clname);
615}
616
617int QDateEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
618{
619 _id = QDateTimeEdit::qt_metacall(_c, _id, _a);
620 if (_id < 0)
621 return _id;
622 if (_c == QMetaObject::InvokeMetaMethod) {
623 if (_id < 1)
624 qt_static_metacall(this, _c, _id, _a);
625 _id -= 1;
626 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
627 if (_id < 1)
628 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
629 _id -= 1;
630 }
631#ifndef QT_NO_PROPERTIES
632 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
633 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
634 || _c == QMetaObject::RegisterPropertyMetaType) {
635 qt_static_metacall(this, _c, _id, _a);
636 _id -= 1;
637 }
638#endif // QT_NO_PROPERTIES
639 return _id;
640}
641
642// SIGNAL 0
643void QDateEdit::userDateChanged(QDate _t1)
644{
645 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
646 QMetaObject::activate(this, &staticMetaObject, 0, _a);
647}
648QT_WARNING_POP
649QT_END_MOC_NAMESPACE
650