00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "../Tutorial/TutorialButton.h"
00010 #include <QtCore/qbytearray.h>
00011 #include <QtCore/qmetatype.h>
00012 #if !defined(Q_MOC_OUTPUT_REVISION)
00013 #error "The header file 'TutorialButton.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_TutorialButton_t {
00022 QByteArrayData data[3];
00023 char stringdata0[32];
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_TutorialButton_t, stringdata0) + ofs \
00028 - idx * sizeof(QByteArrayData)) \
00029 )
00030 static const qt_meta_stringdata_TutorialButton_t qt_meta_stringdata_TutorialButton = {
00031 {
00032 QT_MOC_LITERAL(0, 0, 14),
00033 QT_MOC_LITERAL(1, 15, 15),
00034 QT_MOC_LITERAL(2, 31, 0)
00035
00036 },
00037 "TutorialButton\0signalTriggered\0"
00038 };
00039 #undef QT_MOC_LITERAL
00040
00041 static const uint qt_meta_data_TutorialButton[] = {
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, 0, 19, 2, 0x06 ,
00056
00057
00058 QMetaType::Void,
00059
00060 0
00061 };
00062
00063 void TutorialButton::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
00064 {
00065 if (_c == QMetaObject::InvokeMetaMethod) {
00066 TutorialButton *_t = static_cast<TutorialButton *>(_o);
00067 Q_UNUSED(_t)
00068 switch (_id) {
00069 case 0: _t->signalTriggered(); 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 (TutorialButton::*_t)();
00077 if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TutorialButton::signalTriggered)) {
00078 *result = 0;
00079 return;
00080 }
00081 }
00082 }
00083 Q_UNUSED(_a);
00084 }
00085
00086 const QMetaObject TutorialButton::staticMetaObject = {
00087 { &QObject::staticMetaObject, qt_meta_stringdata_TutorialButton.data,
00088 qt_meta_data_TutorialButton, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
00089 };
00090
00091
00092 const QMetaObject *TutorialButton::metaObject() const
00093 {
00094 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
00095 }
00096
00097 void *TutorialButton::qt_metacast(const char *_clname)
00098 {
00099 if (!_clname) return Q_NULLPTR;
00100 if (!strcmp(_clname, qt_meta_stringdata_TutorialButton.stringdata0))
00101 return static_cast<void*>(const_cast< TutorialButton*>(this));
00102 return QObject::qt_metacast(_clname);
00103 }
00104
00105 int TutorialButton::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00106 {
00107 _id = QObject::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 TutorialButton::signalTriggered()
00124 {
00125 QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
00126 }
00127 QT_END_MOC_NAMESPACE