input.cpp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'input.hpp'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include <memory>
  9. #include "../src/qt/input.hpp"
  10. #include <QtCore/qbytearray.h>
  11. #include <QtCore/qmetatype.h>
  12. #if !defined(Q_MOC_OUTPUT_REVISION)
  13. #error "The header file 'input.hpp' doesn't include <QObject>."
  14. #elif Q_MOC_OUTPUT_REVISION != 67
  15. #error "This file was generated using the moc from 5.15.2. 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_QtInput_t {
  23. QByteArrayData data[12];
  24. char stringdata0[116];
  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_QtInput_t, stringdata0) + ofs \
  29. - idx * sizeof(QByteArrayData)) \
  30. )
  31. static const qt_meta_stringdata_QtInput_t qt_meta_stringdata_QtInput = {
  32. {
  33. QT_MOC_LITERAL(0, 0, 7), // "QtInput"
  34. QT_MOC_LITERAL(1, 8, 10), // "run_signal"
  35. QT_MOC_LITERAL(2, 19, 0), // ""
  36. QT_MOC_LITERAL(3, 20, 11), // "exit_signal"
  37. QT_MOC_LITERAL(4, 32, 3), // "run"
  38. QT_MOC_LITERAL(5, 36, 4), // "save"
  39. QT_MOC_LITERAL(6, 41, 6), // "cancel"
  40. QT_MOC_LITERAL(7, 48, 14), // "changeTabIndex"
  41. QT_MOC_LITERAL(8, 63, 5), // "index"
  42. QT_MOC_LITERAL(9, 69, 14), // "updateGeometry"
  43. QT_MOC_LITERAL(10, 84, 18), // "updateInitialState"
  44. QT_MOC_LITERAL(11, 103, 12) // "updateSource"
  45. },
  46. "QtInput\0run_signal\0\0exit_signal\0run\0"
  47. "save\0cancel\0changeTabIndex\0index\0"
  48. "updateGeometry\0updateInitialState\0"
  49. "updateSource"
  50. };
  51. #undef QT_MOC_LITERAL
  52. static const uint qt_meta_data_QtInput[] = {
  53. // content:
  54. 8, // revision
  55. 0, // classname
  56. 0, 0, // classinfo
  57. 9, 14, // methods
  58. 0, 0, // properties
  59. 0, 0, // enums/sets
  60. 0, 0, // constructors
  61. 0, // flags
  62. 2, // signalCount
  63. // signals: name, argc, parameters, tag, flags
  64. 1, 0, 59, 2, 0x06 /* Public */,
  65. 3, 0, 60, 2, 0x06 /* Public */,
  66. // slots: name, argc, parameters, tag, flags
  67. 4, 0, 61, 2, 0x08 /* Private */,
  68. 5, 0, 62, 2, 0x08 /* Private */,
  69. 6, 0, 63, 2, 0x08 /* Private */,
  70. 7, 1, 64, 2, 0x08 /* Private */,
  71. 9, 0, 67, 2, 0x08 /* Private */,
  72. 10, 0, 68, 2, 0x08 /* Private */,
  73. 11, 0, 69, 2, 0x08 /* Private */,
  74. // signals: parameters
  75. QMetaType::Void,
  76. QMetaType::Void,
  77. // slots: parameters
  78. QMetaType::Void,
  79. QMetaType::Void,
  80. QMetaType::Void,
  81. QMetaType::Void, QMetaType::Int, 8,
  82. QMetaType::Void,
  83. QMetaType::Void,
  84. QMetaType::Void,
  85. 0 // eod
  86. };
  87. void QtInput::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  88. {
  89. if (_c == QMetaObject::InvokeMetaMethod) {
  90. auto *_t = static_cast<QtInput *>(_o);
  91. (void)_t;
  92. switch (_id) {
  93. case 0: _t->run_signal(); break;
  94. case 1: _t->exit_signal(); break;
  95. case 2: _t->run(); break;
  96. case 3: _t->save(); break;
  97. case 4: _t->cancel(); break;
  98. case 5: _t->changeTabIndex((*reinterpret_cast< int(*)>(_a[1]))); break;
  99. case 6: _t->updateGeometry(); break;
  100. case 7: _t->updateInitialState(); break;
  101. case 8: _t->updateSource(); break;
  102. default: ;
  103. }
  104. } else if (_c == QMetaObject::IndexOfMethod) {
  105. int *result = reinterpret_cast<int *>(_a[0]);
  106. {
  107. using _t = void (QtInput::*)();
  108. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QtInput::run_signal)) {
  109. *result = 0;
  110. return;
  111. }
  112. }
  113. {
  114. using _t = void (QtInput::*)();
  115. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QtInput::exit_signal)) {
  116. *result = 1;
  117. return;
  118. }
  119. }
  120. }
  121. }
  122. QT_INIT_METAOBJECT const QMetaObject QtInput::staticMetaObject = { {
  123. QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
  124. qt_meta_stringdata_QtInput.data,
  125. qt_meta_data_QtInput,
  126. qt_static_metacall,
  127. nullptr,
  128. nullptr
  129. } };
  130. const QMetaObject *QtInput::metaObject() const
  131. {
  132. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  133. }
  134. void *QtInput::qt_metacast(const char *_clname)
  135. {
  136. if (!_clname) return nullptr;
  137. if (!strcmp(_clname, qt_meta_stringdata_QtInput.stringdata0))
  138. return static_cast<void*>(this);
  139. return QWidget::qt_metacast(_clname);
  140. }
  141. int QtInput::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  142. {
  143. _id = QWidget::qt_metacall(_c, _id, _a);
  144. if (_id < 0)
  145. return _id;
  146. if (_c == QMetaObject::InvokeMetaMethod) {
  147. if (_id < 9)
  148. qt_static_metacall(this, _c, _id, _a);
  149. _id -= 9;
  150. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  151. if (_id < 9)
  152. *reinterpret_cast<int*>(_a[0]) = -1;
  153. _id -= 9;
  154. }
  155. return _id;
  156. }
  157. // SIGNAL 0
  158. void QtInput::run_signal()
  159. {
  160. QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
  161. }
  162. // SIGNAL 1
  163. void QtInput::exit_signal()
  164. {
  165. QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
  166. }
  167. QT_WARNING_POP
  168. QT_END_MOC_NAMESPACE