00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "../Segment/Segment.h"
00010 #include <QtCore/qbytearray.h>
00011 #include <QtCore/qmetatype.h>
00012 #if !defined(Q_MOC_OUTPUT_REVISION)
00013 #error "The header file 'Segment.h' doesn't include <QObject>."
00014 #elif Q_MOC_OUTPUT_REVISION != 67
00015 #error "This file was generated using the moc from 5.6.0. It"
00016 #error "cannot be used with the include files from this version of Qt."
00017 #error "(The moc has changed too much.)"
00018 #endif
00019
00020 QT_BEGIN_MOC_NAMESPACE
00021 struct qt_meta_stringdata_Segment_t {
00022 QByteArrayData data[6];
00023 char stringdata0[67];
00024 };
00025 #define QT_MOC_LITERAL(idx, ofs, len) \
00026 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
00027 qptrdiff(offsetof(qt_meta_stringdata_Segment_t, stringdata0) + ofs \
00028 - idx * sizeof(QByteArrayData)) \
00029 )
00030 static const qt_meta_stringdata_Segment_t qt_meta_stringdata_Segment = {
00031 {
00032 QT_MOC_LITERAL(0, 0, 7),
00033 QT_MOC_LITERAL(1, 8, 25),
00034 QT_MOC_LITERAL(2, 34, 0),
00035 QT_MOC_LITERAL(3, 35, 15),
00036 QT_MOC_LITERAL(4, 51, 9),
00037 QT_MOC_LITERAL(5, 61, 5)
00038
00039 },
00040 "Segment\0signalMouseClickOnSegment\0\0"
00041 "posSegmentStart\0slotHover\0hover"
00042 };
00043 #undef QT_MOC_LITERAL
00044
00045 static const uint qt_meta_data_Segment[] = {
00046
00047
00048 7,
00049 0,
00050 0, 0,
00051 2, 14,
00052 0, 0,
00053 0, 0,
00054 0, 0,
00055 0,
00056 1,
00057
00058
00059 1, 1, 24, 2, 0x06 ,
00060
00061
00062 4, 1, 27, 2, 0x0a ,
00063
00064
00065 QMetaType::Void, QMetaType::QPointF, 3,
00066
00067
00068 QMetaType::Void, QMetaType::Bool, 5,
00069
00070 0
00071 };
00072
00073 void Segment::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
00074 {
00075 if (_c == QMetaObject::InvokeMetaMethod) {
00076 Segment *_t = static_cast<Segment *>(_o);
00077 Q_UNUSED(_t)
00078 switch (_id) {
00079 case 0: _t->signalMouseClickOnSegment((*reinterpret_cast< QPointF(*)>(_a[1]))); break;
00080 case 1: _t->slotHover((*reinterpret_cast< bool(*)>(_a[1]))); break;
00081 default: ;
00082 }
00083 } else if (_c == QMetaObject::IndexOfMethod) {
00084 int *result = reinterpret_cast<int *>(_a[0]);
00085 void **func = reinterpret_cast<void **>(_a[1]);
00086 {
00087 typedef void (Segment::*_t)(QPointF );
00088 if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Segment::signalMouseClickOnSegment)) {
00089 *result = 0;
00090 return;
00091 }
00092 }
00093 }
00094 }
00095
00096 const QMetaObject Segment::staticMetaObject = {
00097 { &QObject::staticMetaObject, qt_meta_stringdata_Segment.data,
00098 qt_meta_data_Segment, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
00099 };
00100
00101
00102 const QMetaObject *Segment::metaObject() const
00103 {
00104 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
00105 }
00106
00107 void *Segment::qt_metacast(const char *_clname)
00108 {
00109 if (!_clname) return Q_NULLPTR;
00110 if (!strcmp(_clname, qt_meta_stringdata_Segment.stringdata0))
00111 return static_cast<void*>(const_cast< Segment*>(this));
00112 return QObject::qt_metacast(_clname);
00113 }
00114
00115 int Segment::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00116 {
00117 _id = QObject::qt_metacall(_c, _id, _a);
00118 if (_id < 0)
00119 return _id;
00120 if (_c == QMetaObject::InvokeMetaMethod) {
00121 if (_id < 2)
00122 qt_static_metacall(this, _c, _id, _a);
00123 _id -= 2;
00124 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
00125 if (_id < 2)
00126 *reinterpret_cast<int*>(_a[0]) = -1;
00127 _id -= 2;
00128 }
00129 return _id;
00130 }
00131
00132
00133 void Segment::signalMouseClickOnSegment(QPointF _t1)
00134 {
00135 void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00136 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00137 }
00138 QT_END_MOC_NAMESPACE