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