1/****************************************************************************
2** Meta object code from reading C++ file 'qabstractscrollarea.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/qabstractscrollarea.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qabstractscrollarea.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
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QAbstractScrollArea_t {
25 const uint offsetsAndSize[26];
26 char stringdata0[228];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QAbstractScrollArea_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QAbstractScrollArea_t qt_meta_stringdata_QAbstractScrollArea = {
31 {
32QT_MOC_LITERAL(0, 19), // "QAbstractScrollArea"
33QT_MOC_LITERAL(20, 9), // "_q_hslide"
34QT_MOC_LITERAL(30, 0), // ""
35QT_MOC_LITERAL(31, 9), // "_q_vslide"
36QT_MOC_LITERAL(41, 23), // "_q_showOrHideScrollBars"
37QT_MOC_LITERAL(65, 23), // "verticalScrollBarPolicy"
38QT_MOC_LITERAL(89, 19), // "Qt::ScrollBarPolicy"
39QT_MOC_LITERAL(109, 25), // "horizontalScrollBarPolicy"
40QT_MOC_LITERAL(135, 16), // "sizeAdjustPolicy"
41QT_MOC_LITERAL(152, 16), // "SizeAdjustPolicy"
42QT_MOC_LITERAL(169, 13), // "AdjustIgnored"
43QT_MOC_LITERAL(183, 27), // "AdjustToContentsOnFirstShow"
44QT_MOC_LITERAL(211, 16) // "AdjustToContents"
45
46 },
47 "QAbstractScrollArea\0_q_hslide\0\0_q_vslide\0"
48 "_q_showOrHideScrollBars\0verticalScrollBarPolicy\0"
49 "Qt::ScrollBarPolicy\0horizontalScrollBarPolicy\0"
50 "sizeAdjustPolicy\0SizeAdjustPolicy\0"
51 "AdjustIgnored\0AdjustToContentsOnFirstShow\0"
52 "AdjustToContents"
53};
54#undef QT_MOC_LITERAL
55
56static const uint qt_meta_data_QAbstractScrollArea[] = {
57
58 // content:
59 9, // revision
60 0, // classname
61 0, 0, // classinfo
62 3, 14, // methods
63 3, 39, // properties
64 1, 54, // enums/sets
65 0, 0, // constructors
66 0, // flags
67 0, // signalCount
68
69 // slots: name, argc, parameters, tag, flags, initial metatype offsets
70 1, 1, 32, 2, 0x08, 3 /* Private */,
71 3, 1, 35, 2, 0x08, 5 /* Private */,
72 4, 0, 38, 2, 0x08, 7 /* Private */,
73
74 // slots: parameters
75 QMetaType::Void, QMetaType::Int, 2,
76 QMetaType::Void, QMetaType::Int, 2,
77 QMetaType::Void,
78
79 // properties: name, type, flags
80 5, 0x80000000 | 6, 0x0001510b, uint(-1), 0,
81 7, 0x80000000 | 6, 0x0001510b, uint(-1), 0,
82 8, 0x80000000 | 9, 0x0001510b, uint(-1), 0,
83
84 // enums: name, alias, flags, count, data
85 9, 9, 0x0, 3, 59,
86
87 // enum data: key, value
88 10, uint(QAbstractScrollArea::AdjustIgnored),
89 11, uint(QAbstractScrollArea::AdjustToContentsOnFirstShow),
90 12, uint(QAbstractScrollArea::AdjustToContents),
91
92 0 // eod
93};
94
95void QAbstractScrollArea::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
96{
97 if (_c == QMetaObject::InvokeMetaMethod) {
98 Q_ASSERT(staticMetaObject.cast(_o));
99 auto *_t = static_cast<QAbstractScrollArea *>(_o);
100 Q_UNUSED(_t)
101 switch (_id) {
102 case 0: _t->d_func()->_q_hslide((*reinterpret_cast< int(*)>(_a[1]))); break;
103 case 1: _t->d_func()->_q_vslide((*reinterpret_cast< int(*)>(_a[1]))); break;
104 case 2: _t->d_func()->_q_showOrHideScrollBars(); break;
105 default: ;
106 }
107 }
108#ifndef QT_NO_PROPERTIES
109 else if (_c == QMetaObject::ReadProperty) {
110 Q_ASSERT(staticMetaObject.cast(_o));
111 auto *_t = static_cast<QAbstractScrollArea *>(_o);
112 Q_UNUSED(_t)
113 void *_v = _a[0];
114 switch (_id) {
115 case 0: *reinterpret_cast< Qt::ScrollBarPolicy*>(_v) = _t->verticalScrollBarPolicy(); break;
116 case 1: *reinterpret_cast< Qt::ScrollBarPolicy*>(_v) = _t->horizontalScrollBarPolicy(); break;
117 case 2: *reinterpret_cast< SizeAdjustPolicy*>(_v) = _t->sizeAdjustPolicy(); break;
118 default: break;
119 }
120 } else if (_c == QMetaObject::WriteProperty) {
121 Q_ASSERT(staticMetaObject.cast(_o));
122 auto *_t = static_cast<QAbstractScrollArea *>(_o);
123 Q_UNUSED(_t)
124 void *_v = _a[0];
125 switch (_id) {
126 case 0: _t->setVerticalScrollBarPolicy(*reinterpret_cast< Qt::ScrollBarPolicy*>(_v)); break;
127 case 1: _t->setHorizontalScrollBarPolicy(*reinterpret_cast< Qt::ScrollBarPolicy*>(_v)); break;
128 case 2: _t->setSizeAdjustPolicy(*reinterpret_cast< SizeAdjustPolicy*>(_v)); break;
129 default: break;
130 }
131 } else if (_c == QMetaObject::ResetProperty) {
132 } else if (_c == QMetaObject::BindableProperty) {
133 }
134#endif // QT_NO_PROPERTIES
135}
136
137const QMetaObject QAbstractScrollArea::staticMetaObject = { {
138 QMetaObject::SuperData::link<QFrame::staticMetaObject>(),
139 qt_meta_stringdata_QAbstractScrollArea.offsetsAndSize,
140 qt_meta_data_QAbstractScrollArea,
141 qt_static_metacall,
142 nullptr,
143qt_incomplete_metaTypeArray<qt_meta_stringdata_QAbstractScrollArea_t
144, QtPrivate::TypeAndForceComplete<Qt::ScrollBarPolicy, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::ScrollBarPolicy, std::true_type>, QtPrivate::TypeAndForceComplete<SizeAdjustPolicy, std::true_type>
145, 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>
146
147
148>,
149 nullptr
150} };
151
152
153const QMetaObject *QAbstractScrollArea::metaObject() const
154{
155 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
156}
157
158void *QAbstractScrollArea::qt_metacast(const char *_clname)
159{
160 if (!_clname) return nullptr;
161 if (!strcmp(_clname, qt_meta_stringdata_QAbstractScrollArea.stringdata0))
162 return static_cast<void*>(this);
163 return QFrame::qt_metacast(_clname);
164}
165
166int QAbstractScrollArea::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
167{
168 _id = QFrame::qt_metacall(_c, _id, _a);
169 if (_id < 0)
170 return _id;
171 if (_c == QMetaObject::InvokeMetaMethod) {
172 if (_id < 3)
173 qt_static_metacall(this, _c, _id, _a);
174 _id -= 3;
175 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
176 if (_id < 3)
177 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
178 _id -= 3;
179 }
180#ifndef QT_NO_PROPERTIES
181 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
182 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
183 || _c == QMetaObject::RegisterPropertyMetaType) {
184 qt_static_metacall(this, _c, _id, _a);
185 _id -= 3;
186 }
187#endif // QT_NO_PROPERTIES
188 return _id;
189}
190QT_WARNING_POP
191QT_END_MOC_NAMESPACE
192