Coverage Report

Created: 2025-07-23 08:13

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