moc_ccDBRoot.cpp 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'ccDBRoot.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.10)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include <memory>
  9. #include "../../../../qCC/db_tree/ccDBRoot.h"
  10. #include <QtCore/qbytearray.h>
  11. #include <QtCore/qmetatype.h>
  12. #if !defined(Q_MOC_OUTPUT_REVISION)
  13. #error "The header file 'ccDBRoot.h' doesn't include <QObject>."
  14. #elif Q_MOC_OUTPUT_REVISION != 67
  15. #error "This file was generated using the moc from 5.15.10. 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_ccCustomQTreeView_t {
  23. QByteArrayData data[1];
  24. char stringdata0[18];
  25. };
  26. #define QT_MOC_LITERAL(idx, ofs, len) \
  27. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  28. qptrdiff(offsetof(qt_meta_stringdata_ccCustomQTreeView_t, stringdata0) + ofs \
  29. - idx * sizeof(QByteArrayData)) \
  30. )
  31. static const qt_meta_stringdata_ccCustomQTreeView_t qt_meta_stringdata_ccCustomQTreeView = {
  32. {
  33. QT_MOC_LITERAL(0, 0, 17) // "ccCustomQTreeView"
  34. },
  35. "ccCustomQTreeView"
  36. };
  37. #undef QT_MOC_LITERAL
  38. static const uint qt_meta_data_ccCustomQTreeView[] = {
  39. // content:
  40. 8, // revision
  41. 0, // classname
  42. 0, 0, // classinfo
  43. 0, 0, // methods
  44. 0, 0, // properties
  45. 0, 0, // enums/sets
  46. 0, 0, // constructors
  47. 0, // flags
  48. 0, // signalCount
  49. 0 // eod
  50. };
  51. void ccCustomQTreeView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  52. {
  53. (void)_o;
  54. (void)_id;
  55. (void)_c;
  56. (void)_a;
  57. }
  58. QT_INIT_METAOBJECT const QMetaObject ccCustomQTreeView::staticMetaObject = { {
  59. QMetaObject::SuperData::link<QTreeView::staticMetaObject>(),
  60. qt_meta_stringdata_ccCustomQTreeView.data,
  61. qt_meta_data_ccCustomQTreeView,
  62. qt_static_metacall,
  63. nullptr,
  64. nullptr
  65. } };
  66. const QMetaObject *ccCustomQTreeView::metaObject() const
  67. {
  68. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  69. }
  70. void *ccCustomQTreeView::qt_metacast(const char *_clname)
  71. {
  72. if (!_clname) return nullptr;
  73. if (!strcmp(_clname, qt_meta_stringdata_ccCustomQTreeView.stringdata0))
  74. return static_cast<void*>(this);
  75. return QTreeView::qt_metacast(_clname);
  76. }
  77. int ccCustomQTreeView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  78. {
  79. _id = QTreeView::qt_metacall(_c, _id, _a);
  80. return _id;
  81. }
  82. struct qt_meta_stringdata_ccDBRoot_t {
  83. QByteArrayData data[5];
  84. char stringdata0[57];
  85. };
  86. #define QT_MOC_LITERAL(idx, ofs, len) \
  87. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  88. qptrdiff(offsetof(qt_meta_stringdata_ccDBRoot_t, stringdata0) + ofs \
  89. - idx * sizeof(QByteArrayData)) \
  90. )
  91. static const qt_meta_stringdata_ccDBRoot_t qt_meta_stringdata_ccDBRoot = {
  92. {
  93. QT_MOC_LITERAL(0, 0, 8), // "ccDBRoot"
  94. QT_MOC_LITERAL(1, 9, 16), // "selectionChanged"
  95. QT_MOC_LITERAL(2, 26, 0), // ""
  96. QT_MOC_LITERAL(3, 27, 9), // "dbIsEmpty"
  97. QT_MOC_LITERAL(4, 37, 19) // "dbIsNotEmptyAnymore"
  98. },
  99. "ccDBRoot\0selectionChanged\0\0dbIsEmpty\0"
  100. "dbIsNotEmptyAnymore"
  101. };
  102. #undef QT_MOC_LITERAL
  103. static const uint qt_meta_data_ccDBRoot[] = {
  104. // content:
  105. 8, // revision
  106. 0, // classname
  107. 0, 0, // classinfo
  108. 3, 14, // methods
  109. 0, 0, // properties
  110. 0, 0, // enums/sets
  111. 0, 0, // constructors
  112. 0, // flags
  113. 3, // signalCount
  114. // signals: name, argc, parameters, tag, flags
  115. 1, 0, 29, 2, 0x06 /* Public */,
  116. 3, 0, 30, 2, 0x06 /* Public */,
  117. 4, 0, 31, 2, 0x06 /* Public */,
  118. // signals: parameters
  119. QMetaType::Void,
  120. QMetaType::Void,
  121. QMetaType::Void,
  122. 0 // eod
  123. };
  124. void ccDBRoot::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  125. {
  126. if (_c == QMetaObject::InvokeMetaMethod) {
  127. auto *_t = static_cast<ccDBRoot *>(_o);
  128. (void)_t;
  129. switch (_id) {
  130. case 0: _t->selectionChanged(); break;
  131. case 1: _t->dbIsEmpty(); break;
  132. case 2: _t->dbIsNotEmptyAnymore(); break;
  133. default: ;
  134. }
  135. } else if (_c == QMetaObject::IndexOfMethod) {
  136. int *result = reinterpret_cast<int *>(_a[0]);
  137. {
  138. using _t = void (ccDBRoot::*)();
  139. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ccDBRoot::selectionChanged)) {
  140. *result = 0;
  141. return;
  142. }
  143. }
  144. {
  145. using _t = void (ccDBRoot::*)();
  146. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ccDBRoot::dbIsEmpty)) {
  147. *result = 1;
  148. return;
  149. }
  150. }
  151. {
  152. using _t = void (ccDBRoot::*)();
  153. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ccDBRoot::dbIsNotEmptyAnymore)) {
  154. *result = 2;
  155. return;
  156. }
  157. }
  158. }
  159. (void)_a;
  160. }
  161. QT_INIT_METAOBJECT const QMetaObject ccDBRoot::staticMetaObject = { {
  162. QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
  163. qt_meta_stringdata_ccDBRoot.data,
  164. qt_meta_data_ccDBRoot,
  165. qt_static_metacall,
  166. nullptr,
  167. nullptr
  168. } };
  169. const QMetaObject *ccDBRoot::metaObject() const
  170. {
  171. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  172. }
  173. void *ccDBRoot::qt_metacast(const char *_clname)
  174. {
  175. if (!_clname) return nullptr;
  176. if (!strcmp(_clname, qt_meta_stringdata_ccDBRoot.stringdata0))
  177. return static_cast<void*>(this);
  178. return QAbstractItemModel::qt_metacast(_clname);
  179. }
  180. int ccDBRoot::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  181. {
  182. _id = QAbstractItemModel::qt_metacall(_c, _id, _a);
  183. if (_id < 0)
  184. return _id;
  185. if (_c == QMetaObject::InvokeMetaMethod) {
  186. if (_id < 3)
  187. qt_static_metacall(this, _c, _id, _a);
  188. _id -= 3;
  189. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  190. if (_id < 3)
  191. *reinterpret_cast<int*>(_a[0]) = -1;
  192. _id -= 3;
  193. }
  194. return _id;
  195. }
  196. // SIGNAL 0
  197. void ccDBRoot::selectionChanged()
  198. {
  199. QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
  200. }
  201. // SIGNAL 1
  202. void ccDBRoot::dbIsEmpty()
  203. {
  204. QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
  205. }
  206. // SIGNAL 2
  207. void ccDBRoot::dbIsNotEmptyAnymore()
  208. {
  209. QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
  210. }
  211. QT_WARNING_POP
  212. QT_END_MOC_NAMESPACE