moc_modelpage.cpp 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'modelpage.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.0)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "../modelpage.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'modelpage.h' doesn't include <QObject>."
  13. #elif Q_MOC_OUTPUT_REVISION != 67
  14. #error "This file was generated using the moc from 5.9.0. It"
  15. #error "cannot be used with the include files from this version of Qt."
  16. #error "(The moc has changed too much.)"
  17. #endif
  18. QT_BEGIN_MOC_NAMESPACE
  19. QT_WARNING_PUSH
  20. QT_WARNING_DISABLE_DEPRECATED
  21. struct qt_meta_stringdata_ModelAdd_t {
  22. QByteArrayData data[4];
  23. char stringdata0[29];
  24. };
  25. #define QT_MOC_LITERAL(idx, ofs, len) \
  26. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  27. qptrdiff(offsetof(qt_meta_stringdata_ModelAdd_t, stringdata0) + ofs \
  28. - idx * sizeof(QByteArrayData)) \
  29. )
  30. static const qt_meta_stringdata_ModelAdd_t qt_meta_stringdata_ModelAdd = {
  31. {
  32. QT_MOC_LITERAL(0, 0, 8), // "ModelAdd"
  33. QT_MOC_LITERAL(1, 9, 8), // "addModel"
  34. QT_MOC_LITERAL(2, 18, 0), // ""
  35. QT_MOC_LITERAL(3, 19, 9) // "sendModel"
  36. },
  37. "ModelAdd\0addModel\0\0sendModel"
  38. };
  39. #undef QT_MOC_LITERAL
  40. static const uint qt_meta_data_ModelAdd[] = {
  41. // content:
  42. 7, // revision
  43. 0, // classname
  44. 0, 0, // classinfo
  45. 2, 14, // methods
  46. 0, 0, // properties
  47. 0, 0, // enums/sets
  48. 0, 0, // constructors
  49. 0, // flags
  50. 2, // signalCount
  51. // signals: name, argc, parameters, tag, flags
  52. 1, 0, 24, 2, 0x06 /* Public */,
  53. 3, 0, 25, 2, 0x06 /* Public */,
  54. // signals: parameters
  55. QMetaType::Void,
  56. QMetaType::Void,
  57. 0 // eod
  58. };
  59. void ModelAdd::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  60. {
  61. if (_c == QMetaObject::InvokeMetaMethod) {
  62. ModelAdd *_t = static_cast<ModelAdd *>(_o);
  63. Q_UNUSED(_t)
  64. switch (_id) {
  65. case 0: _t->addModel(); break;
  66. case 1: _t->sendModel(); break;
  67. default: ;
  68. }
  69. } else if (_c == QMetaObject::IndexOfMethod) {
  70. int *result = reinterpret_cast<int *>(_a[0]);
  71. void **func = reinterpret_cast<void **>(_a[1]);
  72. {
  73. typedef void (ModelAdd::*_t)();
  74. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ModelAdd::addModel)) {
  75. *result = 0;
  76. return;
  77. }
  78. }
  79. {
  80. typedef void (ModelAdd::*_t)();
  81. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ModelAdd::sendModel)) {
  82. *result = 1;
  83. return;
  84. }
  85. }
  86. }
  87. Q_UNUSED(_a);
  88. }
  89. const QMetaObject ModelAdd::staticMetaObject = {
  90. { &QDialog::staticMetaObject, qt_meta_stringdata_ModelAdd.data,
  91. qt_meta_data_ModelAdd, qt_static_metacall, nullptr, nullptr}
  92. };
  93. const QMetaObject *ModelAdd::metaObject() const
  94. {
  95. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  96. }
  97. void *ModelAdd::qt_metacast(const char *_clname)
  98. {
  99. if (!_clname) return nullptr;
  100. if (!strcmp(_clname, qt_meta_stringdata_ModelAdd.stringdata0))
  101. return static_cast<void*>(const_cast< ModelAdd*>(this));
  102. return QDialog::qt_metacast(_clname);
  103. }
  104. int ModelAdd::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  105. {
  106. _id = QDialog::qt_metacall(_c, _id, _a);
  107. if (_id < 0)
  108. return _id;
  109. if (_c == QMetaObject::InvokeMetaMethod) {
  110. if (_id < 2)
  111. qt_static_metacall(this, _c, _id, _a);
  112. _id -= 2;
  113. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  114. if (_id < 2)
  115. *reinterpret_cast<int*>(_a[0]) = -1;
  116. _id -= 2;
  117. }
  118. return _id;
  119. }
  120. // SIGNAL 0
  121. void ModelAdd::addModel()
  122. {
  123. QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
  124. }
  125. // SIGNAL 1
  126. void ModelAdd::sendModel()
  127. {
  128. QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
  129. }
  130. struct qt_meta_stringdata_ModelPage_t {
  131. QByteArrayData data[8];
  132. char stringdata0[111];
  133. };
  134. #define QT_MOC_LITERAL(idx, ofs, len) \
  135. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  136. qptrdiff(offsetof(qt_meta_stringdata_ModelPage_t, stringdata0) + ofs \
  137. - idx * sizeof(QByteArrayData)) \
  138. )
  139. static const qt_meta_stringdata_ModelPage_t qt_meta_stringdata_ModelPage = {
  140. {
  141. QT_MOC_LITERAL(0, 0, 9), // "ModelPage"
  142. QT_MOC_LITERAL(1, 10, 19), // "onSearchButtonClick"
  143. QT_MOC_LITERAL(2, 30, 0), // ""
  144. QT_MOC_LITERAL(3, 31, 15), // "onUpButtonClick"
  145. QT_MOC_LITERAL(4, 47, 17), // "onNextButtonClick"
  146. QT_MOC_LITERAL(5, 65, 17), // "onEditButtonClick"
  147. QT_MOC_LITERAL(6, 83, 16), // "onDelButtonClick"
  148. QT_MOC_LITERAL(7, 100, 10) // "onShowNews"
  149. },
  150. "ModelPage\0onSearchButtonClick\0\0"
  151. "onUpButtonClick\0onNextButtonClick\0"
  152. "onEditButtonClick\0onDelButtonClick\0"
  153. "onShowNews"
  154. };
  155. #undef QT_MOC_LITERAL
  156. static const uint qt_meta_data_ModelPage[] = {
  157. // content:
  158. 7, // revision
  159. 0, // classname
  160. 0, 0, // classinfo
  161. 6, 14, // methods
  162. 0, 0, // properties
  163. 0, 0, // enums/sets
  164. 0, 0, // constructors
  165. 0, // flags
  166. 0, // signalCount
  167. // slots: name, argc, parameters, tag, flags
  168. 1, 0, 44, 2, 0x0a /* Public */,
  169. 3, 0, 45, 2, 0x0a /* Public */,
  170. 4, 0, 46, 2, 0x0a /* Public */,
  171. 5, 0, 47, 2, 0x0a /* Public */,
  172. 6, 0, 48, 2, 0x0a /* Public */,
  173. 7, 0, 49, 2, 0x0a /* Public */,
  174. // slots: parameters
  175. QMetaType::Void,
  176. QMetaType::Void,
  177. QMetaType::Void,
  178. QMetaType::Void,
  179. QMetaType::Void,
  180. QMetaType::Void,
  181. 0 // eod
  182. };
  183. void ModelPage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  184. {
  185. if (_c == QMetaObject::InvokeMetaMethod) {
  186. ModelPage *_t = static_cast<ModelPage *>(_o);
  187. Q_UNUSED(_t)
  188. switch (_id) {
  189. case 0: _t->onSearchButtonClick(); break;
  190. case 1: _t->onUpButtonClick(); break;
  191. case 2: _t->onNextButtonClick(); break;
  192. case 3: _t->onEditButtonClick(); break;
  193. case 4: _t->onDelButtonClick(); break;
  194. case 5: _t->onShowNews(); break;
  195. default: ;
  196. }
  197. }
  198. Q_UNUSED(_a);
  199. }
  200. const QMetaObject ModelPage::staticMetaObject = {
  201. { &QWidget::staticMetaObject, qt_meta_stringdata_ModelPage.data,
  202. qt_meta_data_ModelPage, qt_static_metacall, nullptr, nullptr}
  203. };
  204. const QMetaObject *ModelPage::metaObject() const
  205. {
  206. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  207. }
  208. void *ModelPage::qt_metacast(const char *_clname)
  209. {
  210. if (!_clname) return nullptr;
  211. if (!strcmp(_clname, qt_meta_stringdata_ModelPage.stringdata0))
  212. return static_cast<void*>(const_cast< ModelPage*>(this));
  213. return QWidget::qt_metacast(_clname);
  214. }
  215. int ModelPage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  216. {
  217. _id = QWidget::qt_metacall(_c, _id, _a);
  218. if (_id < 0)
  219. return _id;
  220. if (_c == QMetaObject::InvokeMetaMethod) {
  221. if (_id < 6)
  222. qt_static_metacall(this, _c, _id, _a);
  223. _id -= 6;
  224. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  225. if (_id < 6)
  226. *reinterpret_cast<int*>(_a[0]) = -1;
  227. _id -= 6;
  228. }
  229. return _id;
  230. }
  231. QT_WARNING_POP
  232. QT_END_MOC_NAMESPACE