1/****************************************************************************
2** Meta object code from reading C++ file 'qmenu.cpp'
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 <QtCore/qbytearray.h>
11#include <QtCore/qmetatype.h>
12#if !defined(Q_MOC_OUTPUT_REVISION)
13#error "The header file 'qmenu.cpp' doesn't include <QObject>."
14#elif Q_MOC_OUTPUT_REVISION != 68
15#error "This file was generated using the moc from 6.0.0. It"
16#error "cannot be used with the include files from this version of Qt."
17#error "(The moc has changed too much.)"
18#endif
19
20QT_BEGIN_MOC_NAMESPACE
21QT_WARNING_PUSH
22QT_WARNING_DISABLE_DEPRECATED
23struct qt_meta_stringdata_QTornOffMenu_t {
24 const uint offsetsAndSize[12];
25 char stringdata0[50];
26};
27#define QT_MOC_LITERAL(ofs, len) \
28 uint(offsetof(qt_meta_stringdata_QTornOffMenu_t, stringdata0) + ofs), len
29static const qt_meta_stringdata_QTornOffMenu_t qt_meta_stringdata_QTornOffMenu = {
30 {
31QT_MOC_LITERAL(0, 12), // "QTornOffMenu"
32QT_MOC_LITERAL(13, 9), // "onTrigger"
33QT_MOC_LITERAL(23, 0), // ""
34QT_MOC_LITERAL(24, 8), // "QAction*"
35QT_MOC_LITERAL(33, 6), // "action"
36QT_MOC_LITERAL(40, 9) // "onHovered"
37
38 },
39 "QTornOffMenu\0onTrigger\0\0QAction*\0"
40 "action\0onHovered"
41};
42#undef QT_MOC_LITERAL
43
44static const uint qt_meta_data_QTornOffMenu[] = {
45
46 // content:
47 9, // revision
48 0, // classname
49 0, 0, // classinfo
50 2, 14, // methods
51 0, 0, // properties
52 0, 0, // enums/sets
53 0, 0, // constructors
54 0, // flags
55 0, // signalCount
56
57 // slots: name, argc, parameters, tag, flags, initial metatype offsets
58 1, 1, 26, 2, 0x0a, 0 /* Public */,
59 5, 1, 29, 2, 0x0a, 2 /* Public */,
60
61 // slots: parameters
62 QMetaType::Void, 0x80000000 | 3, 4,
63 QMetaType::Void, 0x80000000 | 3, 4,
64
65 0 // eod
66};
67
68void QTornOffMenu::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
69{
70 if (_c == QMetaObject::InvokeMetaMethod) {
71 Q_ASSERT(staticMetaObject.cast(_o));
72 auto *_t = static_cast<QTornOffMenu *>(_o);
73 Q_UNUSED(_t)
74 switch (_id) {
75 case 0: _t->onTrigger((*reinterpret_cast< QAction*(*)>(_a[1]))); break;
76 case 1: _t->onHovered((*reinterpret_cast< QAction*(*)>(_a[1]))); break;
77 default: ;
78 }
79 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
80 switch (_id) {
81 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
82 case 0:
83 switch (*reinterpret_cast<int*>(_a[1])) {
84 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
85 case 0:
86 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAction* >(); break;
87 }
88 break;
89 case 1:
90 switch (*reinterpret_cast<int*>(_a[1])) {
91 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
92 case 0:
93 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAction* >(); break;
94 }
95 break;
96 }
97 }
98}
99
100const QMetaObject QTornOffMenu::staticMetaObject = { {
101 QMetaObject::SuperData::link<QMenu::staticMetaObject>(),
102 qt_meta_stringdata_QTornOffMenu.offsetsAndSize,
103 qt_meta_data_QTornOffMenu,
104 qt_static_metacall,
105 nullptr,
106qt_incomplete_metaTypeArray<qt_meta_stringdata_QTornOffMenu_t
107
108, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAction *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAction *, std::false_type>
109
110
111>,
112 nullptr
113} };
114
115
116const QMetaObject *QTornOffMenu::metaObject() const
117{
118 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
119}
120
121void *QTornOffMenu::qt_metacast(const char *_clname)
122{
123 if (!_clname) return nullptr;
124 if (!strcmp(_clname, qt_meta_stringdata_QTornOffMenu.stringdata0))
125 return static_cast<void*>(this);
126 return QMenu::qt_metacast(_clname);
127}
128
129int QTornOffMenu::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
130{
131 _id = QMenu::qt_metacall(_c, _id, _a);
132 if (_id < 0)
133 return _id;
134 if (_c == QMetaObject::InvokeMetaMethod) {
135 if (_id < 2)
136 qt_static_metacall(this, _c, _id, _a);
137 _id -= 2;
138 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
139 if (_id < 2)
140 qt_static_metacall(this, _c, _id, _a);
141 _id -= 2;
142 }
143 return _id;
144}
145QT_WARNING_POP
146QT_END_MOC_NAMESPACE
147