| 1 | /**************************************************************************** |
| 2 | ** Meta object code from reading C++ file 'qapplication.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/qapplication.h" |
| 11 | #include <QtCore/qbytearray.h> |
| 12 | #include <QtCore/qmetatype.h> |
| 13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
| 14 | #error "The header file 'qapplication.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 | |
| 21 | QT_BEGIN_MOC_NAMESPACE |
| 22 | QT_WARNING_PUSH |
| 23 | QT_WARNING_DISABLE_DEPRECATED |
| 24 | struct qt_meta_stringdata_QApplication_t { |
| 25 | const uint offsetsAndSize[40]; |
| 26 | char stringdata0[247]; |
| 27 | }; |
| 28 | #define QT_MOC_LITERAL(ofs, len) \ |
| 29 | uint(offsetof(qt_meta_stringdata_QApplication_t, stringdata0) + ofs), len |
| 30 | static const qt_meta_stringdata_QApplication_t qt_meta_stringdata_QApplication = { |
| 31 | { |
| 32 | QT_MOC_LITERAL(0, 12), // "QApplication" |
| 33 | QT_MOC_LITERAL(13, 12), // "focusChanged" |
| 34 | QT_MOC_LITERAL(26, 0), // "" |
| 35 | QT_MOC_LITERAL(27, 8), // "QWidget*" |
| 36 | QT_MOC_LITERAL(36, 3), // "old" |
| 37 | QT_MOC_LITERAL(40, 3), // "now" |
| 38 | QT_MOC_LITERAL(44, 13), // "setStyleSheet" |
| 39 | QT_MOC_LITERAL(58, 5), // "sheet" |
| 40 | QT_MOC_LITERAL(64, 17), // "setAutoSipEnabled" |
| 41 | QT_MOC_LITERAL(82, 7), // "enabled" |
| 42 | QT_MOC_LITERAL(90, 14), // "autoSipEnabled" |
| 43 | QT_MOC_LITERAL(105, 15), // "closeAllWindows" |
| 44 | QT_MOC_LITERAL(121, 7), // "aboutQt" |
| 45 | QT_MOC_LITERAL(129, 15), // "cursorFlashTime" |
| 46 | QT_MOC_LITERAL(145, 19), // "doubleClickInterval" |
| 47 | QT_MOC_LITERAL(165, 21), // "keyboardInputInterval" |
| 48 | QT_MOC_LITERAL(187, 16), // "wheelScrollLines" |
| 49 | QT_MOC_LITERAL(204, 13), // "startDragTime" |
| 50 | QT_MOC_LITERAL(218, 17), // "startDragDistance" |
| 51 | QT_MOC_LITERAL(236, 10) // "styleSheet" |
| 52 | |
| 53 | }, |
| 54 | "QApplication\0focusChanged\0\0QWidget*\0" |
| 55 | "old\0now\0setStyleSheet\0sheet\0" |
| 56 | "setAutoSipEnabled\0enabled\0autoSipEnabled\0" |
| 57 | "closeAllWindows\0aboutQt\0cursorFlashTime\0" |
| 58 | "doubleClickInterval\0keyboardInputInterval\0" |
| 59 | "wheelScrollLines\0startDragTime\0" |
| 60 | "startDragDistance\0styleSheet" |
| 61 | }; |
| 62 | #undef QT_MOC_LITERAL |
| 63 | |
| 64 | static const uint qt_meta_data_QApplication[] = { |
| 65 | |
| 66 | // content: |
| 67 | 9, // revision |
| 68 | 0, // classname |
| 69 | 0, 0, // classinfo |
| 70 | 6, 14, // methods |
| 71 | 8, 64, // properties |
| 72 | 0, 0, // enums/sets |
| 73 | 0, 0, // constructors |
| 74 | 0, // flags |
| 75 | 1, // signalCount |
| 76 | |
| 77 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 78 | 1, 2, 50, 2, 0x06, 8 /* Public */, |
| 79 | |
| 80 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
| 81 | 6, 1, 55, 2, 0x0a, 11 /* Public */, |
| 82 | 8, 1, 58, 2, 0x0a, 13 /* Public */, |
| 83 | 10, 0, 61, 2, 0x0a, 15 /* Public */, |
| 84 | 11, 0, 62, 2, 0x0a, 16 /* Public */, |
| 85 | 12, 0, 63, 2, 0x0a, 17 /* Public */, |
| 86 | |
| 87 | // signals: parameters |
| 88 | QMetaType::Void, 0x80000000 | 3, 0x80000000 | 3, 4, 5, |
| 89 | |
| 90 | // slots: parameters |
| 91 | QMetaType::Void, QMetaType::QString, 7, |
| 92 | QMetaType::Void, QMetaType::Bool, 9, |
| 93 | QMetaType::Bool, |
| 94 | QMetaType::Void, |
| 95 | QMetaType::Void, |
| 96 | |
| 97 | // properties: name, type, flags |
| 98 | 13, QMetaType::Int, 0x00015103, uint(-1), 0, |
| 99 | 14, QMetaType::Int, 0x00015103, uint(-1), 0, |
| 100 | 15, QMetaType::Int, 0x00015103, uint(-1), 0, |
| 101 | 16, QMetaType::Int, 0x00015103, uint(-1), 0, |
| 102 | 17, QMetaType::Int, 0x00015103, uint(-1), 0, |
| 103 | 18, QMetaType::Int, 0x00015103, uint(-1), 0, |
| 104 | 19, QMetaType::QString, 0x00015103, uint(-1), 0, |
| 105 | 10, QMetaType::Bool, 0x00015103, uint(-1), 0, |
| 106 | |
| 107 | 0 // eod |
| 108 | }; |
| 109 | |
| 110 | void QApplication::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 111 | { |
| 112 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 113 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 114 | auto *_t = static_cast<QApplication *>(_o); |
| 115 | Q_UNUSED(_t) |
| 116 | switch (_id) { |
| 117 | case 0: _t->focusChanged((*reinterpret_cast< QWidget*(*)>(_a[1])),(*reinterpret_cast< QWidget*(*)>(_a[2]))); break; |
| 118 | case 1: _t->setStyleSheet((*reinterpret_cast< const QString(*)>(_a[1]))); break; |
| 119 | case 2: _t->setAutoSipEnabled((*reinterpret_cast< const bool(*)>(_a[1]))); break; |
| 120 | case 3: { bool _r = _t->autoSipEnabled(); |
| 121 | if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break; |
| 122 | case 4: _t->closeAllWindows(); break; |
| 123 | case 5: _t->aboutQt(); break; |
| 124 | default: ; |
| 125 | } |
| 126 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 127 | int *result = reinterpret_cast<int *>(_a[0]); |
| 128 | { |
| 129 | using _t = void (QApplication::*)(QWidget * , QWidget * ); |
| 130 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QApplication::focusChanged)) { |
| 131 | *result = 0; |
| 132 | return; |
| 133 | } |
| 134 | } |
| 135 | } |
| 136 | #ifndef QT_NO_PROPERTIES |
| 137 | else if (_c == QMetaObject::ReadProperty) { |
| 138 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 139 | auto *_t = static_cast<QApplication *>(_o); |
| 140 | Q_UNUSED(_t) |
| 141 | void *_v = _a[0]; |
| 142 | switch (_id) { |
| 143 | case 0: *reinterpret_cast< int*>(_v) = _t->cursorFlashTime(); break; |
| 144 | case 1: *reinterpret_cast< int*>(_v) = _t->doubleClickInterval(); break; |
| 145 | case 2: *reinterpret_cast< int*>(_v) = _t->keyboardInputInterval(); break; |
| 146 | case 3: *reinterpret_cast< int*>(_v) = _t->wheelScrollLines(); break; |
| 147 | case 4: *reinterpret_cast< int*>(_v) = _t->startDragTime(); break; |
| 148 | case 5: *reinterpret_cast< int*>(_v) = _t->startDragDistance(); break; |
| 149 | case 6: *reinterpret_cast< QString*>(_v) = _t->styleSheet(); break; |
| 150 | case 7: *reinterpret_cast< bool*>(_v) = _t->autoSipEnabled(); break; |
| 151 | default: break; |
| 152 | } |
| 153 | } else if (_c == QMetaObject::WriteProperty) { |
| 154 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 155 | auto *_t = static_cast<QApplication *>(_o); |
| 156 | Q_UNUSED(_t) |
| 157 | void *_v = _a[0]; |
| 158 | switch (_id) { |
| 159 | case 0: _t->setCursorFlashTime(*reinterpret_cast< int*>(_v)); break; |
| 160 | case 1: _t->setDoubleClickInterval(*reinterpret_cast< int*>(_v)); break; |
| 161 | case 2: _t->setKeyboardInputInterval(*reinterpret_cast< int*>(_v)); break; |
| 162 | case 3: _t->setWheelScrollLines(*reinterpret_cast< int*>(_v)); break; |
| 163 | case 4: _t->setStartDragTime(*reinterpret_cast< int*>(_v)); break; |
| 164 | case 5: _t->setStartDragDistance(*reinterpret_cast< int*>(_v)); break; |
| 165 | case 6: _t->setStyleSheet(*reinterpret_cast< QString*>(_v)); break; |
| 166 | case 7: _t->setAutoSipEnabled(*reinterpret_cast< bool*>(_v)); break; |
| 167 | default: break; |
| 168 | } |
| 169 | } else if (_c == QMetaObject::ResetProperty) { |
| 170 | } else if (_c == QMetaObject::BindableProperty) { |
| 171 | } |
| 172 | #endif // QT_NO_PROPERTIES |
| 173 | } |
| 174 | |
| 175 | const QMetaObject QApplication::staticMetaObject = { { |
| 176 | QMetaObject::SuperData::link<QGuiApplication::staticMetaObject>(), |
| 177 | qt_meta_stringdata_QApplication.offsetsAndSize, |
| 178 | qt_meta_data_QApplication, |
| 179 | qt_static_metacall, |
| 180 | nullptr, |
| 181 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QApplication_t |
| 182 | , QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QWidget *, std::false_type>, QtPrivate::TypeAndForceComplete<QWidget *, std::false_type> |
| 183 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const bool, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
| 184 | |
| 185 | |
| 186 | >, |
| 187 | nullptr |
| 188 | } }; |
| 189 | |
| 190 | |
| 191 | const QMetaObject *QApplication::metaObject() const |
| 192 | { |
| 193 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 194 | } |
| 195 | |
| 196 | void *QApplication::qt_metacast(const char *_clname) |
| 197 | { |
| 198 | if (!_clname) return nullptr; |
| 199 | if (!strcmp(_clname, qt_meta_stringdata_QApplication.stringdata0)) |
| 200 | return static_cast<void*>(this); |
| 201 | return QGuiApplication::qt_metacast(_clname); |
| 202 | } |
| 203 | |
| 204 | int QApplication::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
| 205 | { |
| 206 | _id = QGuiApplication::qt_metacall(_c, _id, _a); |
| 207 | if (_id < 0) |
| 208 | return _id; |
| 209 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 210 | if (_id < 6) |
| 211 | qt_static_metacall(this, _c, _id, _a); |
| 212 | _id -= 6; |
| 213 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 214 | if (_id < 6) |
| 215 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 216 | _id -= 6; |
| 217 | } |
| 218 | #ifndef QT_NO_PROPERTIES |
| 219 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
| 220 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
| 221 | || _c == QMetaObject::RegisterPropertyMetaType) { |
| 222 | qt_static_metacall(this, _c, _id, _a); |
| 223 | _id -= 8; |
| 224 | } |
| 225 | #endif // QT_NO_PROPERTIES |
| 226 | return _id; |
| 227 | } |
| 228 | |
| 229 | // SIGNAL 0 |
| 230 | void QApplication::focusChanged(QWidget * _t1, QWidget * _t2) |
| 231 | { |
| 232 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
| 233 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
| 234 | } |
| 235 | QT_WARNING_POP |
| 236 | QT_END_MOC_NAMESPACE |
| 237 | |