Coverage Report

Created: 2020-03-12 16:59

/work/qtbase/src/gui/.moc/moc_qdrag.cpp
Line
Count
Source (jump to first uncovered line)
1
/****************************************************************************
2
** Meta object code from reading C++ file 'qdrag.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/qdrag.h"
11
#include <QtCore/qbytearray.h>
12
#include <QtCore/qmetatype.h>
13
#if !defined(Q_MOC_OUTPUT_REVISION)
14
#error "The header file 'qdrag.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_QDrag_t {
25
    QByteArrayData data[7];
26
    char stringdata0[67];
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_QDrag_t, stringdata0) + ofs \
31
        - idx * sizeof(QByteArrayData)) \
32
    )
33
static const qt_meta_stringdata_QDrag_t qt_meta_stringdata_QDrag = {
34
    {
35
QT_MOC_LITERAL(0, 0, 5), // "QDrag"
36
QT_MOC_LITERAL(1, 6, 13), // "actionChanged"
37
QT_MOC_LITERAL(2, 20, 0), // ""
38
QT_MOC_LITERAL(3, 21, 14), // "Qt::DropAction"
39
QT_MOC_LITERAL(4, 36, 6), // "action"
40
QT_MOC_LITERAL(5, 43, 13), // "targetChanged"
41
QT_MOC_LITERAL(6, 57, 9) // "newTarget"
42
43
    },
44
    "QDrag\0actionChanged\0\0Qt::DropAction\0"
45
    "action\0targetChanged\0newTarget"
46
};
47
#undef QT_MOC_LITERAL
48
49
static const uint qt_meta_data_QDrag[] = {
50
51
 // content:
52
       8,       // revision
53
       0,       // classname
54
       0,    0, // classinfo
55
       2,   14, // methods
56
       0,    0, // 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,    1,   24,    2, 0x06 /* Public */,
64
       5,    1,   27,    2, 0x06 /* Public */,
65
66
 // signals: parameters
67
    QMetaType::Void, 0x80000000 | 3,    4,
68
    QMetaType::Void, QMetaType::QObjectStar,    6,
69
70
       0        // eod
71
};
72
73
void QDrag::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
74
0
{
75
0
    if (_c == QMetaObject::InvokeMetaMethod) {
76
0
        auto *_t = static_cast<QDrag *>(_o);
77
0
        Q_UNUSED(_t)
78
0
        switch (_id) {
79
0
        case 0: _t->actionChanged((*reinterpret_cast< Qt::DropAction(*)>(_a[1]))); break;
80
0
        case 1: _t->targetChanged((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
81
0
        default: ;
82
0
        }
83
0
    } else if (_c == QMetaObject::IndexOfMethod) {
84
0
        int *result = reinterpret_cast<int *>(_a[0]);
85
0
        {
86
0
            using _t = void (QDrag::*)(Qt::DropAction );
87
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDrag::actionChanged)) {
88
0
                *result = 0;
89
0
                return;
90
0
            }
91
0
        }
92
0
        {
93
0
            using _t = void (QDrag::*)(QObject * );
94
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDrag::targetChanged)) {
95
0
                *result = 1;
96
0
                return;
97
0
            }
98
0
        }
99
0
    }
100
0
}
101
102
QT_INIT_METAOBJECT const QMetaObject QDrag::staticMetaObject = { {
103
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
104
    qt_meta_stringdata_QDrag.data,
105
    qt_meta_data_QDrag,
106
    qt_static_metacall,
107
    nullptr,
108
    nullptr
109
} };
110
111
112
const QMetaObject *QDrag::metaObject() const
113
0
{
114
0
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
115
0
}
116
117
void *QDrag::qt_metacast(const char *_clname)
118
0
{
119
0
    if (!_clname) return nullptr;
120
0
    if (!strcmp(_clname, qt_meta_stringdata_QDrag.stringdata0))
121
0
        return static_cast<void*>(this);
122
0
    return QObject::qt_metacast(_clname);
123
0
}
124
125
int QDrag::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
126
0
{
127
0
    _id = QObject::qt_metacall(_c, _id, _a);
128
0
    if (_id < 0)
129
0
        return _id;
130
0
    if (_c == QMetaObject::InvokeMetaMethod) {
131
0
        if (_id < 2)
132
0
            qt_static_metacall(this, _c, _id, _a);
133
0
        _id -= 2;
134
0
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
135
0
        if (_id < 2)
136
0
            *reinterpret_cast<int*>(_a[0]) = -1;
137
0
        _id -= 2;
138
0
    }
139
0
    return _id;
140
0
}
141
142
// SIGNAL 0
143
void QDrag::actionChanged(Qt::DropAction _t1)
144
0
{
145
0
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
146
0
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
147
0
}
148
149
// SIGNAL 1
150
void QDrag::targetChanged(QObject * _t1)
151
0
{
152
0
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
153
0
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
154
0
}
155
QT_WARNING_POP
156
QT_END_MOC_NAMESPACE