input.cpp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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[10];
  24. char stringdata0[84];
  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. },
  44. "QtInput\0run_signal\0\0exit_signal\0run\0"
  45. "save\0cancel\0changeTabIndex\0index\0"
  46. "updateGeometry"
  47. };
  48. #undef QT_MOC_LITERAL
  49. static const uint qt_meta_data_QtInput[] = {
  50. // content:
  51. 8, // revision
  52. 0, // classname
  53. 0, 0, // classinfo
  54. 7, 14, // methods
  55. 0, 0, // properties
  56. 0, 0, // enums/sets
  57. 0, 0, // constructors
  58. 0, // flags
  59. 2, // signalCount
  60. // signals: name, argc, parameters, tag, flags
  61. 1, 0, 49, 2, 0x06 /* Public */,
  62. 3, 0, 50, 2, 0x06 /* Public */,
  63. // slots: name, argc, parameters, tag, flags
  64. 4, 0, 51, 2, 0x08 /* Private */,
  65. 5, 0, 52, 2, 0x08 /* Private */,
  66. 6, 0, 53, 2, 0x08 /* Private */,
  67. 7, 1, 54, 2, 0x08 /* Private */,
  68. 9, 0, 57, 2, 0x08 /* Private */,
  69. // signals: parameters
  70. QMetaType::Void,
  71. QMetaType::Void,
  72. // slots: parameters
  73. QMetaType::Void,
  74. QMetaType::Void,
  75. QMetaType::Void,
  76. QMetaType::Void, QMetaType::Int, 8,
  77. QMetaType::Void,
  78. 0 // eod
  79. };
  80. void QtInput::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  81. {
  82. if (_c == QMetaObject::InvokeMetaMethod) {
  83. auto *_t = static_cast<QtInput *>(_o);
  84. (void)_t;
  85. switch (_id) {
  86. case 0: _t->run_signal(); break;
  87. case 1: _t->exit_signal(); break;
  88. case 2: _t->run(); break;
  89. case 3: _t->save(); break;
  90. case 4: _t->cancel(); break;
  91. case 5: _t->changeTabIndex((*reinterpret_cast< int(*)>(_a[1]))); break;
  92. case 6: _t->updateGeometry(); break;
  93. default: ;
  94. }
  95. } else if (_c == QMetaObject::IndexOfMethod) {
  96. int *result = reinterpret_cast<int *>(_a[0]);
  97. {
  98. using _t = void (QtInput::*)();
  99. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QtInput::run_signal)) {
  100. *result = 0;
  101. return;
  102. }
  103. }
  104. {
  105. using _t = void (QtInput::*)();
  106. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QtInput::exit_signal)) {
  107. *result = 1;
  108. return;
  109. }
  110. }
  111. }
  112. }
  113. QT_INIT_METAOBJECT const QMetaObject QtInput::staticMetaObject = { {
  114. QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
  115. qt_meta_stringdata_QtInput.data,
  116. qt_meta_data_QtInput,
  117. qt_static_metacall,
  118. nullptr,
  119. nullptr
  120. } };
  121. const QMetaObject *QtInput::metaObject() const
  122. {
  123. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  124. }
  125. void *QtInput::qt_metacast(const char *_clname)
  126. {
  127. if (!_clname) return nullptr;
  128. if (!strcmp(_clname, qt_meta_stringdata_QtInput.stringdata0))
  129. return static_cast<void*>(this);
  130. return QWidget::qt_metacast(_clname);
  131. }
  132. int QtInput::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  133. {
  134. _id = QWidget::qt_metacall(_c, _id, _a);
  135. if (_id < 0)
  136. return _id;
  137. if (_c == QMetaObject::InvokeMetaMethod) {
  138. if (_id < 7)
  139. qt_static_metacall(this, _c, _id, _a);
  140. _id -= 7;
  141. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  142. if (_id < 7)
  143. *reinterpret_cast<int*>(_a[0]) = -1;
  144. _id -= 7;
  145. }
  146. return _id;
  147. }
  148. // SIGNAL 0
  149. void QtInput::run_signal()
  150. {
  151. QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
  152. }
  153. // SIGNAL 1
  154. void QtInput::exit_signal()
  155. {
  156. QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
  157. }
  158. QT_WARNING_POP
  159. QT_END_MOC_NAMESPACE