Coverage Report

Created: 2020-03-12 16:59

/work/qtbase/src/gui/.moc/moc_qinputmethod.cpp
Line
Count
Source (jump to first uncovered line)
1
/****************************************************************************
2
** Meta object code from reading C++ file 'qinputmethod.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/qinputmethod.h"
11
#include <QtCore/qbytearray.h>
12
#include <QtCore/qmetatype.h>
13
#if !defined(Q_MOC_OUTPUT_REVISION)
14
#error "The header file 'qinputmethod.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_QInputMethod_t {
25
    QByteArrayData data[33];
26
    char stringdata0[445];
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_QInputMethod_t, stringdata0) + ofs \
31
        - idx * sizeof(QByteArrayData)) \
32
    )
33
static const qt_meta_stringdata_QInputMethod_t qt_meta_stringdata_QInputMethod = {
34
    {
35
QT_MOC_LITERAL(0, 0, 12), // "QInputMethod"
36
QT_MOC_LITERAL(1, 13, 22), // "cursorRectangleChanged"
37
QT_MOC_LITERAL(2, 36, 0), // ""
38
QT_MOC_LITERAL(3, 37, 22), // "anchorRectangleChanged"
39
QT_MOC_LITERAL(4, 60, 24), // "keyboardRectangleChanged"
40
QT_MOC_LITERAL(5, 85, 29), // "inputItemClipRectangleChanged"
41
QT_MOC_LITERAL(6, 115, 14), // "visibleChanged"
42
QT_MOC_LITERAL(7, 130, 16), // "animatingChanged"
43
QT_MOC_LITERAL(8, 147, 13), // "localeChanged"
44
QT_MOC_LITERAL(9, 161, 21), // "inputDirectionChanged"
45
QT_MOC_LITERAL(10, 183, 19), // "Qt::LayoutDirection"
46
QT_MOC_LITERAL(11, 203, 12), // "newDirection"
47
QT_MOC_LITERAL(12, 216, 4), // "show"
48
QT_MOC_LITERAL(13, 221, 4), // "hide"
49
QT_MOC_LITERAL(14, 226, 6), // "update"
50
QT_MOC_LITERAL(15, 233, 22), // "Qt::InputMethodQueries"
51
QT_MOC_LITERAL(16, 256, 7), // "queries"
52
QT_MOC_LITERAL(17, 264, 5), // "reset"
53
QT_MOC_LITERAL(18, 270, 6), // "commit"
54
QT_MOC_LITERAL(19, 277, 12), // "invokeAction"
55
QT_MOC_LITERAL(20, 290, 6), // "Action"
56
QT_MOC_LITERAL(21, 297, 1), // "a"
57
QT_MOC_LITERAL(22, 299, 14), // "cursorPosition"
58
QT_MOC_LITERAL(23, 314, 15), // "cursorRectangle"
59
QT_MOC_LITERAL(24, 330, 15), // "anchorRectangle"
60
QT_MOC_LITERAL(25, 346, 17), // "keyboardRectangle"
61
QT_MOC_LITERAL(26, 364, 22), // "inputItemClipRectangle"
62
QT_MOC_LITERAL(27, 387, 7), // "visible"
63
QT_MOC_LITERAL(28, 395, 9), // "animating"
64
QT_MOC_LITERAL(29, 405, 6), // "locale"
65
QT_MOC_LITERAL(30, 412, 14), // "inputDirection"
66
QT_MOC_LITERAL(31, 427, 5), // "Click"
67
QT_MOC_LITERAL(32, 433, 11) // "ContextMenu"
68
69
    },
70
    "QInputMethod\0cursorRectangleChanged\0"
71
    "\0anchorRectangleChanged\0"
72
    "keyboardRectangleChanged\0"
73
    "inputItemClipRectangleChanged\0"
74
    "visibleChanged\0animatingChanged\0"
75
    "localeChanged\0inputDirectionChanged\0"
76
    "Qt::LayoutDirection\0newDirection\0show\0"
77
    "hide\0update\0Qt::InputMethodQueries\0"
78
    "queries\0reset\0commit\0invokeAction\0"
79
    "Action\0a\0cursorPosition\0cursorRectangle\0"
80
    "anchorRectangle\0keyboardRectangle\0"
81
    "inputItemClipRectangle\0visible\0animating\0"
82
    "locale\0inputDirection\0Click\0ContextMenu"
83
};
84
#undef QT_MOC_LITERAL
85
86
static const uint qt_meta_data_QInputMethod[] = {
87
88
 // content:
89
       8,       // revision
90
       0,       // classname
91
       0,    0, // classinfo
92
      14,   14, // methods
93
       8,  106, // properties
94
       1,  138, // enums/sets
95
       0,    0, // constructors
96
       0,       // flags
97
       8,       // signalCount
98
99
 // signals: name, argc, parameters, tag, flags
100
       1,    0,   84,    2, 0x06 /* Public */,
101
       3,    0,   85,    2, 0x06 /* Public */,
102
       4,    0,   86,    2, 0x06 /* Public */,
103
       5,    0,   87,    2, 0x06 /* Public */,
104
       6,    0,   88,    2, 0x06 /* Public */,
105
       7,    0,   89,    2, 0x06 /* Public */,
106
       8,    0,   90,    2, 0x06 /* Public */,
107
       9,    1,   91,    2, 0x06 /* Public */,
108
109
 // slots: name, argc, parameters, tag, flags
110
      12,    0,   94,    2, 0x0a /* Public */,
111
      13,    0,   95,    2, 0x0a /* Public */,
112
      14,    1,   96,    2, 0x0a /* Public */,
113
      17,    0,   99,    2, 0x0a /* Public */,
114
      18,    0,  100,    2, 0x0a /* Public */,
115
      19,    2,  101,    2, 0x0a /* Public */,
116
117
 // signals: parameters
118
    QMetaType::Void,
119
    QMetaType::Void,
120
    QMetaType::Void,
121
    QMetaType::Void,
122
    QMetaType::Void,
123
    QMetaType::Void,
124
    QMetaType::Void,
125
    QMetaType::Void, 0x80000000 | 10,   11,
126
127
 // slots: parameters
128
    QMetaType::Void,
129
    QMetaType::Void,
130
    QMetaType::Void, 0x80000000 | 15,   16,
131
    QMetaType::Void,
132
    QMetaType::Void,
133
    QMetaType::Void, 0x80000000 | 20, QMetaType::Int,   21,   22,
134
135
 // properties: name, type, flags
136
      23, QMetaType::QRectF, 0x00495001,
137
      24, QMetaType::QRectF, 0x00495001,
138
      25, QMetaType::QRectF, 0x00495001,
139
      26, QMetaType::QRectF, 0x00495001,
140
      27, QMetaType::Bool, 0x00495001,
141
      28, QMetaType::Bool, 0x00495001,
142
      29, QMetaType::QLocale, 0x00495001,
143
      30, 0x80000000 | 10, 0x00495009,
144
145
 // properties: notify_signal_id
146
       0,
147
       1,
148
       2,
149
       3,
150
       4,
151
       5,
152
       6,
153
       7,
154
155
 // enums: name, alias, flags, count, data
156
      20,   20, 0x0,    2,  143,
157
158
 // enum data: key, value
159
      31, uint(QInputMethod::Click),
160
      32, uint(QInputMethod::ContextMenu),
161
162
       0        // eod
163
};
164
165
void QInputMethod::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
166
0
{
167
0
    if (_c == QMetaObject::InvokeMetaMethod) {
168
0
        auto *_t = static_cast<QInputMethod *>(_o);
169
0
        Q_UNUSED(_t)
170
0
        switch (_id) {
171
0
        case 0: _t->cursorRectangleChanged(); break;
172
0
        case 1: _t->anchorRectangleChanged(); break;
173
0
        case 2: _t->keyboardRectangleChanged(); break;
174
0
        case 3: _t->inputItemClipRectangleChanged(); break;
175
0
        case 4: _t->visibleChanged(); break;
176
0
        case 5: _t->animatingChanged(); break;
177
0
        case 6: _t->localeChanged(); break;
178
0
        case 7: _t->inputDirectionChanged((*reinterpret_cast< Qt::LayoutDirection(*)>(_a[1]))); break;
179
0
        case 8: _t->show(); break;
180
0
        case 9: _t->hide(); break;
181
0
        case 10: _t->update((*reinterpret_cast< Qt::InputMethodQueries(*)>(_a[1]))); break;
182
0
        case 11: _t->reset(); break;
183
0
        case 12: _t->commit(); break;
184
0
        case 13: _t->invokeAction((*reinterpret_cast< Action(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
185
0
        default: ;
186
0
        }
187
0
    } else if (_c == QMetaObject::IndexOfMethod) {
188
0
        int *result = reinterpret_cast<int *>(_a[0]);
189
0
        {
190
0
            using _t = void (QInputMethod::*)();
191
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QInputMethod::cursorRectangleChanged)) {
192
0
                *result = 0;
193
0
                return;
194
0
            }
195
0
        }
196
0
        {
197
0
            using _t = void (QInputMethod::*)();
198
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QInputMethod::anchorRectangleChanged)) {
199
0
                *result = 1;
200
0
                return;
201
0
            }
202
0
        }
203
0
        {
204
0
            using _t = void (QInputMethod::*)();
205
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QInputMethod::keyboardRectangleChanged)) {
206
0
                *result = 2;
207
0
                return;
208
0
            }
209
0
        }
210
0
        {
211
0
            using _t = void (QInputMethod::*)();
212
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QInputMethod::inputItemClipRectangleChanged)) {
213
0
                *result = 3;
214
0
                return;
215
0
            }
216
0
        }
217
0
        {
218
0
            using _t = void (QInputMethod::*)();
219
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QInputMethod::visibleChanged)) {
220
0
                *result = 4;
221
0
                return;
222
0
            }
223
0
        }
224
0
        {
225
0
            using _t = void (QInputMethod::*)();
226
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QInputMethod::animatingChanged)) {
227
0
                *result = 5;
228
0
                return;
229
0
            }
230
0
        }
231
0
        {
232
0
            using _t = void (QInputMethod::*)();
233
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QInputMethod::localeChanged)) {
234
0
                *result = 6;
235
0
                return;
236
0
            }
237
0
        }
238
0
        {
239
0
            using _t = void (QInputMethod::*)(Qt::LayoutDirection );
240
0
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QInputMethod::inputDirectionChanged)) {
241
0
                *result = 7;
242
0
                return;
243
0
            }
244
0
        }
245
0
    }
246
0
#ifndef QT_NO_PROPERTIES
247
0
    else if (_c == QMetaObject::ReadProperty) {
248
0
        auto *_t = static_cast<QInputMethod *>(_o);
249
0
        Q_UNUSED(_t)
250
0
        void *_v = _a[0];
251
0
        switch (_id) {
252
0
        case 0: *reinterpret_cast< QRectF*>(_v) = _t->cursorRectangle(); break;
253
0
        case 1: *reinterpret_cast< QRectF*>(_v) = _t->anchorRectangle(); break;
254
0
        case 2: *reinterpret_cast< QRectF*>(_v) = _t->keyboardRectangle(); break;
255
0
        case 3: *reinterpret_cast< QRectF*>(_v) = _t->inputItemClipRectangle(); break;
256
0
        case 4: *reinterpret_cast< bool*>(_v) = _t->isVisible(); break;
257
0
        case 5: *reinterpret_cast< bool*>(_v) = _t->isAnimating(); break;
258
0
        case 6: *reinterpret_cast< QLocale*>(_v) = _t->locale(); break;
259
0
        case 7: *reinterpret_cast< Qt::LayoutDirection*>(_v) = _t->inputDirection(); break;
260
0
        default: break;
261
0
        }
262
0
    } else if (_c == QMetaObject::WriteProperty) {
263
0
    } else if (_c == QMetaObject::ResetProperty) {
264
0
    }
265
0
#endif // QT_NO_PROPERTIES
266
0
}
267
268
QT_INIT_METAOBJECT const QMetaObject QInputMethod::staticMetaObject = { {
269
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
270
    qt_meta_stringdata_QInputMethod.data,
271
    qt_meta_data_QInputMethod,
272
    qt_static_metacall,
273
    nullptr,
274
    nullptr
275
} };
276
277
278
const QMetaObject *QInputMethod::metaObject() const
279
0
{
280
0
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
281
0
}
282
283
void *QInputMethod::qt_metacast(const char *_clname)
284
0
{
285
0
    if (!_clname) return nullptr;
286
0
    if (!strcmp(_clname, qt_meta_stringdata_QInputMethod.stringdata0))
287
0
        return static_cast<void*>(this);
288
0
    return QObject::qt_metacast(_clname);
289
0
}
290
291
int QInputMethod::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
292
0
{
293
0
    _id = QObject::qt_metacall(_c, _id, _a);
294
0
    if (_id < 0)
295
0
        return _id;
296
0
    if (_c == QMetaObject::InvokeMetaMethod) {
297
0
        if (_id < 14)
298
0
            qt_static_metacall(this, _c, _id, _a);
299
0
        _id -= 14;
300
0
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
301
0
        if (_id < 14)
302
0
            *reinterpret_cast<int*>(_a[0]) = -1;
303
0
        _id -= 14;
304
0
    }
305
0
#ifndef QT_NO_PROPERTIES
306
0
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
307
0
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
308
0
        qt_static_metacall(this, _c, _id, _a);
309
0
        _id -= 8;
310
0
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
311
0
        _id -= 8;
312
0
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
313
0
        _id -= 8;
314
0
    } else if (_c == QMetaObject::QueryPropertyStored) {
315
0
        _id -= 8;
316
0
    } else if (_c == QMetaObject::QueryPropertyEditable) {
317
0
        _id -= 8;
318
0
    } else if (_c == QMetaObject::QueryPropertyUser) {
319
0
        _id -= 8;
320
0
    }
321
0
#endif // QT_NO_PROPERTIES
322
0
    return _id;
323
0
}
324
325
// SIGNAL 0
326
void QInputMethod::cursorRectangleChanged()
327
0
{
328
0
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
329
0
}
330
331
// SIGNAL 1
332
void QInputMethod::anchorRectangleChanged()
333
0
{
334
0
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
335
0
}
336
337
// SIGNAL 2
338
void QInputMethod::keyboardRectangleChanged()
339
0
{
340
0
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
341
0
}
342
343
// SIGNAL 3
344
void QInputMethod::inputItemClipRectangleChanged()
345
0
{
346
0
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
347
0
}
348
349
// SIGNAL 4
350
void QInputMethod::visibleChanged()
351
0
{
352
0
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
353
0
}
354
355
// SIGNAL 5
356
void QInputMethod::animatingChanged()
357
0
{
358
0
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
359
0
}
360
361
// SIGNAL 6
362
void QInputMethod::localeChanged()
363
0
{
364
0
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
365
0
}
366
367
// SIGNAL 7
368
void QInputMethod::inputDirectionChanged(Qt::LayoutDirection _t1)
369
0
{
370
0
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
371
0
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
372
0
}
373
QT_WARNING_POP
374
QT_END_MOC_NAMESPACE