moc_occQt.cpp 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'occQt.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 "../occQt.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 'occQt.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_CLASSoccQtENDCLASS_t {};
  32. static constexpr auto qt_meta_stringdata_CLASSoccQtENDCLASS = QtMocHelpers::stringData(
  33. "occQt",
  34. "about",
  35. "",
  36. "makeBox",
  37. "makeCone",
  38. "makeSphere",
  39. "makeCylinder",
  40. "makeTorus",
  41. "makeFillet",
  42. "makeChamfer",
  43. "makeExtrude",
  44. "makeRevol",
  45. "makeLoft",
  46. "testCut",
  47. "testFuse",
  48. "testCommon",
  49. "testHelix"
  50. );
  51. #else // !QT_MOC_HAS_STRING_DATA
  52. struct qt_meta_stringdata_CLASSoccQtENDCLASS_t {
  53. uint offsetsAndSizes[34];
  54. char stringdata0[6];
  55. char stringdata1[6];
  56. char stringdata2[1];
  57. char stringdata3[8];
  58. char stringdata4[9];
  59. char stringdata5[11];
  60. char stringdata6[13];
  61. char stringdata7[10];
  62. char stringdata8[11];
  63. char stringdata9[12];
  64. char stringdata10[12];
  65. char stringdata11[10];
  66. char stringdata12[9];
  67. char stringdata13[8];
  68. char stringdata14[9];
  69. char stringdata15[11];
  70. char stringdata16[10];
  71. };
  72. #define QT_MOC_LITERAL(ofs, len) \
  73. uint(sizeof(qt_meta_stringdata_CLASSoccQtENDCLASS_t::offsetsAndSizes) + ofs), len
  74. Q_CONSTINIT static const qt_meta_stringdata_CLASSoccQtENDCLASS_t qt_meta_stringdata_CLASSoccQtENDCLASS = {
  75. {
  76. QT_MOC_LITERAL(0, 5), // "occQt"
  77. QT_MOC_LITERAL(6, 5), // "about"
  78. QT_MOC_LITERAL(12, 0), // ""
  79. QT_MOC_LITERAL(13, 7), // "makeBox"
  80. QT_MOC_LITERAL(21, 8), // "makeCone"
  81. QT_MOC_LITERAL(30, 10), // "makeSphere"
  82. QT_MOC_LITERAL(41, 12), // "makeCylinder"
  83. QT_MOC_LITERAL(54, 9), // "makeTorus"
  84. QT_MOC_LITERAL(64, 10), // "makeFillet"
  85. QT_MOC_LITERAL(75, 11), // "makeChamfer"
  86. QT_MOC_LITERAL(87, 11), // "makeExtrude"
  87. QT_MOC_LITERAL(99, 9), // "makeRevol"
  88. QT_MOC_LITERAL(109, 8), // "makeLoft"
  89. QT_MOC_LITERAL(118, 7), // "testCut"
  90. QT_MOC_LITERAL(126, 8), // "testFuse"
  91. QT_MOC_LITERAL(135, 10), // "testCommon"
  92. QT_MOC_LITERAL(146, 9) // "testHelix"
  93. },
  94. "occQt",
  95. "about",
  96. "",
  97. "makeBox",
  98. "makeCone",
  99. "makeSphere",
  100. "makeCylinder",
  101. "makeTorus",
  102. "makeFillet",
  103. "makeChamfer",
  104. "makeExtrude",
  105. "makeRevol",
  106. "makeLoft",
  107. "testCut",
  108. "testFuse",
  109. "testCommon",
  110. "testHelix"
  111. };
  112. #undef QT_MOC_LITERAL
  113. #endif // !QT_MOC_HAS_STRING_DATA
  114. } // unnamed namespace
  115. Q_CONSTINIT static const uint qt_meta_data_CLASSoccQtENDCLASS[] = {
  116. // content:
  117. 12, // revision
  118. 0, // classname
  119. 0, 0, // classinfo
  120. 15, 14, // methods
  121. 0, 0, // properties
  122. 0, 0, // enums/sets
  123. 0, 0, // constructors
  124. 0, // flags
  125. 0, // signalCount
  126. // slots: name, argc, parameters, tag, flags, initial metatype offsets
  127. 1, 0, 104, 2, 0x08, 1 /* Private */,
  128. 3, 0, 105, 2, 0x08, 2 /* Private */,
  129. 4, 0, 106, 2, 0x08, 3 /* Private */,
  130. 5, 0, 107, 2, 0x08, 4 /* Private */,
  131. 6, 0, 108, 2, 0x08, 5 /* Private */,
  132. 7, 0, 109, 2, 0x08, 6 /* Private */,
  133. 8, 0, 110, 2, 0x08, 7 /* Private */,
  134. 9, 0, 111, 2, 0x08, 8 /* Private */,
  135. 10, 0, 112, 2, 0x08, 9 /* Private */,
  136. 11, 0, 113, 2, 0x08, 10 /* Private */,
  137. 12, 0, 114, 2, 0x08, 11 /* Private */,
  138. 13, 0, 115, 2, 0x08, 12 /* Private */,
  139. 14, 0, 116, 2, 0x08, 13 /* Private */,
  140. 15, 0, 117, 2, 0x08, 14 /* Private */,
  141. 16, 0, 118, 2, 0x08, 15 /* Private */,
  142. // slots: parameters
  143. QMetaType::Void,
  144. QMetaType::Void,
  145. QMetaType::Void,
  146. QMetaType::Void,
  147. QMetaType::Void,
  148. QMetaType::Void,
  149. QMetaType::Void,
  150. QMetaType::Void,
  151. QMetaType::Void,
  152. QMetaType::Void,
  153. QMetaType::Void,
  154. QMetaType::Void,
  155. QMetaType::Void,
  156. QMetaType::Void,
  157. QMetaType::Void,
  158. 0 // eod
  159. };
  160. Q_CONSTINIT const QMetaObject occQt::staticMetaObject = { {
  161. QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
  162. qt_meta_stringdata_CLASSoccQtENDCLASS.offsetsAndSizes,
  163. qt_meta_data_CLASSoccQtENDCLASS,
  164. qt_static_metacall,
  165. nullptr,
  166. qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSoccQtENDCLASS_t,
  167. // Q_OBJECT / Q_GADGET
  168. QtPrivate::TypeAndForceComplete<occQt, std::true_type>,
  169. // method 'about'
  170. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  171. // method 'makeBox'
  172. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  173. // method 'makeCone'
  174. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  175. // method 'makeSphere'
  176. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  177. // method 'makeCylinder'
  178. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  179. // method 'makeTorus'
  180. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  181. // method 'makeFillet'
  182. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  183. // method 'makeChamfer'
  184. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  185. // method 'makeExtrude'
  186. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  187. // method 'makeRevol'
  188. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  189. // method 'makeLoft'
  190. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  191. // method 'testCut'
  192. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  193. // method 'testFuse'
  194. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  195. // method 'testCommon'
  196. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  197. // method 'testHelix'
  198. QtPrivate::TypeAndForceComplete<void, std::false_type>
  199. >,
  200. nullptr
  201. } };
  202. void occQt::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  203. {
  204. if (_c == QMetaObject::InvokeMetaMethod) {
  205. auto *_t = static_cast<occQt *>(_o);
  206. (void)_t;
  207. switch (_id) {
  208. case 0: _t->about(); break;
  209. case 1: _t->makeBox(); break;
  210. case 2: _t->makeCone(); break;
  211. case 3: _t->makeSphere(); break;
  212. case 4: _t->makeCylinder(); break;
  213. case 5: _t->makeTorus(); break;
  214. case 6: _t->makeFillet(); break;
  215. case 7: _t->makeChamfer(); break;
  216. case 8: _t->makeExtrude(); break;
  217. case 9: _t->makeRevol(); break;
  218. case 10: _t->makeLoft(); break;
  219. case 11: _t->testCut(); break;
  220. case 12: _t->testFuse(); break;
  221. case 13: _t->testCommon(); break;
  222. case 14: _t->testHelix(); break;
  223. default: ;
  224. }
  225. }
  226. (void)_a;
  227. }
  228. const QMetaObject *occQt::metaObject() const
  229. {
  230. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  231. }
  232. void *occQt::qt_metacast(const char *_clname)
  233. {
  234. if (!_clname) return nullptr;
  235. if (!strcmp(_clname, qt_meta_stringdata_CLASSoccQtENDCLASS.stringdata0))
  236. return static_cast<void*>(this);
  237. return QMainWindow::qt_metacast(_clname);
  238. }
  239. int occQt::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  240. {
  241. _id = QMainWindow::qt_metacall(_c, _id, _a);
  242. if (_id < 0)
  243. return _id;
  244. if (_c == QMetaObject::InvokeMetaMethod) {
  245. if (_id < 15)
  246. qt_static_metacall(this, _c, _id, _a);
  247. _id -= 15;
  248. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  249. if (_id < 15)
  250. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  251. _id -= 15;
  252. }
  253. return _id;
  254. }
  255. QT_WARNING_POP