moc_mainwindow.cpp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'mainwindow.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 "../mainwindow.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'mainwindow.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_MainWindow_t {
  22. QByteArrayData data[8];
  23. char stringdata0[92];
  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_MainWindow_t, stringdata0) + ofs \
  28. - idx * sizeof(QByteArrayData)) \
  29. )
  30. static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
  31. {
  32. QT_MOC_LITERAL(0, 0, 10), // "MainWindow"
  33. QT_MOC_LITERAL(1, 11, 10), // "pageSwitch"
  34. QT_MOC_LITERAL(2, 22, 0), // ""
  35. QT_MOC_LITERAL(3, 23, 16), // "QTreeWidgetItem*"
  36. QT_MOC_LITERAL(4, 40, 4), // "item"
  37. QT_MOC_LITERAL(5, 45, 6), // "column"
  38. QT_MOC_LITERAL(6, 52, 16), // "addModelComplete"
  39. QT_MOC_LITERAL(7, 69, 22) // "onActionAboutTriggered"
  40. },
  41. "MainWindow\0pageSwitch\0\0QTreeWidgetItem*\0"
  42. "item\0column\0addModelComplete\0"
  43. "onActionAboutTriggered"
  44. };
  45. #undef QT_MOC_LITERAL
  46. static const uint qt_meta_data_MainWindow[] = {
  47. // content:
  48. 7, // revision
  49. 0, // classname
  50. 0, 0, // classinfo
  51. 3, 14, // methods
  52. 0, 0, // properties
  53. 0, 0, // enums/sets
  54. 0, 0, // constructors
  55. 0, // flags
  56. 0, // signalCount
  57. // slots: name, argc, parameters, tag, flags
  58. 1, 2, 29, 2, 0x08 /* Private */,
  59. 6, 0, 34, 2, 0x08 /* Private */,
  60. 7, 0, 35, 2, 0x08 /* Private */,
  61. // slots: parameters
  62. QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 4, 5,
  63. QMetaType::Void,
  64. QMetaType::Void,
  65. 0 // eod
  66. };
  67. void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  68. {
  69. if (_c == QMetaObject::InvokeMetaMethod) {
  70. MainWindow *_t = static_cast<MainWindow *>(_o);
  71. Q_UNUSED(_t)
  72. switch (_id) {
  73. case 0: _t->pageSwitch((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
  74. case 1: _t->addModelComplete(); break;
  75. case 2: _t->onActionAboutTriggered(); break;
  76. default: ;
  77. }
  78. }
  79. }
  80. const QMetaObject MainWindow::staticMetaObject = {
  81. { &SARibbonMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data,
  82. qt_meta_data_MainWindow, qt_static_metacall, nullptr, nullptr}
  83. };
  84. const QMetaObject *MainWindow::metaObject() const
  85. {
  86. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  87. }
  88. void *MainWindow::qt_metacast(const char *_clname)
  89. {
  90. if (!_clname) return nullptr;
  91. if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
  92. return static_cast<void*>(const_cast< MainWindow*>(this));
  93. return SARibbonMainWindow::qt_metacast(_clname);
  94. }
  95. int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  96. {
  97. _id = SARibbonMainWindow::qt_metacall(_c, _id, _a);
  98. if (_id < 0)
  99. return _id;
  100. if (_c == QMetaObject::InvokeMetaMethod) {
  101. if (_id < 3)
  102. qt_static_metacall(this, _c, _id, _a);
  103. _id -= 3;
  104. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  105. if (_id < 3)
  106. *reinterpret_cast<int*>(_a[0]) = -1;
  107. _id -= 3;
  108. }
  109. return _id;
  110. }
  111. QT_WARNING_POP
  112. QT_END_MOC_NAMESPACE