1/****************************************************************************
2** Meta object code from reading C++ file 'qguiapplication.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "kernel/qguiapplication.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qguiapplication.h' doesn't include <QObject>."
15#elif Q_MOC_OUTPUT_REVISION != 68
16#error "This file was generated using the moc from 6.0.0. It"
17#error "cannot be used with the include files from this version of Qt."
18#error "(The moc has changed too much.)"
19#endif
20
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QGuiApplication_t {
25 const uint offsetsAndSize[76];
26 char stringdata0[569];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QGuiApplication_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QGuiApplication_t qt_meta_stringdata_QGuiApplication = {
31 {
32QT_MOC_LITERAL(0, 15), // "QGuiApplication"
33QT_MOC_LITERAL(16, 19), // "fontDatabaseChanged"
34QT_MOC_LITERAL(36, 0), // ""
35QT_MOC_LITERAL(37, 11), // "screenAdded"
36QT_MOC_LITERAL(49, 8), // "QScreen*"
37QT_MOC_LITERAL(58, 6), // "screen"
38QT_MOC_LITERAL(65, 13), // "screenRemoved"
39QT_MOC_LITERAL(79, 20), // "primaryScreenChanged"
40QT_MOC_LITERAL(100, 16), // "lastWindowClosed"
41QT_MOC_LITERAL(117, 18), // "focusObjectChanged"
42QT_MOC_LITERAL(136, 11), // "focusObject"
43QT_MOC_LITERAL(148, 18), // "focusWindowChanged"
44QT_MOC_LITERAL(167, 8), // "QWindow*"
45QT_MOC_LITERAL(176, 11), // "focusWindow"
46QT_MOC_LITERAL(188, 23), // "applicationStateChanged"
47QT_MOC_LITERAL(212, 20), // "Qt::ApplicationState"
48QT_MOC_LITERAL(233, 5), // "state"
49QT_MOC_LITERAL(239, 22), // "layoutDirectionChanged"
50QT_MOC_LITERAL(262, 19), // "Qt::LayoutDirection"
51QT_MOC_LITERAL(282, 9), // "direction"
52QT_MOC_LITERAL(292, 17), // "commitDataRequest"
53QT_MOC_LITERAL(310, 16), // "QSessionManager&"
54QT_MOC_LITERAL(327, 14), // "sessionManager"
55QT_MOC_LITERAL(342, 16), // "saveStateRequest"
56QT_MOC_LITERAL(359, 29), // "applicationDisplayNameChanged"
57QT_MOC_LITERAL(389, 14), // "paletteChanged"
58QT_MOC_LITERAL(404, 3), // "pal"
59QT_MOC_LITERAL(408, 11), // "fontChanged"
60QT_MOC_LITERAL(420, 4), // "font"
61QT_MOC_LITERAL(425, 20), // "_q_updateFocusObject"
62QT_MOC_LITERAL(446, 6), // "object"
63QT_MOC_LITERAL(453, 10), // "windowIcon"
64QT_MOC_LITERAL(464, 22), // "applicationDisplayName"
65QT_MOC_LITERAL(487, 15), // "desktopFileName"
66QT_MOC_LITERAL(503, 15), // "layoutDirection"
67QT_MOC_LITERAL(519, 12), // "platformName"
68QT_MOC_LITERAL(532, 22), // "quitOnLastWindowClosed"
69QT_MOC_LITERAL(555, 13) // "primaryScreen"
70
71 },
72 "QGuiApplication\0fontDatabaseChanged\0"
73 "\0screenAdded\0QScreen*\0screen\0screenRemoved\0"
74 "primaryScreenChanged\0lastWindowClosed\0"
75 "focusObjectChanged\0focusObject\0"
76 "focusWindowChanged\0QWindow*\0focusWindow\0"
77 "applicationStateChanged\0Qt::ApplicationState\0"
78 "state\0layoutDirectionChanged\0"
79 "Qt::LayoutDirection\0direction\0"
80 "commitDataRequest\0QSessionManager&\0"
81 "sessionManager\0saveStateRequest\0"
82 "applicationDisplayNameChanged\0"
83 "paletteChanged\0pal\0fontChanged\0font\0"
84 "_q_updateFocusObject\0object\0windowIcon\0"
85 "applicationDisplayName\0desktopFileName\0"
86 "layoutDirection\0platformName\0"
87 "quitOnLastWindowClosed\0primaryScreen"
88};
89#undef QT_MOC_LITERAL
90
91static const uint qt_meta_data_QGuiApplication[] = {
92
93 // content:
94 9, // revision
95 0, // classname
96 0, 0, // classinfo
97 15, 14, // methods
98 7, 143, // properties
99 0, 0, // enums/sets
100 0, 0, // constructors
101 0, // flags
102 14, // signalCount
103
104 // signals: name, argc, parameters, tag, flags, initial metatype offsets
105 1, 0, 104, 2, 0x06, 7 /* Public */,
106 3, 1, 105, 2, 0x06, 8 /* Public */,
107 6, 1, 108, 2, 0x06, 10 /* Public */,
108 7, 1, 111, 2, 0x06, 12 /* Public */,
109 8, 0, 114, 2, 0x06, 14 /* Public */,
110 9, 1, 115, 2, 0x06, 15 /* Public */,
111 11, 1, 118, 2, 0x06, 17 /* Public */,
112 14, 1, 121, 2, 0x06, 19 /* Public */,
113 17, 1, 124, 2, 0x06, 21 /* Public */,
114 20, 1, 127, 2, 0x06, 23 /* Public */,
115 23, 1, 130, 2, 0x06, 25 /* Public */,
116 24, 0, 133, 2, 0x06, 27 /* Public */,
117 25, 1, 134, 2, 0x06, 28 /* Public */,
118 27, 1, 137, 2, 0x06, 30 /* Public */,
119
120 // slots: name, argc, parameters, tag, flags, initial metatype offsets
121 29, 1, 140, 2, 0x08, 32 /* Private */,
122
123 // signals: parameters
124 QMetaType::Void,
125 QMetaType::Void, 0x80000000 | 4, 5,
126 QMetaType::Void, 0x80000000 | 4, 5,
127 QMetaType::Void, 0x80000000 | 4, 5,
128 QMetaType::Void,
129 QMetaType::Void, QMetaType::QObjectStar, 10,
130 QMetaType::Void, 0x80000000 | 12, 13,
131 QMetaType::Void, 0x80000000 | 15, 16,
132 QMetaType::Void, 0x80000000 | 18, 19,
133 QMetaType::Void, 0x80000000 | 21, 22,
134 QMetaType::Void, 0x80000000 | 21, 22,
135 QMetaType::Void,
136 QMetaType::Void, QMetaType::QPalette, 26,
137 QMetaType::Void, QMetaType::QFont, 28,
138
139 // slots: parameters
140 QMetaType::Void, QMetaType::QObjectStar, 30,
141
142 // properties: name, type, flags
143 31, QMetaType::QIcon, 0x00015103, uint(-1), 0,
144 32, QMetaType::QString, 0x00015103, uint(11), 0,
145 33, QMetaType::QString, 0x00015103, uint(-1), 0,
146 34, 0x80000000 | 18, 0x0001510b, uint(8), 0,
147 35, QMetaType::QString, 0x00005001, uint(-1), 0,
148 36, QMetaType::Bool, 0x00015103, uint(-1), 0,
149 37, 0x80000000 | 4, 0x00005009, uint(3), 0,
150
151 0 // eod
152};
153
154void QGuiApplication::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
155{
156 if (_c == QMetaObject::InvokeMetaMethod) {
157 Q_ASSERT(staticMetaObject.cast(_o));
158 auto *_t = static_cast<QGuiApplication *>(_o);
159 Q_UNUSED(_t)
160 switch (_id) {
161 case 0: _t->fontDatabaseChanged(); break;
162 case 1: _t->screenAdded((*reinterpret_cast< QScreen*(*)>(_a[1]))); break;
163 case 2: _t->screenRemoved((*reinterpret_cast< QScreen*(*)>(_a[1]))); break;
164 case 3: _t->primaryScreenChanged((*reinterpret_cast< QScreen*(*)>(_a[1]))); break;
165 case 4: _t->lastWindowClosed(); break;
166 case 5: _t->focusObjectChanged((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
167 case 6: _t->focusWindowChanged((*reinterpret_cast< QWindow*(*)>(_a[1]))); break;
168 case 7: _t->applicationStateChanged((*reinterpret_cast< Qt::ApplicationState(*)>(_a[1]))); break;
169 case 8: _t->layoutDirectionChanged((*reinterpret_cast< Qt::LayoutDirection(*)>(_a[1]))); break;
170 case 9: _t->commitDataRequest((*reinterpret_cast< QSessionManager(*)>(_a[1]))); break;
171 case 10: _t->saveStateRequest((*reinterpret_cast< QSessionManager(*)>(_a[1]))); break;
172 case 11: _t->applicationDisplayNameChanged(); break;
173 case 12: _t->paletteChanged((*reinterpret_cast< const QPalette(*)>(_a[1]))); break;
174 case 13: _t->fontChanged((*reinterpret_cast< const QFont(*)>(_a[1]))); break;
175 case 14: _t->d_func()->_q_updateFocusObject((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
176 default: ;
177 }
178 } else if (_c == QMetaObject::IndexOfMethod) {
179 int *result = reinterpret_cast<int *>(_a[0]);
180 {
181 using _t = void (QGuiApplication::*)();
182 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::fontDatabaseChanged)) {
183 *result = 0;
184 return;
185 }
186 }
187 {
188 using _t = void (QGuiApplication::*)(QScreen * );
189 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::screenAdded)) {
190 *result = 1;
191 return;
192 }
193 }
194 {
195 using _t = void (QGuiApplication::*)(QScreen * );
196 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::screenRemoved)) {
197 *result = 2;
198 return;
199 }
200 }
201 {
202 using _t = void (QGuiApplication::*)(QScreen * );
203 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::primaryScreenChanged)) {
204 *result = 3;
205 return;
206 }
207 }
208 {
209 using _t = void (QGuiApplication::*)();
210 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::lastWindowClosed)) {
211 *result = 4;
212 return;
213 }
214 }
215 {
216 using _t = void (QGuiApplication::*)(QObject * );
217 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::focusObjectChanged)) {
218 *result = 5;
219 return;
220 }
221 }
222 {
223 using _t = void (QGuiApplication::*)(QWindow * );
224 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::focusWindowChanged)) {
225 *result = 6;
226 return;
227 }
228 }
229 {
230 using _t = void (QGuiApplication::*)(Qt::ApplicationState );
231 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::applicationStateChanged)) {
232 *result = 7;
233 return;
234 }
235 }
236 {
237 using _t = void (QGuiApplication::*)(Qt::LayoutDirection );
238 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::layoutDirectionChanged)) {
239 *result = 8;
240 return;
241 }
242 }
243 {
244 using _t = void (QGuiApplication::*)(QSessionManager & );
245 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::commitDataRequest)) {
246 *result = 9;
247 return;
248 }
249 }
250 {
251 using _t = void (QGuiApplication::*)(QSessionManager & );
252 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::saveStateRequest)) {
253 *result = 10;
254 return;
255 }
256 }
257 {
258 using _t = void (QGuiApplication::*)();
259 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::applicationDisplayNameChanged)) {
260 *result = 11;
261 return;
262 }
263 }
264 {
265 using _t = void (QGuiApplication::*)(const QPalette & );
266 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::paletteChanged)) {
267 *result = 12;
268 return;
269 }
270 }
271 {
272 using _t = void (QGuiApplication::*)(const QFont & );
273 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGuiApplication::fontChanged)) {
274 *result = 13;
275 return;
276 }
277 }
278 }
279#ifndef QT_NO_PROPERTIES
280 else if (_c == QMetaObject::ReadProperty) {
281 Q_ASSERT(staticMetaObject.cast(_o));
282 auto *_t = static_cast<QGuiApplication *>(_o);
283 Q_UNUSED(_t)
284 void *_v = _a[0];
285 switch (_id) {
286 case 0: *reinterpret_cast< QIcon*>(_v) = _t->windowIcon(); break;
287 case 1: *reinterpret_cast< QString*>(_v) = _t->applicationDisplayName(); break;
288 case 2: *reinterpret_cast< QString*>(_v) = _t->desktopFileName(); break;
289 case 3: *reinterpret_cast< Qt::LayoutDirection*>(_v) = _t->layoutDirection(); break;
290 case 4: *reinterpret_cast< QString*>(_v) = _t->platformName(); break;
291 case 5: *reinterpret_cast< bool*>(_v) = _t->quitOnLastWindowClosed(); break;
292 case 6: *reinterpret_cast< QScreen**>(_v) = _t->primaryScreen(); break;
293 default: break;
294 }
295 } else if (_c == QMetaObject::WriteProperty) {
296 Q_ASSERT(staticMetaObject.cast(_o));
297 auto *_t = static_cast<QGuiApplication *>(_o);
298 Q_UNUSED(_t)
299 void *_v = _a[0];
300 switch (_id) {
301 case 0: _t->setWindowIcon(*reinterpret_cast< QIcon*>(_v)); break;
302 case 1: _t->setApplicationDisplayName(*reinterpret_cast< QString*>(_v)); break;
303 case 2: _t->setDesktopFileName(*reinterpret_cast< QString*>(_v)); break;
304 case 3: _t->setLayoutDirection(*reinterpret_cast< Qt::LayoutDirection*>(_v)); break;
305 case 5: _t->setQuitOnLastWindowClosed(*reinterpret_cast< bool*>(_v)); break;
306 default: break;
307 }
308 } else if (_c == QMetaObject::ResetProperty) {
309 } else if (_c == QMetaObject::BindableProperty) {
310 }
311#endif // QT_NO_PROPERTIES
312}
313
314const QMetaObject QGuiApplication::staticMetaObject = { {
315 QMetaObject::SuperData::link<QCoreApplication::staticMetaObject>(),
316 qt_meta_stringdata_QGuiApplication.offsetsAndSize,
317 qt_meta_data_QGuiApplication,
318 qt_static_metacall,
319 nullptr,
320qt_incomplete_metaTypeArray<qt_meta_stringdata_QGuiApplication_t
321, QtPrivate::TypeAndForceComplete<QIcon, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::LayoutDirection, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QScreen*, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QScreen *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QScreen *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QScreen *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QObject *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QWindow *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::ApplicationState, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::LayoutDirection, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QSessionManager &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QSessionManager &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QPalette &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QFont &, std::false_type>
322, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QObject *, std::false_type>
323
324
325>,
326 nullptr
327} };
328
329
330const QMetaObject *QGuiApplication::metaObject() const
331{
332 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
333}
334
335void *QGuiApplication::qt_metacast(const char *_clname)
336{
337 if (!_clname) return nullptr;
338 if (!strcmp(_clname, qt_meta_stringdata_QGuiApplication.stringdata0))
339 return static_cast<void*>(this);
340 return QCoreApplication::qt_metacast(_clname);
341}
342
343int QGuiApplication::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
344{
345 _id = QCoreApplication::qt_metacall(_c, _id, _a);
346 if (_id < 0)
347 return _id;
348 if (_c == QMetaObject::InvokeMetaMethod) {
349 if (_id < 15)
350 qt_static_metacall(this, _c, _id, _a);
351 _id -= 15;
352 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
353 if (_id < 15)
354 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
355 _id -= 15;
356 }
357#ifndef QT_NO_PROPERTIES
358 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
359 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
360 || _c == QMetaObject::RegisterPropertyMetaType) {
361 qt_static_metacall(this, _c, _id, _a);
362 _id -= 7;
363 }
364#endif // QT_NO_PROPERTIES
365 return _id;
366}
367
368// SIGNAL 0
369void QGuiApplication::fontDatabaseChanged()
370{
371 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
372}
373
374// SIGNAL 1
375void QGuiApplication::screenAdded(QScreen * _t1)
376{
377 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
378 QMetaObject::activate(this, &staticMetaObject, 1, _a);
379}
380
381// SIGNAL 2
382void QGuiApplication::screenRemoved(QScreen * _t1)
383{
384 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
385 QMetaObject::activate(this, &staticMetaObject, 2, _a);
386}
387
388// SIGNAL 3
389void QGuiApplication::primaryScreenChanged(QScreen * _t1)
390{
391 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
392 QMetaObject::activate(this, &staticMetaObject, 3, _a);
393}
394
395// SIGNAL 4
396void QGuiApplication::lastWindowClosed()
397{
398 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
399}
400
401// SIGNAL 5
402void QGuiApplication::focusObjectChanged(QObject * _t1)
403{
404 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
405 QMetaObject::activate(this, &staticMetaObject, 5, _a);
406}
407
408// SIGNAL 6
409void QGuiApplication::focusWindowChanged(QWindow * _t1)
410{
411 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
412 QMetaObject::activate(this, &staticMetaObject, 6, _a);
413}
414
415// SIGNAL 7
416void QGuiApplication::applicationStateChanged(Qt::ApplicationState _t1)
417{
418 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
419 QMetaObject::activate(this, &staticMetaObject, 7, _a);
420}
421
422// SIGNAL 8
423void QGuiApplication::layoutDirectionChanged(Qt::LayoutDirection _t1)
424{
425 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
426 QMetaObject::activate(this, &staticMetaObject, 8, _a);
427}
428
429// SIGNAL 9
430void QGuiApplication::commitDataRequest(QSessionManager & _t1)
431{
432 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
433 QMetaObject::activate(this, &staticMetaObject, 9, _a);
434}
435
436// SIGNAL 10
437void QGuiApplication::saveStateRequest(QSessionManager & _t1)
438{
439 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
440 QMetaObject::activate(this, &staticMetaObject, 10, _a);
441}
442
443// SIGNAL 11
444void QGuiApplication::applicationDisplayNameChanged()
445{
446 QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
447}
448
449// SIGNAL 12
450void QGuiApplication::paletteChanged(const QPalette & _t1)
451{
452 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
453 QMetaObject::activate(this, &staticMetaObject, 12, _a);
454}
455
456// SIGNAL 13
457void QGuiApplication::fontChanged(const QFont & _t1)
458{
459 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
460 QMetaObject::activate(this, &staticMetaObject, 13, _a);
461}
462QT_WARNING_POP
463QT_END_MOC_NAMESPACE
464