| 1 | /**************************************************************************** |
| 2 | ** Meta object code from reading C++ file 'qplatformmenu.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/qplatformmenu.h" |
| 11 | #include <QtCore/qbytearray.h> |
| 12 | #include <QtCore/qmetatype.h> |
| 13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
| 14 | #error "The header file 'qplatformmenu.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 | |
| 21 | QT_BEGIN_MOC_NAMESPACE |
| 22 | QT_WARNING_PUSH |
| 23 | QT_WARNING_DISABLE_DEPRECATED |
| 24 | struct { |
| 25 | const uint offsetsAndSize[34]; |
| 26 | char [193]; |
| 27 | }; |
| 28 | #define QT_MOC_LITERAL(ofs, len) \ |
| 29 | uint(offsetof(qt_meta_stringdata_QPlatformMenuItem_t, stringdata0) + ofs), len |
| 30 | static const qt_meta_stringdata_QPlatformMenuItem_t = { |
| 31 | { |
| 32 | QT_MOC_LITERAL(0, 17), // "QPlatformMenuItem" |
| 33 | QT_MOC_LITERAL(18, 9), // "activated" |
| 34 | QT_MOC_LITERAL(28, 0), // "" |
| 35 | QT_MOC_LITERAL(29, 7), // "hovered" |
| 36 | QT_MOC_LITERAL(37, 8), // "MenuRole" |
| 37 | QT_MOC_LITERAL(46, 6), // "NoRole" |
| 38 | QT_MOC_LITERAL(53, 17), // "TextHeuristicRole" |
| 39 | QT_MOC_LITERAL(71, 23), // "ApplicationSpecificRole" |
| 40 | QT_MOC_LITERAL(95, 11), // "AboutQtRole" |
| 41 | QT_MOC_LITERAL(107, 9), // "AboutRole" |
| 42 | QT_MOC_LITERAL(117, 15), // "PreferencesRole" |
| 43 | QT_MOC_LITERAL(133, 8), // "QuitRole" |
| 44 | QT_MOC_LITERAL(142, 7), // "CutRole" |
| 45 | QT_MOC_LITERAL(150, 8), // "CopyRole" |
| 46 | QT_MOC_LITERAL(159, 9), // "PasteRole" |
| 47 | QT_MOC_LITERAL(169, 13), // "SelectAllRole" |
| 48 | QT_MOC_LITERAL(183, 9) // "RoleCount" |
| 49 | |
| 50 | }, |
| 51 | "QPlatformMenuItem\0activated\0\0hovered\0" |
| 52 | "MenuRole\0NoRole\0TextHeuristicRole\0" |
| 53 | "ApplicationSpecificRole\0AboutQtRole\0" |
| 54 | "AboutRole\0PreferencesRole\0QuitRole\0" |
| 55 | "CutRole\0CopyRole\0PasteRole\0SelectAllRole\0" |
| 56 | "RoleCount" |
| 57 | }; |
| 58 | #undef QT_MOC_LITERAL |
| 59 | |
| 60 | static const uint [] = { |
| 61 | |
| 62 | // content: |
| 63 | 9, // revision |
| 64 | 0, // classname |
| 65 | 0, 0, // classinfo |
| 66 | 2, 14, // methods |
| 67 | 0, 0, // properties |
| 68 | 1, 28, // enums/sets |
| 69 | 0, 0, // constructors |
| 70 | 0, // flags |
| 71 | 2, // signalCount |
| 72 | |
| 73 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 74 | 1, 0, 26, 2, 0x06, 0 /* Public */, |
| 75 | 3, 0, 27, 2, 0x06, 1 /* Public */, |
| 76 | |
| 77 | // signals: parameters |
| 78 | QMetaType::Void, |
| 79 | QMetaType::Void, |
| 80 | |
| 81 | // enums: name, alias, flags, count, data |
| 82 | 4, 4, 0x0, 12, 33, |
| 83 | |
| 84 | // enum data: key, value |
| 85 | 5, uint(QPlatformMenuItem::NoRole), |
| 86 | 6, uint(QPlatformMenuItem::TextHeuristicRole), |
| 87 | 7, uint(QPlatformMenuItem::ApplicationSpecificRole), |
| 88 | 8, uint(QPlatformMenuItem::AboutQtRole), |
| 89 | 9, uint(QPlatformMenuItem::AboutRole), |
| 90 | 10, uint(QPlatformMenuItem::PreferencesRole), |
| 91 | 11, uint(QPlatformMenuItem::QuitRole), |
| 92 | 12, uint(QPlatformMenuItem::CutRole), |
| 93 | 13, uint(QPlatformMenuItem::CopyRole), |
| 94 | 14, uint(QPlatformMenuItem::PasteRole), |
| 95 | 15, uint(QPlatformMenuItem::SelectAllRole), |
| 96 | 16, uint(QPlatformMenuItem::RoleCount), |
| 97 | |
| 98 | 0 // eod |
| 99 | }; |
| 100 | |
| 101 | void QPlatformMenuItem::(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 102 | { |
| 103 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 104 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 105 | auto *_t = static_cast<QPlatformMenuItem *>(_o); |
| 106 | Q_UNUSED(_t) |
| 107 | switch (_id) { |
| 108 | case 0: _t->activated(); break; |
| 109 | case 1: _t->hovered(); break; |
| 110 | default: ; |
| 111 | } |
| 112 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 113 | int *result = reinterpret_cast<int *>(_a[0]); |
| 114 | { |
| 115 | using _t = void (QPlatformMenuItem::*)(); |
| 116 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlatformMenuItem::activated)) { |
| 117 | *result = 0; |
| 118 | return; |
| 119 | } |
| 120 | } |
| 121 | { |
| 122 | using _t = void (QPlatformMenuItem::*)(); |
| 123 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlatformMenuItem::hovered)) { |
| 124 | *result = 1; |
| 125 | return; |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | Q_UNUSED(_a); |
| 130 | } |
| 131 | |
| 132 | const QMetaObject QPlatformMenuItem:: = { { |
| 133 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
| 134 | qt_meta_stringdata_QPlatformMenuItem.offsetsAndSize, |
| 135 | qt_meta_data_QPlatformMenuItem, |
| 136 | qt_static_metacall, |
| 137 | nullptr, |
| 138 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QPlatformMenuItem_t |
| 139 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
| 140 | |
| 141 | |
| 142 | |
| 143 | >, |
| 144 | nullptr |
| 145 | } }; |
| 146 | |
| 147 | |
| 148 | const QMetaObject *QPlatformMenuItem::() const |
| 149 | { |
| 150 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 151 | } |
| 152 | |
| 153 | void *QPlatformMenuItem::(const char *_clname) |
| 154 | { |
| 155 | if (!_clname) return nullptr; |
| 156 | if (!strcmp(_clname, qt_meta_stringdata_QPlatformMenuItem.stringdata0)) |
| 157 | return static_cast<void*>(this); |
| 158 | return QObject::qt_metacast(_clname); |
| 159 | } |
| 160 | |
| 161 | int QPlatformMenuItem::(QMetaObject::Call _c, int _id, void **_a) |
| 162 | { |
| 163 | _id = QObject::qt_metacall(_c, _id, _a); |
| 164 | if (_id < 0) |
| 165 | return _id; |
| 166 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 167 | if (_id < 2) |
| 168 | qt_static_metacall(this, _c, _id, _a); |
| 169 | _id -= 2; |
| 170 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 171 | if (_id < 2) |
| 172 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 173 | _id -= 2; |
| 174 | } |
| 175 | return _id; |
| 176 | } |
| 177 | |
| 178 | // SIGNAL 0 |
| 179 | void QPlatformMenuItem::() |
| 180 | { |
| 181 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
| 182 | } |
| 183 | |
| 184 | // SIGNAL 1 |
| 185 | void QPlatformMenuItem::() |
| 186 | { |
| 187 | QMetaObject::activate(this, &staticMetaObject, 1, nullptr); |
| 188 | } |
| 189 | struct { |
| 190 | const uint offsetsAndSize[14]; |
| 191 | char [69]; |
| 192 | }; |
| 193 | #define QT_MOC_LITERAL(ofs, len) \ |
| 194 | uint(offsetof(qt_meta_stringdata_QPlatformMenu_t, stringdata0) + ofs), len |
| 195 | static const qt_meta_stringdata_QPlatformMenu_t = { |
| 196 | { |
| 197 | QT_MOC_LITERAL(0, 13), // "QPlatformMenu" |
| 198 | QT_MOC_LITERAL(14, 11), // "aboutToShow" |
| 199 | QT_MOC_LITERAL(26, 0), // "" |
| 200 | QT_MOC_LITERAL(27, 11), // "aboutToHide" |
| 201 | QT_MOC_LITERAL(39, 8), // "MenuType" |
| 202 | QT_MOC_LITERAL(48, 11), // "DefaultMenu" |
| 203 | QT_MOC_LITERAL(60, 8) // "EditMenu" |
| 204 | |
| 205 | }, |
| 206 | "QPlatformMenu\0aboutToShow\0\0aboutToHide\0" |
| 207 | "MenuType\0DefaultMenu\0EditMenu" |
| 208 | }; |
| 209 | #undef QT_MOC_LITERAL |
| 210 | |
| 211 | static const uint [] = { |
| 212 | |
| 213 | // content: |
| 214 | 9, // revision |
| 215 | 0, // classname |
| 216 | 0, 0, // classinfo |
| 217 | 2, 14, // methods |
| 218 | 0, 0, // properties |
| 219 | 1, 28, // enums/sets |
| 220 | 0, 0, // constructors |
| 221 | 0, // flags |
| 222 | 2, // signalCount |
| 223 | |
| 224 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 225 | 1, 0, 26, 2, 0x06, 0 /* Public */, |
| 226 | 3, 0, 27, 2, 0x06, 1 /* Public */, |
| 227 | |
| 228 | // signals: parameters |
| 229 | QMetaType::Void, |
| 230 | QMetaType::Void, |
| 231 | |
| 232 | // enums: name, alias, flags, count, data |
| 233 | 4, 4, 0x0, 2, 33, |
| 234 | |
| 235 | // enum data: key, value |
| 236 | 5, uint(QPlatformMenu::DefaultMenu), |
| 237 | 6, uint(QPlatformMenu::EditMenu), |
| 238 | |
| 239 | 0 // eod |
| 240 | }; |
| 241 | |
| 242 | void QPlatformMenu::(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 243 | { |
| 244 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 245 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 246 | auto *_t = static_cast<QPlatformMenu *>(_o); |
| 247 | Q_UNUSED(_t) |
| 248 | switch (_id) { |
| 249 | case 0: _t->aboutToShow(); break; |
| 250 | case 1: _t->aboutToHide(); break; |
| 251 | default: ; |
| 252 | } |
| 253 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 254 | int *result = reinterpret_cast<int *>(_a[0]); |
| 255 | { |
| 256 | using _t = void (QPlatformMenu::*)(); |
| 257 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlatformMenu::aboutToShow)) { |
| 258 | *result = 0; |
| 259 | return; |
| 260 | } |
| 261 | } |
| 262 | { |
| 263 | using _t = void (QPlatformMenu::*)(); |
| 264 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlatformMenu::aboutToHide)) { |
| 265 | *result = 1; |
| 266 | return; |
| 267 | } |
| 268 | } |
| 269 | } |
| 270 | Q_UNUSED(_a); |
| 271 | } |
| 272 | |
| 273 | const QMetaObject QPlatformMenu:: = { { |
| 274 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
| 275 | qt_meta_stringdata_QPlatformMenu.offsetsAndSize, |
| 276 | qt_meta_data_QPlatformMenu, |
| 277 | qt_static_metacall, |
| 278 | nullptr, |
| 279 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QPlatformMenu_t |
| 280 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
| 281 | |
| 282 | |
| 283 | |
| 284 | >, |
| 285 | nullptr |
| 286 | } }; |
| 287 | |
| 288 | |
| 289 | const QMetaObject *QPlatformMenu::() const |
| 290 | { |
| 291 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 292 | } |
| 293 | |
| 294 | void *QPlatformMenu::(const char *_clname) |
| 295 | { |
| 296 | if (!_clname) return nullptr; |
| 297 | if (!strcmp(_clname, qt_meta_stringdata_QPlatformMenu.stringdata0)) |
| 298 | return static_cast<void*>(this); |
| 299 | return QObject::qt_metacast(_clname); |
| 300 | } |
| 301 | |
| 302 | int QPlatformMenu::(QMetaObject::Call _c, int _id, void **_a) |
| 303 | { |
| 304 | _id = QObject::qt_metacall(_c, _id, _a); |
| 305 | if (_id < 0) |
| 306 | return _id; |
| 307 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 308 | if (_id < 2) |
| 309 | qt_static_metacall(this, _c, _id, _a); |
| 310 | _id -= 2; |
| 311 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 312 | if (_id < 2) |
| 313 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 314 | _id -= 2; |
| 315 | } |
| 316 | return _id; |
| 317 | } |
| 318 | |
| 319 | // SIGNAL 0 |
| 320 | void QPlatformMenu::() |
| 321 | { |
| 322 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
| 323 | } |
| 324 | |
| 325 | // SIGNAL 1 |
| 326 | void QPlatformMenu::() |
| 327 | { |
| 328 | QMetaObject::activate(this, &staticMetaObject, 1, nullptr); |
| 329 | } |
| 330 | struct { |
| 331 | const uint offsetsAndSize[2]; |
| 332 | char [17]; |
| 333 | }; |
| 334 | #define QT_MOC_LITERAL(ofs, len) \ |
| 335 | uint(offsetof(qt_meta_stringdata_QPlatformMenuBar_t, stringdata0) + ofs), len |
| 336 | static const qt_meta_stringdata_QPlatformMenuBar_t = { |
| 337 | { |
| 338 | QT_MOC_LITERAL(0, 16) // "QPlatformMenuBar" |
| 339 | |
| 340 | }, |
| 341 | "QPlatformMenuBar" |
| 342 | }; |
| 343 | #undef QT_MOC_LITERAL |
| 344 | |
| 345 | static const uint [] = { |
| 346 | |
| 347 | // content: |
| 348 | 9, // revision |
| 349 | 0, // classname |
| 350 | 0, 0, // classinfo |
| 351 | 0, 0, // methods |
| 352 | 0, 0, // properties |
| 353 | 0, 0, // enums/sets |
| 354 | 0, 0, // constructors |
| 355 | 0, // flags |
| 356 | 0, // signalCount |
| 357 | |
| 358 | 0 // eod |
| 359 | }; |
| 360 | |
| 361 | void QPlatformMenuBar::(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 362 | { |
| 363 | Q_UNUSED(_o); |
| 364 | Q_UNUSED(_id); |
| 365 | Q_UNUSED(_c); |
| 366 | Q_UNUSED(_a); |
| 367 | } |
| 368 | |
| 369 | const QMetaObject QPlatformMenuBar:: = { { |
| 370 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
| 371 | qt_meta_stringdata_QPlatformMenuBar.offsetsAndSize, |
| 372 | qt_meta_data_QPlatformMenuBar, |
| 373 | qt_static_metacall, |
| 374 | nullptr, |
| 375 | nullptr, |
| 376 | nullptr |
| 377 | } }; |
| 378 | |
| 379 | |
| 380 | const QMetaObject *QPlatformMenuBar::() const |
| 381 | { |
| 382 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 383 | } |
| 384 | |
| 385 | void *QPlatformMenuBar::(const char *_clname) |
| 386 | { |
| 387 | if (!_clname) return nullptr; |
| 388 | if (!strcmp(_clname, qt_meta_stringdata_QPlatformMenuBar.stringdata0)) |
| 389 | return static_cast<void*>(this); |
| 390 | return QObject::qt_metacast(_clname); |
| 391 | } |
| 392 | |
| 393 | int QPlatformMenuBar::(QMetaObject::Call _c, int _id, void **_a) |
| 394 | { |
| 395 | _id = QObject::qt_metacall(_c, _id, _a); |
| 396 | return _id; |
| 397 | } |
| 398 | QT_WARNING_POP |
| 399 | QT_END_MOC_NAMESPACE |
| 400 | |