moc_scope.cpp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'scope.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.2.4)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include <memory>
  9. #include "../../code/scope/scope.h"
  10. #include <QtCore/qbytearray.h>
  11. #include <QtCore/qmetatype.h>
  12. #if !defined(Q_MOC_OUTPUT_REVISION)
  13. #error "The header file 'scope.h' doesn't include <QObject>."
  14. #elif Q_MOC_OUTPUT_REVISION != 68
  15. #error "This file was generated using the moc from 6.2.4. 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. QT_BEGIN_MOC_NAMESPACE
  20. QT_WARNING_PUSH
  21. QT_WARNING_DISABLE_DEPRECATED
  22. struct qt_meta_stringdata_scope_t {
  23. const uint offsetsAndSize[14];
  24. char stringdata0[85];
  25. };
  26. #define QT_MOC_LITERAL(ofs, len) \
  27. uint(offsetof(qt_meta_stringdata_scope_t, stringdata0) + ofs), len
  28. static const qt_meta_stringdata_scope_t qt_meta_stringdata_scope = {
  29. {
  30. QT_MOC_LITERAL(0, 5), // "scope"
  31. QT_MOC_LITERAL(6, 15), // "treeItemClicked"
  32. QT_MOC_LITERAL(22, 0), // ""
  33. QT_MOC_LITERAL(23, 11), // "QModelIndex"
  34. QT_MOC_LITERAL(35, 5), // "index"
  35. QT_MOC_LITERAL(41, 21), // "handleTreeItemClicked"
  36. QT_MOC_LITERAL(63, 21) // "on_pushButton_clicked"
  37. },
  38. "scope\0treeItemClicked\0\0QModelIndex\0"
  39. "index\0handleTreeItemClicked\0"
  40. "on_pushButton_clicked"
  41. };
  42. #undef QT_MOC_LITERAL
  43. static const uint qt_meta_data_scope[] = {
  44. // content:
  45. 10, // revision
  46. 0, // classname
  47. 0, 0, // classinfo
  48. 3, 14, // methods
  49. 0, 0, // properties
  50. 0, 0, // enums/sets
  51. 0, 0, // constructors
  52. 0, // flags
  53. 1, // signalCount
  54. // signals: name, argc, parameters, tag, flags, initial metatype offsets
  55. 1, 1, 32, 2, 0x06, 1 /* Public */,
  56. // slots: name, argc, parameters, tag, flags, initial metatype offsets
  57. 5, 1, 35, 2, 0x08, 3 /* Private */,
  58. 6, 0, 38, 2, 0x08, 5 /* Private */,
  59. // signals: parameters
  60. QMetaType::Void, 0x80000000 | 3, 4,
  61. // slots: parameters
  62. QMetaType::Void, 0x80000000 | 3, 4,
  63. QMetaType::Void,
  64. 0 // eod
  65. };
  66. void scope::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  67. {
  68. if (_c == QMetaObject::InvokeMetaMethod) {
  69. auto *_t = static_cast<scope *>(_o);
  70. (void)_t;
  71. switch (_id) {
  72. case 0: _t->treeItemClicked((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1]))); break;
  73. case 1: _t->handleTreeItemClicked((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1]))); break;
  74. case 2: _t->on_pushButton_clicked(); break;
  75. default: ;
  76. }
  77. } else if (_c == QMetaObject::IndexOfMethod) {
  78. int *result = reinterpret_cast<int *>(_a[0]);
  79. {
  80. using _t = void (scope::*)(const QModelIndex & );
  81. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&scope::treeItemClicked)) {
  82. *result = 0;
  83. return;
  84. }
  85. }
  86. }
  87. }
  88. const QMetaObject scope::staticMetaObject = { {
  89. QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
  90. qt_meta_stringdata_scope.offsetsAndSize,
  91. qt_meta_data_scope,
  92. qt_static_metacall,
  93. nullptr,
  94. qt_incomplete_metaTypeArray<qt_meta_stringdata_scope_t
  95. , QtPrivate::TypeAndForceComplete<scope, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>
  96. , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
  97. >,
  98. nullptr
  99. } };
  100. const QMetaObject *scope::metaObject() const
  101. {
  102. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  103. }
  104. void *scope::qt_metacast(const char *_clname)
  105. {
  106. if (!_clname) return nullptr;
  107. if (!strcmp(_clname, qt_meta_stringdata_scope.stringdata0))
  108. return static_cast<void*>(this);
  109. return QMainWindow::qt_metacast(_clname);
  110. }
  111. int scope::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  112. {
  113. _id = QMainWindow::qt_metacall(_c, _id, _a);
  114. if (_id < 0)
  115. return _id;
  116. if (_c == QMetaObject::InvokeMetaMethod) {
  117. if (_id < 3)
  118. qt_static_metacall(this, _c, _id, _a);
  119. _id -= 3;
  120. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  121. if (_id < 3)
  122. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  123. _id -= 3;
  124. }
  125. return _id;
  126. }
  127. // SIGNAL 0
  128. void scope::treeItemClicked(const QModelIndex & _t1)
  129. {
  130. void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
  131. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  132. }
  133. QT_WARNING_POP
  134. QT_END_MOC_NAMESPACE