moc_occView.cpp 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'occView.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.6.0)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "../occView.h"
  9. #include <QtCore/qmetatype.h>
  10. #if __has_include(<QtCore/qtmochelpers.h>)
  11. #include <QtCore/qtmochelpers.h>
  12. #else
  13. QT_BEGIN_MOC_NAMESPACE
  14. #endif
  15. #include <memory>
  16. #if !defined(Q_MOC_OUTPUT_REVISION)
  17. #error "The header file 'occView.h' doesn't include <QObject>."
  18. #elif Q_MOC_OUTPUT_REVISION != 68
  19. #error "This file was generated using the moc from 6.6.0. It"
  20. #error "cannot be used with the include files from this version of Qt."
  21. #error "(The moc has changed too much.)"
  22. #endif
  23. #ifndef Q_CONSTINIT
  24. #define Q_CONSTINIT
  25. #endif
  26. QT_WARNING_PUSH
  27. QT_WARNING_DISABLE_DEPRECATED
  28. QT_WARNING_DISABLE_GCC("-Wuseless-cast")
  29. namespace {
  30. #ifdef QT_MOC_HAS_STRINGDATA
  31. struct qt_meta_stringdata_CLASSOccViewENDCLASS_t {};
  32. static constexpr auto qt_meta_stringdata_CLASSOccViewENDCLASS = QtMocHelpers::stringData(
  33. "OccView",
  34. "selectionChanged",
  35. "",
  36. "pan",
  37. "fitAll",
  38. "reset",
  39. "zoom",
  40. "rotate"
  41. );
  42. #else // !QT_MOC_HAS_STRING_DATA
  43. struct qt_meta_stringdata_CLASSOccViewENDCLASS_t {
  44. uint offsetsAndSizes[16];
  45. char stringdata0[8];
  46. char stringdata1[17];
  47. char stringdata2[1];
  48. char stringdata3[4];
  49. char stringdata4[7];
  50. char stringdata5[6];
  51. char stringdata6[5];
  52. char stringdata7[7];
  53. };
  54. #define QT_MOC_LITERAL(ofs, len) \
  55. uint(sizeof(qt_meta_stringdata_CLASSOccViewENDCLASS_t::offsetsAndSizes) + ofs), len
  56. Q_CONSTINIT static const qt_meta_stringdata_CLASSOccViewENDCLASS_t qt_meta_stringdata_CLASSOccViewENDCLASS = {
  57. {
  58. QT_MOC_LITERAL(0, 7), // "OccView"
  59. QT_MOC_LITERAL(8, 16), // "selectionChanged"
  60. QT_MOC_LITERAL(25, 0), // ""
  61. QT_MOC_LITERAL(26, 3), // "pan"
  62. QT_MOC_LITERAL(30, 6), // "fitAll"
  63. QT_MOC_LITERAL(37, 5), // "reset"
  64. QT_MOC_LITERAL(43, 4), // "zoom"
  65. QT_MOC_LITERAL(48, 6) // "rotate"
  66. },
  67. "OccView",
  68. "selectionChanged",
  69. "",
  70. "pan",
  71. "fitAll",
  72. "reset",
  73. "zoom",
  74. "rotate"
  75. };
  76. #undef QT_MOC_LITERAL
  77. #endif // !QT_MOC_HAS_STRING_DATA
  78. } // unnamed namespace
  79. Q_CONSTINIT static const uint qt_meta_data_CLASSOccViewENDCLASS[] = {
  80. // content:
  81. 12, // revision
  82. 0, // classname
  83. 0, 0, // classinfo
  84. 6, 14, // methods
  85. 0, 0, // properties
  86. 0, 0, // enums/sets
  87. 0, 0, // constructors
  88. 0, // flags
  89. 1, // signalCount
  90. // signals: name, argc, parameters, tag, flags, initial metatype offsets
  91. 1, 0, 50, 2, 0x06, 1 /* Public */,
  92. // slots: name, argc, parameters, tag, flags, initial metatype offsets
  93. 3, 0, 51, 2, 0x0a, 2 /* Public */,
  94. 4, 0, 52, 2, 0x0a, 3 /* Public */,
  95. 5, 0, 53, 2, 0x0a, 4 /* Public */,
  96. 6, 0, 54, 2, 0x0a, 5 /* Public */,
  97. 7, 0, 55, 2, 0x0a, 6 /* Public */,
  98. // signals: parameters
  99. QMetaType::Void,
  100. // slots: parameters
  101. QMetaType::Void,
  102. QMetaType::Void,
  103. QMetaType::Void,
  104. QMetaType::Void,
  105. QMetaType::Void,
  106. 0 // eod
  107. };
  108. Q_CONSTINIT const QMetaObject OccView::staticMetaObject = { {
  109. QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
  110. qt_meta_stringdata_CLASSOccViewENDCLASS.offsetsAndSizes,
  111. qt_meta_data_CLASSOccViewENDCLASS,
  112. qt_static_metacall,
  113. nullptr,
  114. qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSOccViewENDCLASS_t,
  115. // Q_OBJECT / Q_GADGET
  116. QtPrivate::TypeAndForceComplete<OccView, std::true_type>,
  117. // method 'selectionChanged'
  118. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  119. // method 'pan'
  120. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  121. // method 'fitAll'
  122. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  123. // method 'reset'
  124. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  125. // method 'zoom'
  126. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  127. // method 'rotate'
  128. QtPrivate::TypeAndForceComplete<void, std::false_type>
  129. >,
  130. nullptr
  131. } };
  132. void OccView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  133. {
  134. if (_c == QMetaObject::InvokeMetaMethod) {
  135. auto *_t = static_cast<OccView *>(_o);
  136. (void)_t;
  137. switch (_id) {
  138. case 0: _t->selectionChanged(); break;
  139. case 1: _t->pan(); break;
  140. case 2: _t->fitAll(); break;
  141. case 3: _t->reset(); break;
  142. case 4: _t->zoom(); break;
  143. case 5: _t->rotate(); break;
  144. default: ;
  145. }
  146. } else if (_c == QMetaObject::IndexOfMethod) {
  147. int *result = reinterpret_cast<int *>(_a[0]);
  148. {
  149. using _t = void (OccView::*)();
  150. if (_t _q_method = &OccView::selectionChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
  151. *result = 0;
  152. return;
  153. }
  154. }
  155. }
  156. (void)_a;
  157. }
  158. const QMetaObject *OccView::metaObject() const
  159. {
  160. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  161. }
  162. void *OccView::qt_metacast(const char *_clname)
  163. {
  164. if (!_clname) return nullptr;
  165. if (!strcmp(_clname, qt_meta_stringdata_CLASSOccViewENDCLASS.stringdata0))
  166. return static_cast<void*>(this);
  167. return QWidget::qt_metacast(_clname);
  168. }
  169. int OccView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  170. {
  171. _id = QWidget::qt_metacall(_c, _id, _a);
  172. if (_id < 0)
  173. return _id;
  174. if (_c == QMetaObject::InvokeMetaMethod) {
  175. if (_id < 6)
  176. qt_static_metacall(this, _c, _id, _a);
  177. _id -= 6;
  178. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  179. if (_id < 6)
  180. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  181. _id -= 6;
  182. }
  183. return _id;
  184. }
  185. // SIGNAL 0
  186. void OccView::selectionChanged()
  187. {
  188. QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
  189. }
  190. QT_WARNING_POP