moc_mainwindow.cpp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'mainwindow.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.2.4)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include <memory>
  9. #include "../../mainwindow.h"
  10. #include <QtGui/qtextcursor.h>
  11. #include <QtCore/qbytearray.h>
  12. #include <QtCore/qmetatype.h>
  13. #if !defined(Q_MOC_OUTPUT_REVISION)
  14. #error "The header file 'mainwindow.h' doesn't include <QObject>."
  15. #elif Q_MOC_OUTPUT_REVISION != 68
  16. #error "This file was generated using the moc from 6.2.4. It"
  17. #error "cannot be used with the include files from this version of Qt."
  18. #error "(The moc has changed too much.)"
  19. #endif
  20. QT_BEGIN_MOC_NAMESPACE
  21. QT_WARNING_PUSH
  22. QT_WARNING_DISABLE_DEPRECATED
  23. struct qt_meta_stringdata_MainWindow_t {
  24. const uint offsetsAndSize[24];
  25. char stringdata0[184];
  26. };
  27. #define QT_MOC_LITERAL(ofs, len) \
  28. uint(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs), len
  29. static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
  30. {
  31. QT_MOC_LITERAL(0, 10), // "MainWindow"
  32. QT_MOC_LITERAL(11, 19), // "on_btn_link_clicked"
  33. QT_MOC_LITERAL(31, 0), // ""
  34. QT_MOC_LITERAL(32, 17), // "onTreeItemClicked"
  35. QT_MOC_LITERAL(50, 11), // "QModelIndex"
  36. QT_MOC_LITERAL(62, 5), // "index"
  37. QT_MOC_LITERAL(68, 20), // "on_tbtn_link_clicked"
  38. QT_MOC_LITERAL(89, 18), // "on_btn_set_clicked"
  39. QT_MOC_LITERAL(108, 19), // "on_tbtn_set_clicked"
  40. QT_MOC_LITERAL(128, 20), // "on_btn_scope_clicked"
  41. QT_MOC_LITERAL(149, 21), // "on_tbtn_scope_clicked"
  42. QT_MOC_LITERAL(171, 12) // "tree_connect"
  43. },
  44. "MainWindow\0on_btn_link_clicked\0\0"
  45. "onTreeItemClicked\0QModelIndex\0index\0"
  46. "on_tbtn_link_clicked\0on_btn_set_clicked\0"
  47. "on_tbtn_set_clicked\0on_btn_scope_clicked\0"
  48. "on_tbtn_scope_clicked\0tree_connect"
  49. };
  50. #undef QT_MOC_LITERAL
  51. static const uint qt_meta_data_MainWindow[] = {
  52. // content:
  53. 10, // revision
  54. 0, // classname
  55. 0, 0, // classinfo
  56. 8, 14, // methods
  57. 0, 0, // properties
  58. 0, 0, // enums/sets
  59. 0, 0, // constructors
  60. 0, // flags
  61. 0, // signalCount
  62. // slots: name, argc, parameters, tag, flags, initial metatype offsets
  63. 1, 0, 62, 2, 0x08, 1 /* Private */,
  64. 3, 1, 63, 2, 0x08, 2 /* Private */,
  65. 6, 0, 66, 2, 0x08, 4 /* Private */,
  66. 7, 0, 67, 2, 0x08, 5 /* Private */,
  67. 8, 0, 68, 2, 0x08, 6 /* Private */,
  68. 9, 0, 69, 2, 0x08, 7 /* Private */,
  69. 10, 0, 70, 2, 0x08, 8 /* Private */,
  70. 11, 0, 71, 2, 0x08, 9 /* Private */,
  71. // slots: parameters
  72. QMetaType::Void,
  73. QMetaType::Void, 0x80000000 | 4, 5,
  74. QMetaType::Void,
  75. QMetaType::Void,
  76. QMetaType::Void,
  77. QMetaType::Void,
  78. QMetaType::Void,
  79. QMetaType::Void,
  80. 0 // eod
  81. };
  82. void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  83. {
  84. if (_c == QMetaObject::InvokeMetaMethod) {
  85. auto *_t = static_cast<MainWindow *>(_o);
  86. (void)_t;
  87. switch (_id) {
  88. case 0: _t->on_btn_link_clicked(); break;
  89. case 1: _t->onTreeItemClicked((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1]))); break;
  90. case 2: _t->on_tbtn_link_clicked(); break;
  91. case 3: _t->on_btn_set_clicked(); break;
  92. case 4: _t->on_tbtn_set_clicked(); break;
  93. case 5: _t->on_btn_scope_clicked(); break;
  94. case 6: _t->on_tbtn_scope_clicked(); break;
  95. case 7: _t->tree_connect(); break;
  96. default: ;
  97. }
  98. }
  99. }
  100. const QMetaObject MainWindow::staticMetaObject = { {
  101. QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
  102. qt_meta_stringdata_MainWindow.offsetsAndSize,
  103. qt_meta_data_MainWindow,
  104. qt_static_metacall,
  105. nullptr,
  106. qt_incomplete_metaTypeArray<qt_meta_stringdata_MainWindow_t
  107. , QtPrivate::TypeAndForceComplete<MainWindow, std::true_type>
  108. , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
  109. >,
  110. nullptr
  111. } };
  112. const QMetaObject *MainWindow::metaObject() const
  113. {
  114. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  115. }
  116. void *MainWindow::qt_metacast(const char *_clname)
  117. {
  118. if (!_clname) return nullptr;
  119. if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
  120. return static_cast<void*>(this);
  121. return QMainWindow::qt_metacast(_clname);
  122. }
  123. int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  124. {
  125. _id = QMainWindow::qt_metacall(_c, _id, _a);
  126. if (_id < 0)
  127. return _id;
  128. if (_c == QMetaObject::InvokeMetaMethod) {
  129. if (_id < 8)
  130. qt_static_metacall(this, _c, _id, _a);
  131. _id -= 8;
  132. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  133. if (_id < 8)
  134. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  135. _id -= 8;
  136. }
  137. return _id;
  138. }
  139. QT_WARNING_POP
  140. QT_END_MOC_NAMESPACE