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