1/****************************************************************************
2** Meta object code from reading C++ file 'qshortcut.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 "kernel/qshortcut.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qshortcut.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_QShortcut_t {
25 const uint offsetsAndSize[20];
26 char stringdata0[106];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QShortcut_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QShortcut_t qt_meta_stringdata_QShortcut = {
31 {
32QT_MOC_LITERAL(0, 9), // "QShortcut"
33QT_MOC_LITERAL(10, 9), // "activated"
34QT_MOC_LITERAL(20, 0), // ""
35QT_MOC_LITERAL(21, 20), // "activatedAmbiguously"
36QT_MOC_LITERAL(42, 3), // "key"
37QT_MOC_LITERAL(46, 12), // "QKeySequence"
38QT_MOC_LITERAL(59, 7), // "enabled"
39QT_MOC_LITERAL(67, 10), // "autoRepeat"
40QT_MOC_LITERAL(78, 7), // "context"
41QT_MOC_LITERAL(86, 19) // "Qt::ShortcutContext"
42
43 },
44 "QShortcut\0activated\0\0activatedAmbiguously\0"
45 "key\0QKeySequence\0enabled\0autoRepeat\0"
46 "context\0Qt::ShortcutContext"
47};
48#undef QT_MOC_LITERAL
49
50static const uint qt_meta_data_QShortcut[] = {
51
52 // content:
53 9, // revision
54 0, // classname
55 0, 0, // classinfo
56 2, 14, // methods
57 4, 28, // properties
58 0, 0, // enums/sets
59 0, 0, // constructors
60 0, // flags
61 2, // signalCount
62
63 // signals: name, argc, parameters, tag, flags, initial metatype offsets
64 1, 0, 26, 2, 0x06, 4 /* Public */,
65 3, 0, 27, 2, 0x06, 5 /* Public */,
66
67 // signals: parameters
68 QMetaType::Void,
69 QMetaType::Void,
70
71 // properties: name, type, flags
72 4, 0x80000000 | 5, 0x0001510b, uint(-1), 0,
73 6, QMetaType::Bool, 0x00015103, uint(-1), 0,
74 7, QMetaType::Bool, 0x00015103, uint(-1), 0,
75 8, 0x80000000 | 9, 0x0001510b, uint(-1), 0,
76
77 0 // eod
78};
79
80void QShortcut::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
81{
82 if (_c == QMetaObject::InvokeMetaMethod) {
83 Q_ASSERT(staticMetaObject.cast(_o));
84 auto *_t = static_cast<QShortcut *>(_o);
85 Q_UNUSED(_t)
86 switch (_id) {
87 case 0: _t->activated(); break;
88 case 1: _t->activatedAmbiguously(); break;
89 default: ;
90 }
91 } else if (_c == QMetaObject::IndexOfMethod) {
92 int *result = reinterpret_cast<int *>(_a[0]);
93 {
94 using _t = void (QShortcut::*)();
95 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QShortcut::activated)) {
96 *result = 0;
97 return;
98 }
99 }
100 {
101 using _t = void (QShortcut::*)();
102 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QShortcut::activatedAmbiguously)) {
103 *result = 1;
104 return;
105 }
106 }
107 }
108#ifndef QT_NO_PROPERTIES
109 else if (_c == QMetaObject::ReadProperty) {
110 Q_ASSERT(staticMetaObject.cast(_o));
111 auto *_t = static_cast<QShortcut *>(_o);
112 Q_UNUSED(_t)
113 void *_v = _a[0];
114 switch (_id) {
115 case 0: *reinterpret_cast< QKeySequence*>(_v) = _t->key(); break;
116 case 1: *reinterpret_cast< bool*>(_v) = _t->isEnabled(); break;
117 case 2: *reinterpret_cast< bool*>(_v) = _t->autoRepeat(); break;
118 case 3: *reinterpret_cast< Qt::ShortcutContext*>(_v) = _t->context(); break;
119 default: break;
120 }
121 } else if (_c == QMetaObject::WriteProperty) {
122 Q_ASSERT(staticMetaObject.cast(_o));
123 auto *_t = static_cast<QShortcut *>(_o);
124 Q_UNUSED(_t)
125 void *_v = _a[0];
126 switch (_id) {
127 case 0: _t->setKey(*reinterpret_cast< QKeySequence*>(_v)); break;
128 case 1: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break;
129 case 2: _t->setAutoRepeat(*reinterpret_cast< bool*>(_v)); break;
130 case 3: _t->setContext(*reinterpret_cast< Qt::ShortcutContext*>(_v)); break;
131 default: break;
132 }
133 } else if (_c == QMetaObject::ResetProperty) {
134 } else if (_c == QMetaObject::BindableProperty) {
135 }
136#endif // QT_NO_PROPERTIES
137 Q_UNUSED(_a);
138}
139
140const QMetaObject QShortcut::staticMetaObject = { {
141 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
142 qt_meta_stringdata_QShortcut.offsetsAndSize,
143 qt_meta_data_QShortcut,
144 qt_static_metacall,
145 nullptr,
146qt_incomplete_metaTypeArray<qt_meta_stringdata_QShortcut_t
147, QtPrivate::TypeAndForceComplete<QKeySequence, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::ShortcutContext, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
148
149
150
151>,
152 nullptr
153} };
154
155
156const QMetaObject *QShortcut::metaObject() const
157{
158 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
159}
160
161void *QShortcut::qt_metacast(const char *_clname)
162{
163 if (!_clname) return nullptr;
164 if (!strcmp(_clname, qt_meta_stringdata_QShortcut.stringdata0))
165 return static_cast<void*>(this);
166 return QObject::qt_metacast(_clname);
167}
168
169int QShortcut::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
170{
171 _id = QObject::qt_metacall(_c, _id, _a);
172 if (_id < 0)
173 return _id;
174 if (_c == QMetaObject::InvokeMetaMethod) {
175 if (_id < 2)
176 qt_static_metacall(this, _c, _id, _a);
177 _id -= 2;
178 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
179 if (_id < 2)
180 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
181 _id -= 2;
182 }
183#ifndef QT_NO_PROPERTIES
184 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
185 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
186 || _c == QMetaObject::RegisterPropertyMetaType) {
187 qt_static_metacall(this, _c, _id, _a);
188 _id -= 4;
189 }
190#endif // QT_NO_PROPERTIES
191 return _id;
192}
193
194// SIGNAL 0
195void QShortcut::activated()
196{
197 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
198}
199
200// SIGNAL 1
201void QShortcut::activatedAmbiguously()
202{
203 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
204}
205QT_WARNING_POP
206QT_END_MOC_NAMESPACE
207