00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "../Segment/SegmentLine.h"
00010 #include <QtCore/qbytearray.h>
00011 #include <QtCore/qmetatype.h>
00012 #if !defined(Q_MOC_OUTPUT_REVISION)
00013 #error "The header file 'SegmentLine.h' doesn't include <QObject>."
00014 #elif Q_MOC_OUTPUT_REVISION != 67
00015 #error "This file was generated using the moc from 5.6.1. 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_SegmentLine_t {
00022 QByteArrayData data[3];
00023 char stringdata0[25];
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_SegmentLine_t, stringdata0) + ofs \
00028 - idx * sizeof(QByteArrayData)) \
00029 )
00030 static const qt_meta_stringdata_SegmentLine_t qt_meta_stringdata_SegmentLine = {
00031 {
00032 QT_MOC_LITERAL(0, 0, 11),
00033 QT_MOC_LITERAL(1, 12, 11),
00034 QT_MOC_LITERAL(2, 24, 0)
00035
00036 },
00037 "SegmentLine\0signalHover\0"
00038 };
00039 #undef QT_MOC_LITERAL
00040
00041 static const uint qt_meta_data_SegmentLine[] = {
00042
00043
00044 7,
00045 0,
00046 0, 0,
00047 1, 14,
00048 0, 0,
00049 0, 0,
00050 0, 0,
00051 0,
00052 1,
00053
00054
00055 1, 1, 19, 2, 0x06 ,
00056
00057
00058 QMetaType::Void, QMetaType::Bool, 2,
00059
00060 0
00061 };
00062
00063 void SegmentLine::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
00064 {
00065 if (_c == QMetaObject::InvokeMetaMethod) {
00066 SegmentLine *_t = static_cast<SegmentLine *>(_o);
00067 Q_UNUSED(_t)
00068 switch (_id) {
00069 case 0: _t->signalHover((*reinterpret_cast< bool(*)>(_a[1]))); break;
00070 default: ;
00071 }
00072 } else if (_c == QMetaObject::IndexOfMethod) {
00073 int *result = reinterpret_cast<int *>(_a[0]);
00074 void **func = reinterpret_cast<void **>(_a[1]);
00075 {
00076 typedef void (SegmentLine::*_t)(bool );
00077 if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SegmentLine::signalHover)) {
00078 *result = 0;
00079 return;
00080 }
00081 }
00082 }
00083 }
00084
00085 const QMetaObject SegmentLine::staticMetaObject = {
00086 { &QObject::staticMetaObject, qt_meta_stringdata_SegmentLine.data,
00087 qt_meta_data_SegmentLine, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
00088 };
00089
00090
00091 const QMetaObject *SegmentLine::metaObject() const
00092 {
00093 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
00094 }
00095
00096 void *SegmentLine::qt_metacast(const char *_clname)
00097 {
00098 if (!_clname) return Q_NULLPTR;
00099 if (!strcmp(_clname, qt_meta_stringdata_SegmentLine.stringdata0))
00100 return static_cast<void*>(const_cast< SegmentLine*>(this));
00101 if (!strcmp(_clname, "QGraphicsLineItem"))
00102 return static_cast< QGraphicsLineItem*>(const_cast< SegmentLine*>(this));
00103 return QObject::qt_metacast(_clname);
00104 }
00105
00106 int SegmentLine::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00107 {
00108 _id = QObject::qt_metacall(_c, _id, _a);
00109 if (_id < 0)
00110 return _id;
00111 if (_c == QMetaObject::InvokeMetaMethod) {
00112 if (_id < 1)
00113 qt_static_metacall(this, _c, _id, _a);
00114 _id -= 1;
00115 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
00116 if (_id < 1)
00117 *reinterpret_cast<int*>(_a[0]) = -1;
00118 _id -= 1;
00119 }
00120 return _id;
00121 }
00122
00123
00124 void SegmentLine::signalHover(bool _t1)
00125 {
00126 void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00127 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00128 }
00129 QT_END_MOC_NAMESPACE