main.moc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'main.cpp'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.5)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include <QtCore/qbytearray.h>
  9. #include <QtCore/qmetatype.h>
  10. #if !defined(Q_MOC_OUTPUT_REVISION)
  11. #error "The header file 'main.cpp' doesn't include <QObject>."
  12. #elif Q_MOC_OUTPUT_REVISION != 67
  13. #error "This file was generated using the moc from 5.12.5. It"
  14. #error "cannot be used with the include files from this version of Qt."
  15. #error "(The moc has changed too much.)"
  16. #endif
  17. QT_BEGIN_MOC_NAMESPACE
  18. QT_WARNING_PUSH
  19. QT_WARNING_DISABLE_DEPRECATED
  20. struct qt_meta_stringdata_TestSetup_t {
  21. QByteArrayData data[5];
  22. char stringdata0[49];
  23. };
  24. #define QT_MOC_LITERAL(idx, ofs, len) \
  25. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  26. qptrdiff(offsetof(qt_meta_stringdata_TestSetup_t, stringdata0) + ofs \
  27. - idx * sizeof(QByteArrayData)) \
  28. )
  29. static const qt_meta_stringdata_TestSetup_t qt_meta_stringdata_TestSetup = {
  30. {
  31. QT_MOC_LITERAL(0, 0, 9), // "TestSetup"
  32. QT_MOC_LITERAL(1, 10, 18), // "qmlEngineAvailable"
  33. QT_MOC_LITERAL(2, 29, 0), // ""
  34. QT_MOC_LITERAL(3, 30, 11), // "QQmlEngine*"
  35. QT_MOC_LITERAL(4, 42, 6) // "engine"
  36. },
  37. "TestSetup\0qmlEngineAvailable\0\0QQmlEngine*\0"
  38. "engine"
  39. };
  40. #undef QT_MOC_LITERAL
  41. static const uint qt_meta_data_TestSetup[] = {
  42. // content:
  43. 8, // revision
  44. 0, // classname
  45. 0, 0, // classinfo
  46. 1, 14, // methods
  47. 0, 0, // properties
  48. 0, 0, // enums/sets
  49. 0, 0, // constructors
  50. 0, // flags
  51. 0, // signalCount
  52. // slots: name, argc, parameters, tag, flags
  53. 1, 1, 19, 2, 0x0a /* Public */,
  54. // slots: parameters
  55. QMetaType::Void, 0x80000000 | 3, 4,
  56. 0 // eod
  57. };
  58. void TestSetup::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  59. {
  60. if (_c == QMetaObject::InvokeMetaMethod) {
  61. auto *_t = static_cast<TestSetup *>(_o);
  62. Q_UNUSED(_t)
  63. switch (_id) {
  64. case 0: _t->qmlEngineAvailable((*reinterpret_cast< QQmlEngine*(*)>(_a[1]))); break;
  65. default: ;
  66. }
  67. }
  68. }
  69. QT_INIT_METAOBJECT const QMetaObject TestSetup::staticMetaObject = { {
  70. &QObject::staticMetaObject,
  71. qt_meta_stringdata_TestSetup.data,
  72. qt_meta_data_TestSetup,
  73. qt_static_metacall,
  74. nullptr,
  75. nullptr
  76. } };
  77. const QMetaObject *TestSetup::metaObject() const
  78. {
  79. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  80. }
  81. void *TestSetup::qt_metacast(const char *_clname)
  82. {
  83. if (!_clname) return nullptr;
  84. if (!strcmp(_clname, qt_meta_stringdata_TestSetup.stringdata0))
  85. return static_cast<void*>(this);
  86. return QObject::qt_metacast(_clname);
  87. }
  88. int TestSetup::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  89. {
  90. _id = QObject::qt_metacall(_c, _id, _a);
  91. if (_id < 0)
  92. return _id;
  93. if (_c == QMetaObject::InvokeMetaMethod) {
  94. if (_id < 1)
  95. qt_static_metacall(this, _c, _id, _a);
  96. _id -= 1;
  97. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  98. if (_id < 1)
  99. *reinterpret_cast<int*>(_a[0]) = -1;
  100. _id -= 1;
  101. }
  102. return _id;
  103. }
  104. QT_WARNING_POP
  105. QT_END_MOC_NAMESPACE