Coverage Report

Created: 2020-03-12 16:59

/work/qtbase/src/gui/.moc/moc_qclipboard.cpp
Line
Count
Source (jump to first uncovered line)
1
/****************************************************************************
2
** Meta object code from reading C++ file 'qclipboard.h'
3
**
4
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.0)
5
**
6
** WARNING! All changes made in this file will be lost!
7
*****************************************************************************/
8
9
#include <memory>
10
#include "../../../../../src/qt/qtbase/src/gui/kernel/qclipboard.h"
11
#include <QtCore/qbytearray.h>
12
#include <QtCore/qmetatype.h>
13
#if !defined(Q_MOC_OUTPUT_REVISION)
14
#error "The header file 'qclipboard.h' doesn't include <QObject>."
15
#elif Q_MOC_OUTPUT_REVISION != 67
16
#error "This file was generated using the moc from 5.15.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
21
QT_BEGIN_MOC_NAMESPACE
22
QT_WARNING_PUSH
23
QT_WARNING_DISABLE_DEPRECATED
24
struct qt_meta_stringdata_QClipboard_t {
25
    QByteArrayData data[8];
26
    char stringdata0[89];
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_QClipboard_t, stringdata0) + ofs \
31
        - idx * sizeof(QByteArrayData)) \
32
    )
33
static const qt_meta_stringdata_QClipboard_t qt_meta_stringdata_QClipboard = {
34
    {
35
QT_MOC_LITERAL(0, 0, 10), // "QClipboard"
36
QT_MOC_LITERAL(1, 11, 7), // "changed"
37
QT_MOC_LITERAL(2, 19, 0), // ""
38
QT_MOC_LITERAL(3, 20, 16), // "QClipboard::Mode"
39
QT_MOC_LITERAL(4, 37, 4), // "mode"
40
QT_MOC_LITERAL(5, 42, 16), // "selectionChanged"
41
QT_MOC_LITERAL(6, 59, 17), // "findBufferChanged"
42
QT_MOC_LITERAL(7, 77, 11) // "dataChanged"
43
44
    },
45
    "QClipboard\0changed\0\0QClipboard::Mode\0"
46
    "mode\0selectionChanged\0findBufferChanged\0"
47
    "dataChanged"
48
};
49
#undef QT_MOC_LITERAL
50
51
static const uint qt_meta_data_QClipboard[] = {
52
53
 // content:
54
       8,       // revision
55
       0,       // classname
56
       0,    0, // classinfo
57
       4,   14, // methods
58
       0,    0, // properties
59
       0,    0, // enums/sets
60
       0,    0, // constructors
61
       0,       // flags
62
       4,       // signalCount
63
64
 // signals: name, argc, parameters, tag, flags
65
       1,    1,   34,    2, 0x06 /* Public */,
66
       5,    0,   37,    2, 0x06 /* Public */,
67
       6,    0,   38,    2, 0x06 /* Public */,
68
       7,    0,   39,    2, 0x06 /* Public */,
69
70
 // signals: parameters
71
    QMetaType::Void, 0x80000000 | 3,    4,
72
    QMetaType::Void,
73
    QMetaType::Void,
74
    QMetaType::Void,
75
76
       0        // eod
77
};
78
79
void QClipboard::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
80
0
{
81
0
    if (_c == QMetaObject::InvokeMetaMethod) {
82
0
        auto *_t = static_cast<QClipboard *>(_o);
83
0
        Q_UNUSED(_t)
84
0
        switch (_id) {
85
0
        case 0: _t->changed((*reinterpret_cast< QClipboard::Mode(*)>(_a[1]))); break;
86
0
        case 1: _t->selectionChanged(); break;
87
0
        case 2: _t->findBufferChanged(); break;
88
0
        case 3: _t->dataChanged(); break;
89
0
        default: ;
90
0
        }
91
0
    } else if (_c == QMetaObject::IndexOfMethod) {
92
0
        int *result = reinterpret_cast<int *>(_a[0]);
93
0
        {
94
0
            using _t = void (QClipboard::*)(QClipboard::Mode );
95
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QClipboard::changed)) {
96
0
                *result = 0;
97
0
                return;
98
0
            }
99
0
        }
100
0
        {
101
0
            using _t = void (QClipboard::*)();
102
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QClipboard::selectionChanged)) {
103
0
                *result = 1;
104
0
                return;
105
0
            }
106
0
        }
107
0
        {
108
0
            using _t = void (QClipboard::*)();
109
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QClipboard::findBufferChanged)) {
110
0
                *result = 2;
111
0
                return;
112
0
            }
113
0
        }
114
0
        {
115
0
            using _t = void (QClipboard::*)();
116
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QClipboard::dataChanged)) {
117
0
                *result = 3;
118
0
                return;
119
0
            }
120
0
        }
121
0
    }
122
0
}
123
124
QT_INIT_METAOBJECT const QMetaObject QClipboard::staticMetaObject = { {
125
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
126
    qt_meta_stringdata_QClipboard.data,
127
    qt_meta_data_QClipboard,
128
    qt_static_metacall,
129
    nullptr,
130
    nullptr
131
} };
132
133
134
const QMetaObject *QClipboard::metaObject() const
135
0
{
136
0
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
137
0
}
138
139
void *QClipboard::qt_metacast(const char *_clname)
140
0
{
141
0
    if (!_clname) return nullptr;
142
0
    if (!strcmp(_clname, qt_meta_stringdata_QClipboard.stringdata0))
143
0
        return static_cast<void*>(this);
144
0
    return QObject::qt_metacast(_clname);
145
0
}
146
147
int QClipboard::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
148
0
{
149
0
    _id = QObject::qt_metacall(_c, _id, _a);
150
0
    if (_id < 0)
151
0
        return _id;
152
0
    if (_c == QMetaObject::InvokeMetaMethod) {
153
0
        if (_id < 4)
154
0
            qt_static_metacall(this, _c, _id, _a);
155
0
        _id -= 4;
156
0
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
157
0
        if (_id < 4)
158
0
            *reinterpret_cast<int*>(_a[0]) = -1;
159
0
        _id -= 4;
160
0
    }
161
0
    return _id;
162
0
}
163
164
// SIGNAL 0
165
void QClipboard::changed(QClipboard::Mode _t1)
166
0
{
167
0
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
168
0
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
169
0
}
170
171
// SIGNAL 1
172
void QClipboard::selectionChanged()
173
0
{
174
0
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
175
0
}
176
177
// SIGNAL 2
178
void QClipboard::findBufferChanged()
179
0
{
180
0
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
181
0
}
182
183
// SIGNAL 3
184
void QClipboard::dataChanged()
185
0
{
186
0
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
187
0
}
188
QT_WARNING_POP
189
QT_END_MOC_NAMESPACE