input_geometry.cpp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'input_geometry.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_geometry.hpp"
  10. #include <QtCore/qbytearray.h>
  11. #include <QtCore/qmetatype.h>
  12. #if !defined(Q_MOC_OUTPUT_REVISION)
  13. #error "The header file 'input_geometry.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_QtInputGeometry_t {
  23. QByteArrayData data[4];
  24. char stringdata0[53];
  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_QtInputGeometry_t, stringdata0) + ofs \
  29. - idx * sizeof(QByteArrayData)) \
  30. )
  31. static const qt_meta_stringdata_QtInputGeometry_t qt_meta_stringdata_QtInputGeometry = {
  32. {
  33. QT_MOC_LITERAL(0, 0, 15), // "QtInputGeometry"
  34. QT_MOC_LITERAL(1, 16, 15), // "geometryChanged"
  35. QT_MOC_LITERAL(2, 32, 0), // ""
  36. QT_MOC_LITERAL(3, 33, 19) // "emitGeometryChanged"
  37. },
  38. "QtInputGeometry\0geometryChanged\0\0"
  39. "emitGeometryChanged"
  40. };
  41. #undef QT_MOC_LITERAL
  42. static const uint qt_meta_data_QtInputGeometry[] = {
  43. // content:
  44. 8, // revision
  45. 0, // classname
  46. 0, 0, // classinfo
  47. 2, 14, // methods
  48. 0, 0, // properties
  49. 0, 0, // enums/sets
  50. 0, 0, // constructors
  51. 0, // flags
  52. 1, // signalCount
  53. // signals: name, argc, parameters, tag, flags
  54. 1, 0, 24, 2, 0x06 /* Public */,
  55. // slots: name, argc, parameters, tag, flags
  56. 3, 0, 25, 2, 0x0a /* Public */,
  57. // signals: parameters
  58. QMetaType::Void,
  59. // slots: parameters
  60. QMetaType::Void,
  61. 0 // eod
  62. };
  63. void QtInputGeometry::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  64. {
  65. if (_c == QMetaObject::InvokeMetaMethod) {
  66. auto *_t = static_cast<QtInputGeometry *>(_o);
  67. (void)_t;
  68. switch (_id) {
  69. case 0: _t->geometryChanged(); break;
  70. case 1: _t->emitGeometryChanged(); break;
  71. default: ;
  72. }
  73. } else if (_c == QMetaObject::IndexOfMethod) {
  74. int *result = reinterpret_cast<int *>(_a[0]);
  75. {
  76. using _t = void (QtInputGeometry::*)();
  77. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QtInputGeometry::geometryChanged)) {
  78. *result = 0;
  79. return;
  80. }
  81. }
  82. }
  83. (void)_a;
  84. }
  85. QT_INIT_METAOBJECT const QMetaObject QtInputGeometry::staticMetaObject = { {
  86. QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
  87. qt_meta_stringdata_QtInputGeometry.data,
  88. qt_meta_data_QtInputGeometry,
  89. qt_static_metacall,
  90. nullptr,
  91. nullptr
  92. } };
  93. const QMetaObject *QtInputGeometry::metaObject() const
  94. {
  95. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  96. }
  97. void *QtInputGeometry::qt_metacast(const char *_clname)
  98. {
  99. if (!_clname) return nullptr;
  100. if (!strcmp(_clname, qt_meta_stringdata_QtInputGeometry.stringdata0))
  101. return static_cast<void*>(this);
  102. return QWidget::qt_metacast(_clname);
  103. }
  104. int QtInputGeometry::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  105. {
  106. _id = QWidget::qt_metacall(_c, _id, _a);
  107. if (_id < 0)
  108. return _id;
  109. if (_c == QMetaObject::InvokeMetaMethod) {
  110. if (_id < 2)
  111. qt_static_metacall(this, _c, _id, _a);
  112. _id -= 2;
  113. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  114. if (_id < 2)
  115. *reinterpret_cast<int*>(_a[0]) = -1;
  116. _id -= 2;
  117. }
  118. return _id;
  119. }
  120. // SIGNAL 0
  121. void QtInputGeometry::geometryChanged()
  122. {
  123. QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
  124. }
  125. QT_WARNING_POP
  126. QT_END_MOC_NAMESPACE