moc_mainwindow.cpp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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[22];
  25. char stringdata0[171];
  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. },
  43. "MainWindow\0on_btn_link_clicked\0\0"
  44. "onTreeItemClicked\0QModelIndex\0index\0"
  45. "on_tbtn_link_clicked\0on_btn_set_clicked\0"
  46. "on_tbtn_set_clicked\0on_btn_scope_clicked\0"
  47. "on_tbtn_scope_clicked"
  48. };
  49. #undef QT_MOC_LITERAL
  50. static const uint qt_meta_data_MainWindow[] = {
  51. // content:
  52. 10, // revision
  53. 0, // classname
  54. 0, 0, // classinfo
  55. 7, 14, // methods
  56. 0, 0, // properties
  57. 0, 0, // enums/sets
  58. 0, 0, // constructors
  59. 0, // flags
  60. 0, // signalCount
  61. // slots: name, argc, parameters, tag, flags, initial metatype offsets
  62. 1, 0, 56, 2, 0x08, 1 /* Private */,
  63. 3, 1, 57, 2, 0x08, 2 /* Private */,
  64. 6, 0, 60, 2, 0x08, 4 /* Private */,
  65. 7, 0, 61, 2, 0x08, 5 /* Private */,
  66. 8, 0, 62, 2, 0x08, 6 /* Private */,
  67. 9, 0, 63, 2, 0x08, 7 /* Private */,
  68. 10, 0, 64, 2, 0x08, 8 /* Private */,
  69. // slots: parameters
  70. QMetaType::Void,
  71. QMetaType::Void, 0x80000000 | 4, 5,
  72. QMetaType::Void,
  73. QMetaType::Void,
  74. QMetaType::Void,
  75. QMetaType::Void,
  76. QMetaType::Void,
  77. 0 // eod
  78. };
  79. void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  80. {
  81. if (_c == QMetaObject::InvokeMetaMethod) {
  82. auto *_t = static_cast<MainWindow *>(_o);
  83. (void)_t;
  84. switch (_id) {
  85. case 0: _t->on_btn_link_clicked(); break;
  86. case 1: _t->onTreeItemClicked((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1]))); break;
  87. case 2: _t->on_tbtn_link_clicked(); break;
  88. case 3: _t->on_btn_set_clicked(); break;
  89. case 4: _t->on_tbtn_set_clicked(); break;
  90. case 5: _t->on_btn_scope_clicked(); break;
  91. case 6: _t->on_tbtn_scope_clicked(); break;
  92. default: ;
  93. }
  94. }
  95. }
  96. const QMetaObject MainWindow::staticMetaObject = { {
  97. QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
  98. qt_meta_stringdata_MainWindow.offsetsAndSize,
  99. qt_meta_data_MainWindow,
  100. qt_static_metacall,
  101. nullptr,
  102. qt_incomplete_metaTypeArray<qt_meta_stringdata_MainWindow_t
  103. , QtPrivate::TypeAndForceComplete<MainWindow, std::true_type>
  104. , 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>
  105. >,
  106. nullptr
  107. } };
  108. const QMetaObject *MainWindow::metaObject() const
  109. {
  110. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  111. }
  112. void *MainWindow::qt_metacast(const char *_clname)
  113. {
  114. if (!_clname) return nullptr;
  115. if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
  116. return static_cast<void*>(this);
  117. return QMainWindow::qt_metacast(_clname);
  118. }
  119. int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  120. {
  121. _id = QMainWindow::qt_metacall(_c, _id, _a);
  122. if (_id < 0)
  123. return _id;
  124. if (_c == QMetaObject::InvokeMetaMethod) {
  125. if (_id < 7)
  126. qt_static_metacall(this, _c, _id, _a);
  127. _id -= 7;
  128. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  129. if (_id < 7)
  130. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  131. _id -= 7;
  132. }
  133. return _id;
  134. }
  135. QT_WARNING_POP
  136. QT_END_MOC_NAMESPACE