OpenCoverage

moc_qquicksystempalette_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquicksystempalette_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquicksystempalette_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 "../util/qquicksystempalette_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquicksystempalette_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-
20QT_BEGIN_MOC_NAMESPACE-
21QT_WARNING_PUSH-
22QT_WARNING_DISABLE_DEPRECATED-
23struct qt_meta_stringdata_QQuickSystemPalette_t {-
24 QByteArrayData data[23];-
25 char stringdata0[232];-
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_QQuickSystemPalette_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickSystemPalette_t qt_meta_stringdata_QQuickSystemPalette = {-
33 {-
34QT_MOC_LITERAL(0, 0, 19), // "QQuickSystemPalette"-
35QT_MOC_LITERAL(1, 20, 14), // "paletteChanged"-
36QT_MOC_LITERAL(2, 35, 0), // ""-
37QT_MOC_LITERAL(3, 36, 10), // "colorGroup"-
38QT_MOC_LITERAL(4, 47, 31), // "QQuickSystemPalette::ColorGroup"-
39QT_MOC_LITERAL(5, 79, 6), // "window"-
40QT_MOC_LITERAL(6, 86, 10), // "windowText"-
41QT_MOC_LITERAL(7, 97, 4), // "base"-
42QT_MOC_LITERAL(8, 102, 4), // "text"-
43QT_MOC_LITERAL(9, 107, 13), // "alternateBase"-
44QT_MOC_LITERAL(10, 121, 6), // "button"-
45QT_MOC_LITERAL(11, 128, 10), // "buttonText"-
46QT_MOC_LITERAL(12, 139, 5), // "light"-
47QT_MOC_LITERAL(13, 145, 8), // "midlight"-
48QT_MOC_LITERAL(14, 154, 4), // "dark"-
49QT_MOC_LITERAL(15, 159, 3), // "mid"-
50QT_MOC_LITERAL(16, 163, 6), // "shadow"-
51QT_MOC_LITERAL(17, 170, 9), // "highlight"-
52QT_MOC_LITERAL(18, 180, 15), // "highlightedText"-
53QT_MOC_LITERAL(19, 196, 10), // "ColorGroup"-
54QT_MOC_LITERAL(20, 207, 6), // "Active"-
55QT_MOC_LITERAL(21, 214, 8), // "Inactive"-
56QT_MOC_LITERAL(22, 223, 8) // "Disabled"-
57-
58 },-
59 "QQuickSystemPalette\0paletteChanged\0\0"-
60 "colorGroup\0QQuickSystemPalette::ColorGroup\0"-
61 "window\0windowText\0base\0text\0alternateBase\0"-
62 "button\0buttonText\0light\0midlight\0dark\0"-
63 "mid\0shadow\0highlight\0highlightedText\0"-
64 "ColorGroup\0Active\0Inactive\0Disabled"-
65};-
66#undef QT_MOC_LITERAL-
67-
68static const uint qt_meta_data_QQuickSystemPalette[] = {-
69-
70 // content:-
71 7, // revision-
72 0, // classname-
73 0, 0, // classinfo-
74 1, 14, // methods-
75 15, 20, // properties-
76 1, 80, // enums/sets-
77 0, 0, // constructors-
78 0, // flags-
79 1, // signalCount-
80-
81 // signals: name, argc, parameters, tag, flags-
82 1, 0, 19, 2, 0x06 /* Public */,-
83-
84 // signals: parameters-
85 QMetaType::Void,-
86-
87 // properties: name, type, flags-
88 3, 0x80000000 | 4, 0x0049510b,-
89 5, QMetaType::QColor, 0x00495001,-
90 6, QMetaType::QColor, 0x00495001,-
91 7, QMetaType::QColor, 0x00495001,-
92 8, QMetaType::QColor, 0x00495001,-
93 9, QMetaType::QColor, 0x00495001,-
94 10, QMetaType::QColor, 0x00495001,-
95 11, QMetaType::QColor, 0x00495001,-
96 12, QMetaType::QColor, 0x00495001,-
97 13, QMetaType::QColor, 0x00495001,-
98 14, QMetaType::QColor, 0x00495001,-
99 15, QMetaType::QColor, 0x00495001,-
100 16, QMetaType::QColor, 0x00495001,-
101 17, QMetaType::QColor, 0x00495001,-
102 18, QMetaType::QColor, 0x00495001,-
103-
104 // properties: notify_signal_id-
105 0,-
106 0,-
107 0,-
108 0,-
109 0,-
110 0,-
111 0,-
112 0,-
113 0,-
114 0,-
115 0,-
116 0,-
117 0,-
118 0,-
119 0,-
120-
121 // enums: name, flags, count, data-
122 19, 0x0, 3, 84,-
123-
124 // enum data: key, value-
125 20, uint(QQuickSystemPalette::Active),-
126 21, uint(QQuickSystemPalette::Inactive),-
127 22, uint(QQuickSystemPalette::Disabled),-
128-
129 0 // eod-
130};-
131-
132void QQuickSystemPalette::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
133{-
134 if (_c == QMetaObject::InvokeMetaMethod) {-
135 QQuickSystemPalette *_t = static_cast<QQuickSystemPalette *>(_o);-
136 Q_UNUSED(_t)-
137 switch (_id) {-
138 case 0: _t->paletteChanged(); break;-
139 default: ;-
140 }-
141 } else if (_c == QMetaObject::IndexOfMethod) {-
142 int *result = reinterpret_cast<int *>(_a[0]);-
143 {-
144 using _t = void (QQuickSystemPalette::*)();-
145 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickSystemPalette::paletteChanged)) {-
146 *result = 0;-
147 return;-
148 }-
149 }-
150 }-
151#ifndef QT_NO_PROPERTIES-
152 else if (_c == QMetaObject::ReadProperty) {-
153 QQuickSystemPalette *_t = static_cast<QQuickSystemPalette *>(_o);-
154 Q_UNUSED(_t)-
155 void *_v = _a[0];-
156 switch (_id) {-
157 case 0: *reinterpret_cast< QQuickSystemPalette::ColorGroup*>(_v) = _t->colorGroup(); break;-
158 case 1: *reinterpret_cast< QColor*>(_v) = _t->window(); break;-
159 case 2: *reinterpret_cast< QColor*>(_v) = _t->windowText(); break;-
160 case 3: *reinterpret_cast< QColor*>(_v) = _t->base(); break;-
161 case 4: *reinterpret_cast< QColor*>(_v) = _t->text(); break;-
162 case 5: *reinterpret_cast< QColor*>(_v) = _t->alternateBase(); break;-
163 case 6: *reinterpret_cast< QColor*>(_v) = _t->button(); break;-
164 case 7: *reinterpret_cast< QColor*>(_v) = _t->buttonText(); break;-
165 case 8: *reinterpret_cast< QColor*>(_v) = _t->light(); break;-
166 case 9: *reinterpret_cast< QColor*>(_v) = _t->midlight(); break;-
167 case 10: *reinterpret_cast< QColor*>(_v) = _t->dark(); break;-
168 case 11: *reinterpret_cast< QColor*>(_v) = _t->mid(); break;-
169 case 12: *reinterpret_cast< QColor*>(_v) = _t->shadow(); break;-
170 case 13: *reinterpret_cast< QColor*>(_v) = _t->highlight(); break;-
171 case 14: *reinterpret_cast< QColor*>(_v) = _t->highlightedText(); break;-
172 default: break;-
173 }-
174 } else if (_c == QMetaObject::WriteProperty) {-
175 QQuickSystemPalette *_t = static_cast<QQuickSystemPalette *>(_o);-
176 Q_UNUSED(_t)-
177 void *_v = _a[0];-
178 switch (_id) {-
179 case 0: _t->setColorGroup(*reinterpret_cast< QQuickSystemPalette::ColorGroup*>(_v)); break;-
180 default: break;-
181 }-
182 } else if (_c == QMetaObject::ResetProperty) {-
183 }-
184#endif // QT_NO_PROPERTIES-
185 Q_UNUSED(_a);-
186}-
187-
188QT_INIT_METAOBJECT const QMetaObject QQuickSystemPalette::staticMetaObject = {-
189 { &QObject::staticMetaObject, qt_meta_stringdata_QQuickSystemPalette.data,-
190 qt_meta_data_QQuickSystemPalette, qt_static_metacall, nullptr, nullptr}-
191};-
192-
193-
194const QMetaObject *QQuickSystemPalette::metaObject() const-
195{-
196 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
197}-
198-
199void *QQuickSystemPalette::qt_metacast(const char *_clname)-
200{-
201 if (!_clname) return nullptr;-
202 if (!strcmp(_clname, qt_meta_stringdata_QQuickSystemPalette.stringdata0))-
203 return static_cast<void*>(this);-
204 return QObject::qt_metacast(_clname);-
205}-
206-
207int QQuickSystemPalette::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
208{-
209 _id = QObject::qt_metacall(_c, _id, _a);-
210 if (_id < 0)-
211 return _id;-
212 if (_c == QMetaObject::InvokeMetaMethod) {-
213 if (_id < 1)-
214 qt_static_metacall(this, _c, _id, _a);-
215 _id -= 1;-
216 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
217 if (_id < 1)-
218 *reinterpret_cast<int*>(_a[0]) = -1;-
219 _id -= 1;-
220 }-
221#ifndef QT_NO_PROPERTIES-
222 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
223 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
224 qt_static_metacall(this, _c, _id, _a);-
225 _id -= 15;-
226 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
227 _id -= 15;-
228 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
229 _id -= 15;-
230 } else if (_c == QMetaObject::QueryPropertyStored) {-
231 _id -= 15;-
232 } else if (_c == QMetaObject::QueryPropertyEditable) {-
233 _id -= 15;-
234 } else if (_c == QMetaObject::QueryPropertyUser) {-
235 _id -= 15;-
236 }-
237#endif // QT_NO_PROPERTIES-
238 return _id;-
239}-
240-
241// SIGNAL 0-
242void QQuickSystemPalette::paletteChanged()-
243{-
244 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
245}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicksystempalette
8
246QT_WARNING_POP-
247QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0