| 1 | /**************************************************************************** |
| 2 | ** Meta object code from reading C++ file 'qtabbar.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 "widgets/qtabbar.h" |
| 11 | #include <QtCore/qbytearray.h> |
| 12 | #include <QtCore/qmetatype.h> |
| 13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
| 14 | #error "The header file 'qtabbar.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_QTabBar_t { |
| 25 | const uint offsetsAndSize[76]; |
| 26 | char stringdata0[465]; |
| 27 | }; |
| 28 | #define QT_MOC_LITERAL(ofs, len) \ |
| 29 | uint(offsetof(qt_meta_stringdata_QTabBar_t, stringdata0) + ofs), len |
| 30 | static const qt_meta_stringdata_QTabBar_t qt_meta_stringdata_QTabBar = { |
| 31 | { |
| 32 | QT_MOC_LITERAL(0, 7), // "QTabBar" |
| 33 | QT_MOC_LITERAL(8, 14), // "currentChanged" |
| 34 | QT_MOC_LITERAL(23, 0), // "" |
| 35 | QT_MOC_LITERAL(24, 5), // "index" |
| 36 | QT_MOC_LITERAL(30, 17), // "tabCloseRequested" |
| 37 | QT_MOC_LITERAL(48, 8), // "tabMoved" |
| 38 | QT_MOC_LITERAL(57, 4), // "from" |
| 39 | QT_MOC_LITERAL(62, 2), // "to" |
| 40 | QT_MOC_LITERAL(65, 13), // "tabBarClicked" |
| 41 | QT_MOC_LITERAL(79, 19), // "tabBarDoubleClicked" |
| 42 | QT_MOC_LITERAL(99, 15), // "setCurrentIndex" |
| 43 | QT_MOC_LITERAL(115, 13), // "_q_scrollTabs" |
| 44 | QT_MOC_LITERAL(129, 11), // "_q_closeTab" |
| 45 | QT_MOC_LITERAL(141, 5), // "shape" |
| 46 | QT_MOC_LITERAL(147, 5), // "Shape" |
| 47 | QT_MOC_LITERAL(153, 12), // "currentIndex" |
| 48 | QT_MOC_LITERAL(166, 5), // "count" |
| 49 | QT_MOC_LITERAL(172, 8), // "drawBase" |
| 50 | QT_MOC_LITERAL(181, 8), // "iconSize" |
| 51 | QT_MOC_LITERAL(190, 9), // "elideMode" |
| 52 | QT_MOC_LITERAL(200, 17), // "Qt::TextElideMode" |
| 53 | QT_MOC_LITERAL(218, 17), // "usesScrollButtons" |
| 54 | QT_MOC_LITERAL(236, 12), // "tabsClosable" |
| 55 | QT_MOC_LITERAL(249, 25), // "selectionBehaviorOnRemove" |
| 56 | QT_MOC_LITERAL(275, 17), // "SelectionBehavior" |
| 57 | QT_MOC_LITERAL(293, 9), // "expanding" |
| 58 | QT_MOC_LITERAL(303, 7), // "movable" |
| 59 | QT_MOC_LITERAL(311, 12), // "documentMode" |
| 60 | QT_MOC_LITERAL(324, 8), // "autoHide" |
| 61 | QT_MOC_LITERAL(333, 19), // "changeCurrentOnDrag" |
| 62 | QT_MOC_LITERAL(353, 12), // "RoundedNorth" |
| 63 | QT_MOC_LITERAL(366, 12), // "RoundedSouth" |
| 64 | QT_MOC_LITERAL(379, 11), // "RoundedWest" |
| 65 | QT_MOC_LITERAL(391, 11), // "RoundedEast" |
| 66 | QT_MOC_LITERAL(403, 15), // "TriangularNorth" |
| 67 | QT_MOC_LITERAL(419, 15), // "TriangularSouth" |
| 68 | QT_MOC_LITERAL(435, 14), // "TriangularWest" |
| 69 | QT_MOC_LITERAL(450, 14) // "TriangularEast" |
| 70 | |
| 71 | }, |
| 72 | "QTabBar\0currentChanged\0\0index\0" |
| 73 | "tabCloseRequested\0tabMoved\0from\0to\0" |
| 74 | "tabBarClicked\0tabBarDoubleClicked\0" |
| 75 | "setCurrentIndex\0_q_scrollTabs\0_q_closeTab\0" |
| 76 | "shape\0Shape\0currentIndex\0count\0drawBase\0" |
| 77 | "iconSize\0elideMode\0Qt::TextElideMode\0" |
| 78 | "usesScrollButtons\0tabsClosable\0" |
| 79 | "selectionBehaviorOnRemove\0SelectionBehavior\0" |
| 80 | "expanding\0movable\0documentMode\0autoHide\0" |
| 81 | "changeCurrentOnDrag\0RoundedNorth\0" |
| 82 | "RoundedSouth\0RoundedWest\0RoundedEast\0" |
| 83 | "TriangularNorth\0TriangularSouth\0" |
| 84 | "TriangularWest\0TriangularEast" |
| 85 | }; |
| 86 | #undef QT_MOC_LITERAL |
| 87 | |
| 88 | static const uint qt_meta_data_QTabBar[] = { |
| 89 | |
| 90 | // content: |
| 91 | 9, // revision |
| 92 | 0, // classname |
| 93 | 0, 0, // classinfo |
| 94 | 8, 14, // methods |
| 95 | 14, 84, // properties |
| 96 | 1, 154, // enums/sets |
| 97 | 0, 0, // constructors |
| 98 | 0, // flags |
| 99 | 5, // signalCount |
| 100 | |
| 101 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 102 | 1, 1, 62, 2, 0x06, 14 /* Public */, |
| 103 | 4, 1, 65, 2, 0x06, 16 /* Public */, |
| 104 | 5, 2, 68, 2, 0x06, 18 /* Public */, |
| 105 | 8, 1, 73, 2, 0x06, 21 /* Public */, |
| 106 | 9, 1, 76, 2, 0x06, 23 /* Public */, |
| 107 | |
| 108 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
| 109 | 10, 1, 79, 2, 0x0a, 25 /* Public */, |
| 110 | 11, 0, 82, 2, 0x08, 27 /* Private */, |
| 111 | 12, 0, 83, 2, 0x08, 28 /* Private */, |
| 112 | |
| 113 | // signals: parameters |
| 114 | QMetaType::Void, QMetaType::Int, 3, |
| 115 | QMetaType::Void, QMetaType::Int, 3, |
| 116 | QMetaType::Void, QMetaType::Int, QMetaType::Int, 6, 7, |
| 117 | QMetaType::Void, QMetaType::Int, 3, |
| 118 | QMetaType::Void, QMetaType::Int, 3, |
| 119 | |
| 120 | // slots: parameters |
| 121 | QMetaType::Void, QMetaType::Int, 3, |
| 122 | QMetaType::Void, |
| 123 | QMetaType::Void, |
| 124 | |
| 125 | // properties: name, type, flags |
| 126 | 13, 0x80000000 | 14, 0x0001510b, uint(-1), 0, |
| 127 | 15, QMetaType::Int, 0x00015103, uint(0), 0, |
| 128 | 16, QMetaType::Int, 0x00015001, uint(-1), 0, |
| 129 | 17, QMetaType::Bool, 0x00015103, uint(-1), 0, |
| 130 | 18, QMetaType::QSize, 0x00015103, uint(-1), 0, |
| 131 | 19, 0x80000000 | 20, 0x0001510b, uint(-1), 0, |
| 132 | 21, QMetaType::Bool, 0x00015103, uint(-1), 0, |
| 133 | 22, QMetaType::Bool, 0x00015103, uint(-1), 0, |
| 134 | 23, 0x80000000 | 24, 0x0001510b, uint(-1), 0, |
| 135 | 25, QMetaType::Bool, 0x00015103, uint(-1), 0, |
| 136 | 26, QMetaType::Bool, 0x00015103, uint(-1), 0, |
| 137 | 27, QMetaType::Bool, 0x00015103, uint(-1), 0, |
| 138 | 28, QMetaType::Bool, 0x00015103, uint(-1), 0, |
| 139 | 29, QMetaType::Bool, 0x00015103, uint(-1), 0, |
| 140 | |
| 141 | // enums: name, alias, flags, count, data |
| 142 | 14, 14, 0x0, 8, 159, |
| 143 | |
| 144 | // enum data: key, value |
| 145 | 30, uint(QTabBar::RoundedNorth), |
| 146 | 31, uint(QTabBar::RoundedSouth), |
| 147 | 32, uint(QTabBar::RoundedWest), |
| 148 | 33, uint(QTabBar::RoundedEast), |
| 149 | 34, uint(QTabBar::TriangularNorth), |
| 150 | 35, uint(QTabBar::TriangularSouth), |
| 151 | 36, uint(QTabBar::TriangularWest), |
| 152 | 37, uint(QTabBar::TriangularEast), |
| 153 | |
| 154 | 0 // eod |
| 155 | }; |
| 156 | |
| 157 | void QTabBar::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 158 | { |
| 159 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 160 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 161 | auto *_t = static_cast<QTabBar *>(_o); |
| 162 | Q_UNUSED(_t) |
| 163 | switch (_id) { |
| 164 | case 0: _t->currentChanged((*reinterpret_cast< int(*)>(_a[1]))); break; |
| 165 | case 1: _t->tabCloseRequested((*reinterpret_cast< int(*)>(_a[1]))); break; |
| 166 | case 2: _t->tabMoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; |
| 167 | case 3: _t->tabBarClicked((*reinterpret_cast< int(*)>(_a[1]))); break; |
| 168 | case 4: _t->tabBarDoubleClicked((*reinterpret_cast< int(*)>(_a[1]))); break; |
| 169 | case 5: _t->setCurrentIndex((*reinterpret_cast< int(*)>(_a[1]))); break; |
| 170 | case 6: _t->d_func()->_q_scrollTabs(); break; |
| 171 | case 7: _t->d_func()->_q_closeTab(); break; |
| 172 | default: ; |
| 173 | } |
| 174 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 175 | int *result = reinterpret_cast<int *>(_a[0]); |
| 176 | { |
| 177 | using _t = void (QTabBar::*)(int ); |
| 178 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTabBar::currentChanged)) { |
| 179 | *result = 0; |
| 180 | return; |
| 181 | } |
| 182 | } |
| 183 | { |
| 184 | using _t = void (QTabBar::*)(int ); |
| 185 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTabBar::tabCloseRequested)) { |
| 186 | *result = 1; |
| 187 | return; |
| 188 | } |
| 189 | } |
| 190 | { |
| 191 | using _t = void (QTabBar::*)(int , int ); |
| 192 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTabBar::tabMoved)) { |
| 193 | *result = 2; |
| 194 | return; |
| 195 | } |
| 196 | } |
| 197 | { |
| 198 | using _t = void (QTabBar::*)(int ); |
| 199 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTabBar::tabBarClicked)) { |
| 200 | *result = 3; |
| 201 | return; |
| 202 | } |
| 203 | } |
| 204 | { |
| 205 | using _t = void (QTabBar::*)(int ); |
| 206 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTabBar::tabBarDoubleClicked)) { |
| 207 | *result = 4; |
| 208 | return; |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | #ifndef QT_NO_PROPERTIES |
| 213 | else if (_c == QMetaObject::ReadProperty) { |
| 214 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 215 | auto *_t = static_cast<QTabBar *>(_o); |
| 216 | Q_UNUSED(_t) |
| 217 | void *_v = _a[0]; |
| 218 | switch (_id) { |
| 219 | case 0: *reinterpret_cast< Shape*>(_v) = _t->shape(); break; |
| 220 | case 1: *reinterpret_cast< int*>(_v) = _t->currentIndex(); break; |
| 221 | case 2: *reinterpret_cast< int*>(_v) = _t->count(); break; |
| 222 | case 3: *reinterpret_cast< bool*>(_v) = _t->drawBase(); break; |
| 223 | case 4: *reinterpret_cast< QSize*>(_v) = _t->iconSize(); break; |
| 224 | case 5: *reinterpret_cast< Qt::TextElideMode*>(_v) = _t->elideMode(); break; |
| 225 | case 6: *reinterpret_cast< bool*>(_v) = _t->usesScrollButtons(); break; |
| 226 | case 7: *reinterpret_cast< bool*>(_v) = _t->tabsClosable(); break; |
| 227 | case 8: *reinterpret_cast< SelectionBehavior*>(_v) = _t->selectionBehaviorOnRemove(); break; |
| 228 | case 9: *reinterpret_cast< bool*>(_v) = _t->expanding(); break; |
| 229 | case 10: *reinterpret_cast< bool*>(_v) = _t->isMovable(); break; |
| 230 | case 11: *reinterpret_cast< bool*>(_v) = _t->documentMode(); break; |
| 231 | case 12: *reinterpret_cast< bool*>(_v) = _t->autoHide(); break; |
| 232 | case 13: *reinterpret_cast< bool*>(_v) = _t->changeCurrentOnDrag(); break; |
| 233 | default: break; |
| 234 | } |
| 235 | } else if (_c == QMetaObject::WriteProperty) { |
| 236 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 237 | auto *_t = static_cast<QTabBar *>(_o); |
| 238 | Q_UNUSED(_t) |
| 239 | void *_v = _a[0]; |
| 240 | switch (_id) { |
| 241 | case 0: _t->setShape(*reinterpret_cast< Shape*>(_v)); break; |
| 242 | case 1: _t->setCurrentIndex(*reinterpret_cast< int*>(_v)); break; |
| 243 | case 3: _t->setDrawBase(*reinterpret_cast< bool*>(_v)); break; |
| 244 | case 4: _t->setIconSize(*reinterpret_cast< QSize*>(_v)); break; |
| 245 | case 5: _t->setElideMode(*reinterpret_cast< Qt::TextElideMode*>(_v)); break; |
| 246 | case 6: _t->setUsesScrollButtons(*reinterpret_cast< bool*>(_v)); break; |
| 247 | case 7: _t->setTabsClosable(*reinterpret_cast< bool*>(_v)); break; |
| 248 | case 8: _t->setSelectionBehaviorOnRemove(*reinterpret_cast< SelectionBehavior*>(_v)); break; |
| 249 | case 9: _t->setExpanding(*reinterpret_cast< bool*>(_v)); break; |
| 250 | case 10: _t->setMovable(*reinterpret_cast< bool*>(_v)); break; |
| 251 | case 11: _t->setDocumentMode(*reinterpret_cast< bool*>(_v)); break; |
| 252 | case 12: _t->setAutoHide(*reinterpret_cast< bool*>(_v)); break; |
| 253 | case 13: _t->setChangeCurrentOnDrag(*reinterpret_cast< bool*>(_v)); break; |
| 254 | default: break; |
| 255 | } |
| 256 | } else if (_c == QMetaObject::ResetProperty) { |
| 257 | } else if (_c == QMetaObject::BindableProperty) { |
| 258 | } |
| 259 | #endif // QT_NO_PROPERTIES |
| 260 | } |
| 261 | |
| 262 | const QMetaObject QTabBar::staticMetaObject = { { |
| 263 | QMetaObject::SuperData::link<QWidget::staticMetaObject>(), |
| 264 | qt_meta_stringdata_QTabBar.offsetsAndSize, |
| 265 | qt_meta_data_QTabBar, |
| 266 | qt_static_metacall, |
| 267 | nullptr, |
| 268 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QTabBar_t |
| 269 | , QtPrivate::TypeAndForceComplete<Shape, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QSize, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::TextElideMode, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<SelectionBehavior, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type> |
| 270 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
| 271 | |
| 272 | |
| 273 | >, |
| 274 | nullptr |
| 275 | } }; |
| 276 | |
| 277 | |
| 278 | const QMetaObject *QTabBar::metaObject() const |
| 279 | { |
| 280 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 281 | } |
| 282 | |
| 283 | void *QTabBar::qt_metacast(const char *_clname) |
| 284 | { |
| 285 | if (!_clname) return nullptr; |
| 286 | if (!strcmp(_clname, qt_meta_stringdata_QTabBar.stringdata0)) |
| 287 | return static_cast<void*>(this); |
| 288 | return QWidget::qt_metacast(_clname); |
| 289 | } |
| 290 | |
| 291 | int QTabBar::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
| 292 | { |
| 293 | _id = QWidget::qt_metacall(_c, _id, _a); |
| 294 | if (_id < 0) |
| 295 | return _id; |
| 296 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 297 | if (_id < 8) |
| 298 | qt_static_metacall(this, _c, _id, _a); |
| 299 | _id -= 8; |
| 300 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 301 | if (_id < 8) |
| 302 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 303 | _id -= 8; |
| 304 | } |
| 305 | #ifndef QT_NO_PROPERTIES |
| 306 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
| 307 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
| 308 | || _c == QMetaObject::RegisterPropertyMetaType) { |
| 309 | qt_static_metacall(this, _c, _id, _a); |
| 310 | _id -= 14; |
| 311 | } |
| 312 | #endif // QT_NO_PROPERTIES |
| 313 | return _id; |
| 314 | } |
| 315 | |
| 316 | // SIGNAL 0 |
| 317 | void QTabBar::currentChanged(int _t1) |
| 318 | { |
| 319 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
| 320 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
| 321 | } |
| 322 | |
| 323 | // SIGNAL 1 |
| 324 | void QTabBar::tabCloseRequested(int _t1) |
| 325 | { |
| 326 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
| 327 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
| 328 | } |
| 329 | |
| 330 | // SIGNAL 2 |
| 331 | void QTabBar::tabMoved(int _t1, int _t2) |
| 332 | { |
| 333 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
| 334 | QMetaObject::activate(this, &staticMetaObject, 2, _a); |
| 335 | } |
| 336 | |
| 337 | // SIGNAL 3 |
| 338 | void QTabBar::tabBarClicked(int _t1) |
| 339 | { |
| 340 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
| 341 | QMetaObject::activate(this, &staticMetaObject, 3, _a); |
| 342 | } |
| 343 | |
| 344 | // SIGNAL 4 |
| 345 | void QTabBar::tabBarDoubleClicked(int _t1) |
| 346 | { |
| 347 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
| 348 | QMetaObject::activate(this, &staticMetaObject, 4, _a); |
| 349 | } |
| 350 | QT_WARNING_POP |
| 351 | QT_END_MOC_NAMESPACE |
| 352 | |