1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'counter.h' |
3 | ** |
4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.0) |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost! |
7 | *****************************************************************************/ |
8 | |
9 | #include "../counter.h" |
10 | #include <QtCore/qbytearray.h> |
11 | #include <QtCore/qmetatype.h> |
12 | #if !defined(Q_MOC_OUTPUT_REVISION) |
13 | #error "The header file 'counter.h' doesn't include <QObject>." |
14 | #elif Q_MOC_OUTPUT_REVISION != 67 |
15 | #error "This file was generated using the moc from 5.7.0. 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 | |
20 | QT_BEGIN_MOC_NAMESPACE |
21 | struct qt_meta_stringdata_Counter_t { |
22 | QByteArrayData data[6]; |
23 | char stringdata0[46]; |
24 | }; |
25 | #define QT_MOC_LITERAL(idx, ofs, len) \ |
26 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ |
27 | qptrdiff(offsetof(qt_meta_stringdata_Counter_t, stringdata0) + ofs \ |
28 | - idx * sizeof(QByteArrayData)) \ |
29 | ) |
30 | static const qt_meta_stringdata_Counter_t qt_meta_stringdata_Counter = { |
31 | { |
32 | QT_MOC_LITERAL(0, 0, 7), // "Counter" |
33 | QT_MOC_LITERAL(1, 8, 12), // "valueChanged" |
34 | QT_MOC_LITERAL(2, 21, 0), // "" |
35 | QT_MOC_LITERAL(3, 22, 8), // "newValue" |
36 | QT_MOC_LITERAL(4, 31, 8), // "setValue" |
37 | QT_MOC_LITERAL(5, 40, 5) // "value" |
38 | |
39 | }, |
40 | "Counter\0valueChanged\0\0newValue\0setValue\0" |
41 | "value" |
42 | }; |
43 | #undef QT_MOC_LITERAL |
44 | |
45 | static const uint qt_meta_data_Counter[] = { |
46 | |
47 | // content: |
48 | 7, // revision |
49 | 0, // classname |
50 | 0, 0, // classinfo |
51 | 2, 14, // methods |
52 | 0, 0, // properties |
53 | 0, 0, // enums/sets |
54 | 0, 0, // constructors |
55 | 0, // flags |
56 | 1, // signalCount |
57 | |
58 | // signals: name, argc, parameters, tag, flags |
59 | 1, 1, 24, 2, 0x06 /* Public */, |
60 | |
61 | // slots: name, argc, parameters, tag, flags |
62 | 4, 1, 27, 2, 0x0a /* Public */, |
63 | |
64 | // signals: parameters |
65 | QMetaType::Void, QMetaType::Int, 3, |
66 | |
67 | // slots: parameters |
68 | QMetaType::Void, QMetaType::Int, 5, |
69 | |
70 | 0 // eod |
71 | }; |
72 | |
73 | void Counter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
74 | { |
75 | if (_c == QMetaObject::InvokeMetaMethod) { |
76 | Q_ASSERT(staticMetaObject.cast(_o)); |
77 | Counter *_t = static_cast<Counter *>(_o); |
78 | Q_UNUSED(_t) |
79 | switch (_id) { |
80 | case 0: _t->valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break; |
81 | case 1: _t->setValue((*reinterpret_cast< int(*)>(_a[1]))); break; |
82 | default: ; |
83 | } |
84 | } else if (_c == QMetaObject::IndexOfMethod) { |
85 | int *result = reinterpret_cast<int *>(_a[0]); |
86 | void **func = reinterpret_cast<void **>(_a[1]); |
87 | { |
88 | typedef void (Counter::*_t)(int ); |
89 | if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Counter::valueChanged)) { |
90 | *result = 0; |
91 | } |
92 | } |
93 | } |
94 | } |
95 | |
96 | const QMetaObject Counter::staticMetaObject = { |
97 | { &QObject::staticMetaObject, qt_meta_stringdata_Counter.data, |
98 | qt_meta_data_Counter, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} |
99 | }; |
100 | |
101 | |
102 | const QMetaObject *Counter::metaObject() const |
103 | { |
104 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
105 | } |
106 | |
107 | void *Counter::qt_metacast(const char *_clname) |
108 | { |
109 | if (!_clname) return Q_NULLPTR; |
110 | if (!strcmp(_clname, qt_meta_stringdata_Counter.stringdata0)) |
111 | return static_cast<void*>(const_cast< Counter*>(this)); |
112 | return QObject::qt_metacast(_clname); |
113 | } |
114 | |
115 | int Counter::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
116 | { |
117 | _id = QObject::qt_metacall(_c, _id, _a); |
118 | if (_id < 0) |
119 | return _id; |
120 | if (_c == QMetaObject::InvokeMetaMethod) { |
121 | if (_id < 2) |
122 | qt_static_metacall(this, _c, _id, _a); |
123 | _id -= 2; |
124 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
125 | if (_id < 2) |
126 | *reinterpret_cast<int*>(_a[0]) = -1; |
127 | _id -= 2; |
128 | } |
129 | return _id; |
130 | } |
131 | |
132 | // SIGNAL 0 |
133 | void Counter::valueChanged(int _t1) |
134 | { |
135 | void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; |
136 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
137 | } |
138 | QT_END_MOC_NAMESPACE |
139 | |