Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmlconnections_p.cpp |
Source code | Switch to Preprocessed file |
Line | Source | Count |
---|---|---|
1 | /**************************************************************************** | - |
2 | ** Meta object code from reading C++ file 'qqmlconnections_p.h' | - |
3 | ** | - |
4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.0) | - |
5 | ** | - |
6 | ** WARNING! All changes made in this file will be lost! | - |
7 | *****************************************************************************/ | - |
8 | - | |
9 | #include "../types/qqmlconnections_p.h" | - |
10 | #include <QtCore/qbytearray.h> | - |
11 | #include <QtCore/qmetatype.h> | - |
12 | #if !defined(Q_MOC_OUTPUT_REVISION) | - |
13 | #error "The header file 'qqmlconnections_p.h' doesn't include <QObject>." | - |
14 | #elif Q_MOC_OUTPUT_REVISION != 67 | - |
15 | #error "This file was generated using the moc from 5.12.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 | QT_WARNING_PUSH | - |
22 | QT_WARNING_DISABLE_DEPRECATED | - |
23 | struct qt_meta_stringdata_QQmlConnections_t { | - |
24 | QByteArrayData data[7]; | - |
25 | char stringdata0[82]; | - |
26 | }; | - |
27 | #define QT_MOC_LITERAL(idx, ofs, len) \ | - |
28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ | - |
29 | qptrdiff(offsetof(qt_meta_stringdata_QQmlConnections_t, stringdata0) + ofs \ | - |
30 | - idx * sizeof(QByteArrayData)) \ | - |
31 | ) | - |
32 | static const qt_meta_stringdata_QQmlConnections_t qt_meta_stringdata_QQmlConnections = { | - |
33 | { | - |
34 | QT_MOC_LITERAL(0, 0, 15), // "QQmlConnections" | - |
35 | QT_MOC_LITERAL(1, 16, 13), // "targetChanged" | - |
36 | QT_MOC_LITERAL(2, 30, 0), // "" | - |
37 | QT_MOC_LITERAL(3, 31, 14), // "enabledChanged" | - |
38 | QT_MOC_LITERAL(4, 46, 6), // "target" | - |
39 | QT_MOC_LITERAL(5, 53, 7), // "enabled" | - |
40 | QT_MOC_LITERAL(6, 61, 20) // "ignoreUnknownSignals" | - |
41 | - | |
42 | }, | - |
43 | "QQmlConnections\0targetChanged\0\0" | - |
44 | "enabledChanged\0target\0enabled\0" | - |
45 | "ignoreUnknownSignals" | - |
46 | }; | - |
47 | #undef QT_MOC_LITERAL | - |
48 | - | |
49 | static const uint qt_meta_data_QQmlConnections[] = { | - |
50 | - | |
51 | // content: | - |
52 | 7, // revision | - |
53 | 0, // classname | - |
54 | 0, 0, // classinfo | - |
55 | 2, 14, // methods | - |
56 | 3, 28, // properties | - |
57 | 0, 0, // enums/sets | - |
58 | 0, 0, // constructors | - |
59 | 0, // flags | - |
60 | 2, // signalCount | - |
61 | - | |
62 | // signals: name, argc, parameters, tag, flags | - |
63 | 1, 0, 26, 2, 0x06 /* Public */, | - |
64 | 3, 0, 27, 2, 0x86 /* Public | MethodRevisioned */, | - |
65 | - | |
66 | // signals: revision | - |
67 | 0, | - |
68 | 1, | - |
69 | - | |
70 | // signals: parameters | - |
71 | QMetaType::Void, | - |
72 | QMetaType::Void, | - |
73 | - | |
74 | // properties: name, type, flags | - |
75 | 4, QMetaType::QObjectStar, 0x00495103, | - |
76 | 5, QMetaType::Bool, 0x00495103, | - |
77 | 6, QMetaType::Bool, 0x00095103, | - |
78 | - | |
79 | // properties: notify_signal_id | - |
80 | 0, | - |
81 | 1, | - |
82 | 0, | - |
83 | - | |
84 | 0 // eod | - |
85 | }; | - |
86 | - | |
87 | void QQmlConnections::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
88 | { | - |
89 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
90 | QQmlConnections *_t = static_cast<QQmlConnections *>(_o); | - |
91 | Q_UNUSED(_t) | - |
92 | switch (_id) { | - |
93 | case 0: _t->targetChanged(); break; | - |
94 | case 1: _t->enabledChanged(); break; | - |
95 | default: ; | - |
96 | } | - |
97 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
98 | int *result = reinterpret_cast<int *>(_a[0]); | - |
99 | { | - |
100 | using _t = void (QQmlConnections::*)(); | - |
101 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlConnections::targetChanged)) { | - |
102 | *result = 0; | - |
103 | return; | - |
104 | } | - |
105 | } | - |
106 | { | - |
107 | using _t = void (QQmlConnections::*)(); | - |
108 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlConnections::enabledChanged)) { | - |
109 | *result = 1; | - |
110 | return; | - |
111 | } | - |
112 | } | - |
113 | } | - |
114 | #ifndef QT_NO_PROPERTIES | - |
115 | else if (_c == QMetaObject::ReadProperty) { | - |
116 | QQmlConnections *_t = static_cast<QQmlConnections *>(_o); | - |
117 | Q_UNUSED(_t) | - |
118 | void *_v = _a[0]; | - |
119 | switch (_id) { | - |
120 | case 0: *reinterpret_cast< QObject**>(_v) = _t->target(); break; | - |
121 | case 1: *reinterpret_cast< bool*>(_v) = _t->isEnabled(); break; | - |
122 | case 2: *reinterpret_cast< bool*>(_v) = _t->ignoreUnknownSignals(); break; | - |
123 | default: break; | - |
124 | } | - |
125 | } else if (_c == QMetaObject::WriteProperty) { | - |
126 | QQmlConnections *_t = static_cast<QQmlConnections *>(_o); | - |
127 | Q_UNUSED(_t) | - |
128 | void *_v = _a[0]; | - |
129 | switch (_id) { | - |
130 | case 0: _t->setTarget(*reinterpret_cast< QObject**>(_v)); break; | - |
131 | case 1: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break; | - |
132 | case 2: _t->setIgnoreUnknownSignals(*reinterpret_cast< bool*>(_v)); break; | - |
133 | default: break; | - |
134 | } | - |
135 | } else if (_c == QMetaObject::ResetProperty) { | - |
136 | } | - |
137 | #endif // QT_NO_PROPERTIES | - |
138 | Q_UNUSED(_a); | - |
139 | } | - |
140 | - | |
141 | QT_INIT_METAOBJECT const QMetaObject QQmlConnections::staticMetaObject = { | - |
142 | { &QObject::staticMetaObject, qt_meta_stringdata_QQmlConnections.data, | - |
143 | qt_meta_data_QQmlConnections, qt_static_metacall, nullptr, nullptr} | - |
144 | }; | - |
145 | - | |
146 | - | |
147 | const QMetaObject *QQmlConnections::metaObject() const | - |
148 | { | - |
149 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
150 | } | - |
151 | - | |
152 | void *QQmlConnections::qt_metacast(const char *_clname) | - |
153 | { | - |
154 | if (!_clname) return nullptr; | - |
155 | if (!strcmp(_clname, qt_meta_stringdata_QQmlConnections.stringdata0)) | - |
156 | return static_cast<void*>(this); | - |
157 | if (!strcmp(_clname, "QQmlParserStatus")) | - |
158 | return static_cast< QQmlParserStatus*>(this); | - |
159 | if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus")) | - |
160 | return static_cast< QQmlParserStatus*>(this); | - |
161 | return QObject::qt_metacast(_clname); | - |
162 | } | - |
163 | - | |
164 | int QQmlConnections::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
165 | { | - |
166 | _id = QObject::qt_metacall(_c, _id, _a); | - |
167 | if (_id < 0) | - |
168 | return _id; | - |
169 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
170 | if (_id < 2) | - |
171 | qt_static_metacall(this, _c, _id, _a); | - |
172 | _id -= 2; | - |
173 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
174 | if (_id < 2) | - |
175 | *reinterpret_cast<int*>(_a[0]) = -1; | - |
176 | _id -= 2; | - |
177 | } | - |
178 | #ifndef QT_NO_PROPERTIES | - |
179 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - |
180 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - |
181 | qt_static_metacall(this, _c, _id, _a); | - |
182 | _id -= 3; | - |
183 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
184 | _id -= 3; | - |
185 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
186 | _id -= 3; | - |
187 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
188 | _id -= 3; | - |
189 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
190 | _id -= 3; | - |
191 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
192 | _id -= 3; | - |
193 | } | - |
194 | #endif // QT_NO_PROPERTIES | - |
195 | return _id; | - |
196 | } | - |
197 | - | |
198 | // SIGNAL 0 | - |
199 | void QQmlConnections::targetChanged() | - |
200 | { | - |
201 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); | - |
202 | } executed 128 times by 9 tests: end of block Executed by:
| 128 |
203 | - | |
204 | // SIGNAL 1 | - |
205 | void QQmlConnections::enabledChanged() | - |
206 | { | - |
207 | QMetaObject::activate(this, &staticMetaObject, 1, nullptr); | - |
208 | } executed 6 times by 1 test: end of block Executed by:
| 6 |
209 | QT_WARNING_POP | - |
210 | QT_END_MOC_NAMESPACE | - |
Source code | Switch to Preprocessed file |