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