1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qitemdelegate.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 "itemviews/qitemdelegate.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qitemdelegate.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_QItemDelegate_t { |
25 | const uint offsetsAndSize[4]; |
26 | char stringdata0[23]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QItemDelegate_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QItemDelegate_t qt_meta_stringdata_QItemDelegate = { |
31 | { |
32 | QT_MOC_LITERAL(0, 13), // "QItemDelegate" |
33 | QT_MOC_LITERAL(14, 8) // "clipping" |
34 | |
35 | }, |
36 | "QItemDelegate\0clipping" |
37 | }; |
38 | #undef QT_MOC_LITERAL |
39 | |
40 | static const uint qt_meta_data_QItemDelegate[] = { |
41 | |
42 | // content: |
43 | 9, // revision |
44 | 0, // classname |
45 | 0, 0, // classinfo |
46 | 0, 0, // methods |
47 | 1, 14, // properties |
48 | 0, 0, // enums/sets |
49 | 0, 0, // constructors |
50 | 0, // flags |
51 | 0, // signalCount |
52 | |
53 | // properties: name, type, flags |
54 | 1, QMetaType::Bool, 0x00015103, uint(-1), 0, |
55 | |
56 | 0 // eod |
57 | }; |
58 | |
59 | void QItemDelegate::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
60 | { |
61 | |
62 | #ifndef QT_NO_PROPERTIES |
63 | if (_c == QMetaObject::ReadProperty) { |
64 | Q_ASSERT(staticMetaObject.cast(_o)); |
65 | auto *_t = static_cast<QItemDelegate *>(_o); |
66 | Q_UNUSED(_t) |
67 | void *_v = _a[0]; |
68 | switch (_id) { |
69 | case 0: *reinterpret_cast< bool*>(_v) = _t->hasClipping(); break; |
70 | default: break; |
71 | } |
72 | } else if (_c == QMetaObject::WriteProperty) { |
73 | Q_ASSERT(staticMetaObject.cast(_o)); |
74 | auto *_t = static_cast<QItemDelegate *>(_o); |
75 | Q_UNUSED(_t) |
76 | void *_v = _a[0]; |
77 | switch (_id) { |
78 | case 0: _t->setClipping(*reinterpret_cast< bool*>(_v)); break; |
79 | default: break; |
80 | } |
81 | } else if (_c == QMetaObject::ResetProperty) { |
82 | } else if (_c == QMetaObject::BindableProperty) { |
83 | } |
84 | #endif // QT_NO_PROPERTIES |
85 | Q_UNUSED(_o); |
86 | Q_UNUSED(_id); |
87 | Q_UNUSED(_c); |
88 | Q_UNUSED(_a); |
89 | } |
90 | |
91 | const QMetaObject QItemDelegate::staticMetaObject = { { |
92 | QMetaObject::SuperData::link<QAbstractItemDelegate::staticMetaObject>(), |
93 | qt_meta_stringdata_QItemDelegate.offsetsAndSize, |
94 | qt_meta_data_QItemDelegate, |
95 | qt_static_metacall, |
96 | nullptr, |
97 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QItemDelegate_t |
98 | , QtPrivate::TypeAndForceComplete<bool, std::true_type> |
99 | |
100 | |
101 | |
102 | >, |
103 | nullptr |
104 | } }; |
105 | |
106 | |
107 | const QMetaObject *QItemDelegate::metaObject() const |
108 | { |
109 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
110 | } |
111 | |
112 | void *QItemDelegate::qt_metacast(const char *_clname) |
113 | { |
114 | if (!_clname) return nullptr; |
115 | if (!strcmp(_clname, qt_meta_stringdata_QItemDelegate.stringdata0)) |
116 | return static_cast<void*>(this); |
117 | return QAbstractItemDelegate::qt_metacast(_clname); |
118 | } |
119 | |
120 | int QItemDelegate::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
121 | { |
122 | _id = QAbstractItemDelegate::qt_metacall(_c, _id, _a); |
123 | if (_id < 0) |
124 | return _id; |
125 | |
126 | #ifndef QT_NO_PROPERTIES |
127 | if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
128 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
129 | || _c == QMetaObject::RegisterPropertyMetaType) { |
130 | qt_static_metacall(this, _c, _id, _a); |
131 | _id -= 1; |
132 | } |
133 | #endif // QT_NO_PROPERTIES |
134 | return _id; |
135 | } |
136 | QT_WARNING_POP |
137 | QT_END_MOC_NAMESPACE |
138 | |