Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/types/qqmldelegatemodel_p_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | static_assert(bool(1 == 1), "Required feature " "qml_delegate_model" " for file " __FILE__ " not available."); | - |
4 | - | |
5 | - | |
6 | - | |
7 | typedef QQmlListCompositor Compositor; | - |
8 | - | |
9 | class QQmlDelegateModelAttachedMetaObject; | - |
10 | - | |
11 | class QQmlDelegateModelItemMetaType : public QQmlRefCount | - |
12 | { | - |
13 | public: | - |
14 | QQmlDelegateModelItemMetaType(QV4::ExecutionEngine *engine, QQmlDelegateModel *model, const QStringList &groupNames); | - |
15 | ~QQmlDelegateModelItemMetaType(); | - |
16 | - | |
17 | void initializeMetaObject(); | - |
18 | void initializePrototype(); | - |
19 | - | |
20 | int parseGroups(const QStringList &groupNames) const; | - |
21 | int parseGroups(const QV4::Value &groupNames) const; | - |
22 | - | |
23 | QPointer<QQmlDelegateModel> model; | - |
24 | const int groupCount; | - |
25 | QV4::ExecutionEngine * const v4Engine; | - |
26 | QQmlDelegateModelAttachedMetaObject *metaObject; | - |
27 | const QStringList groupNames; | - |
28 | QV4::PersistentValue modelItemProto; | - |
29 | }; | - |
30 | - | |
31 | class QQmlAdaptorModel; | - |
32 | class QQDMIncubationTask; | - |
33 | - | |
34 | class QQmlDelegateModelItem : public QObject | - |
35 | { | - |
36 | public: | - |
37 | #pragma GCC diagnostic push | - |
38 | - | |
39 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
40 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
41 | #pragma GCC diagnostic ignored "-Wattributes" | - |
42 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
43 | #pragma GCC diagnostic pop | - |
44 | struct QPrivateSignal {}; | - |
45 | - | |
46 | - | |
47 | - | |
48 | - | |
49 | public: | - |
50 | QQmlDelegateModelItem(QQmlDelegateModelItemMetaType *metaType, int modelIndex); | - |
51 | ~QQmlDelegateModelItem(); | - |
52 | - | |
53 | void referenceObject() { ++objectRef; } executed 197626 times by 25 tests: end of block Executed by:
| 197626 |
54 | bool releaseObject() { return executed 128450 times by 25 tests: --objectRef == 0 && !(groups & Compositor::PersistedFlag);return --objectRef == 0 && !(groups & Compositor::PersistedFlag); Executed by:
executed 128450 times by 25 tests: }return --objectRef == 0 && !(groups & Compositor::PersistedFlag); Executed by:
| 128450 |
55 | bool isObjectReferenced() const { return executed 88373 times by 25 tests: objectRef != 0 || (groups & Compositor::PersistedFlag);return objectRef != 0 || (groups & Compositor::PersistedFlag); Executed by:
executed 88373 times by 25 tests: }return objectRef != 0 || (groups & Compositor::PersistedFlag); Executed by:
| 88373 |
56 | - | |
57 | bool isReferenced() const { | - |
58 | return executed 128503 times by 24 tests: scriptRefreturn scriptRef || incubationTask || ((groups & Compositor::UnresolvedFlag) && (groups & Compositor::GroupMask)); Executed by:
executed 128503 times by 24 tests: return scriptRef || incubationTask || ((groups & Compositor::UnresolvedFlag) && (groups & Compositor::GroupMask)); Executed by:
| 128503 |
59 | || incubationTask executed 128503 times by 24 tests: return scriptRef || incubationTask || ((groups & Compositor::UnresolvedFlag) && (groups & Compositor::GroupMask)); Executed by:
| 128503 |
60 | || ((groups & Compositor::UnresolvedFlag) && (groups & Compositor::GroupMask)); executed 128503 times by 24 tests: return scriptRef || incubationTask || ((groups & Compositor::UnresolvedFlag) && (groups & Compositor::GroupMask)); Executed by:
| 128503 |
61 | } | - |
62 | - | |
63 | void Dispose(); | - |
64 | - | |
65 | QObject *modelObject() { return executed 12494 times by 7 tests: this;return this; Executed by:
executed 12494 times by 7 tests: }return this; Executed by:
| 12494 |
66 | - | |
67 | void destroyObject(); | - |
68 | - | |
69 | static QQmlDelegateModelItem *dataForObject(QObject *object); | - |
70 | - | |
71 | int groupIndex(Compositor::Group group); | - |
72 | - | |
73 | int modelIndex() const { return executed 1401507 times by 17 tests: index;return index; Executed by:
executed 1401507 times by 17 tests: }return index; Executed by:
| 1401507 |
74 | virtual void setModelIndex(int idx); | - |
75 | - | |
76 | virtual QV4::ReturnedValue get() { return executed 96 times by 1 test: QV4::QObjectWrapper::wrap(v4, this);return QV4::QObjectWrapper::wrap(v4, this); Executed by:
executed 96 times by 1 test: }return QV4::QObjectWrapper::wrap(v4, this); Executed by:
| 96 |
77 | - | |
78 | virtual void setValue(const QString &role, const QVariant &value) { (void)role;; (void)value;; } never executed: end of block | 0 |
79 | virtual bool resolveIndex(const QQmlAdaptorModel &, int) { return never executed: false;return false; never executed: }return false; | 0 |
80 | - | |
81 | static QV4::ReturnedValue get_model(const QV4::FunctionObject *, const QV4::Value *thisObject, const QV4::Value *argv, int argc); | - |
82 | static QV4::ReturnedValue get_groups(const QV4::FunctionObject *, const QV4::Value *thisObject, const QV4::Value *argv, int argc); | - |
83 | static QV4::ReturnedValue set_groups(const QV4::FunctionObject *, const QV4::Value *thisObject, const QV4::Value *argv, int argc); | - |
84 | static QV4::ReturnedValue get_member(QQmlDelegateModelItem *thisItem, uint flag, const QV4::Value &); | - |
85 | static QV4::ReturnedValue set_member(QQmlDelegateModelItem *thisItem, uint flag, const QV4::Value &arg); | - |
86 | static QV4::ReturnedValue get_index(QQmlDelegateModelItem *thisItem, uint flag, const QV4::Value &arg); | - |
87 | - | |
88 | QV4::ExecutionEngine *v4; | - |
89 | QQmlDelegateModelItemMetaType * const metaType; | - |
90 | QQmlContextDataRef contextData; | - |
91 | QPointer<QObject> object; | - |
92 | QPointer<QQmlDelegateModelAttached> attached; | - |
93 | QQDMIncubationTask *incubationTask; | - |
94 | int objectRef; | - |
95 | int scriptRef; | - |
96 | int groups; | - |
97 | int index; | - |
98 | - | |
99 | public : | - |
100 | void modelIndexChanged(); | - |
101 | void rowChanged(); | - |
102 | void columnChanged(); | - |
103 | - | |
104 | protected: | - |
105 | void objectDestroyed(QObject *); | - |
106 | int row; | - |
107 | int column; | - |
108 | }; | - |
109 | - | |
110 | namespace QV4 { | - |
111 | namespace Heap { | - |
112 | struct QQmlDelegateModelItemObject : Object { | - |
113 | inline void init(QQmlDelegateModelItem *item); | - |
114 | void destroy(); | - |
115 | QQmlDelegateModelItem *item; | - |
116 | }; | - |
117 | - | |
118 | } | - |
119 | } | - |
120 | - | |
121 | struct QQmlDelegateModelItemObject : QV4::Object | - |
122 | { | - |
123 | private: QQmlDelegateModelItemObject() = delete; QQmlDelegateModelItemObject(const QQmlDelegateModelItemObject &) = delete; QQmlDelegateModelItemObject &operator=(const QQmlDelegateModelItemObject &) = delete; public: template <typename Type> inline void qt_check_for_QMANAGED_macro(const Type *_q_argument) const { int i = qYouForgotTheQ_MANAGED_Macro(this, _q_argument); i = i + 1; } executed 32106 times by 2 tests: typedef QV4::Heap::QQmlDelegateModelItemObject Data; typedef QV4::Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 128004 times by 2 tests: &static_vtbl;return &static_vtbl; Executed by:
executed 128004 times by 2 tests: } void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }return &static_vtbl; Executed by:
never executed: QV4::Heap::QQmlDelegateModelItemObject *d_unchecked() const { returnend of block executed 115950 times by 2 tests: static_cast<QV4::Heap::QQmlDelegateModelItemObject *>(m());return static_cast<QV4::Heap::QQmlDelegateModelItemObject *>(m()); Executed by:
executed 115950 times by 2 tests: } QV4::Heap::QQmlDelegateModelItemObject *d() const { QV4::Heap::QQmlDelegateModelItemObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::QQmlDelegateModelItemObject *>(m()); Executed by:
executed 83984 times by 2 tests: dptr;return dptr; Executed by:
executed 83984 times by 2 tests: } static_assert(bool(std::is_trivial< QV4::Heap::QQmlDelegateModelItemObject >::value), "std::is_trivial< QV4::Heap::QQmlDelegateModelItemObject >::value");return dptr; Executed by:
| 0-128004 |
124 | static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); } executed 31966 times by 2 tests: end of block Executed by:
| 31966 |
125 | }; | - |
126 | - | |
127 | void QV4::Heap::QQmlDelegateModelItemObject::init(QQmlDelegateModelItem *item) | - |
128 | { | - |
129 | Object::init(); | - |
130 | this->item = item; | - |
131 | } executed 31966 times by 2 tests: end of block Executed by:
| 31966 |
132 | - | |
133 | - | |
134 | - | |
135 | class QQmlDelegateModelPrivate; | - |
136 | class QQDMIncubationTask : public QQmlIncubator | - |
137 | { | - |
138 | public: | - |
139 | QQDMIncubationTask(QQmlDelegateModelPrivate *l, IncubationMode mode) | - |
140 | : QQmlIncubator(mode) | - |
141 | , incubating(nullptr) | - |
142 | , vdm(l) {} executed 88407 times by 25 tests: end of block Executed by:
| 88407 |
143 | - | |
144 | void statusChanged(Status) override; | - |
145 | void setInitialState(QObject *) override; | - |
146 | - | |
147 | QQmlDelegateModelItem *incubating; | - |
148 | QQmlDelegateModelPrivate *vdm; | - |
149 | int index[QQmlListCompositor::MaximumGroupCount]; | - |
150 | }; | - |
151 | - | |
152 | - | |
153 | class QQmlDelegateModelGroupEmitter | - |
154 | { | - |
155 | public: | - |
156 | virtual ~QQmlDelegateModelGroupEmitter() {} | - |
157 | virtual void emitModelUpdated(const QQmlChangeSet &changeSet, bool reset) = 0; | - |
158 | virtual void createdPackage(int, QQuickPackage *) {} | - |
159 | virtual void initPackage(int, QQuickPackage *) {} | - |
160 | virtual void destroyingPackage(QQuickPackage *) {} | - |
161 | - | |
162 | QIntrusiveListNode emitterNode; | - |
163 | }; | - |
164 | - | |
165 | typedef QIntrusiveList<QQmlDelegateModelGroupEmitter, &QQmlDelegateModelGroupEmitter::emitterNode> QQmlDelegateModelGroupEmitterList; | - |
166 | - | |
167 | class QQmlDelegateModelGroupPrivate : public QObjectPrivate | - |
168 | { | - |
169 | public: | - |
170 | inline QQmlDelegateModelGroup* q_func() { return static_cast<QQmlDelegateModelGroup *>(q_ptr); } inline const QQmlDelegateModelGroup* q_func() const { return static_cast<const QQmlDelegateModelGroup *>(q_ptr); } friend class QQmlDelegateModelGroup; | - |
171 | - | |
172 | QQmlDelegateModelGroupPrivate() : group(Compositor::Cache), defaultInclude(false) {} executed 12322 times by 27 tests: end of block Executed by:
| 12322 |
173 | - | |
174 | static QQmlDelegateModelGroupPrivate *get(QQmlDelegateModelGroup *group) { | - |
175 | return executed 176548 times by 27 tests: static_cast<QQmlDelegateModelGroupPrivate *>(QObjectPrivate::get(group));return static_cast<QQmlDelegateModelGroupPrivate *>(QObjectPrivate::get(group)); Executed by:
executed 176548 times by 27 tests: }return static_cast<QQmlDelegateModelGroupPrivate *>(QObjectPrivate::get(group)); Executed by:
| 176548 |
176 | - | |
177 | void setModel(QQmlDelegateModel *model, Compositor::Group group); | - |
178 | bool isChangedConnected(); | - |
179 | void emitChanges(QV4::ExecutionEngine *engine); | - |
180 | void emitModelUpdated(bool reset); | - |
181 | - | |
182 | void createdPackage(int index, QQuickPackage *package); | - |
183 | void initPackage(int index, QQuickPackage *package); | - |
184 | void destroyingPackage(QQuickPackage *package); | - |
185 | - | |
186 | bool parseIndex(const QV4::Value &value, int *index, Compositor::Group *group) const; | - |
187 | bool parseGroupArgs( | - |
188 | QQmlV4Function *args, Compositor::Group *group, int *index, int *count, int *groups) const; | - |
189 | - | |
190 | Compositor::Group group; | - |
191 | QPointer<QQmlDelegateModel> model; | - |
192 | QQmlDelegateModelGroupEmitterList emitters; | - |
193 | QQmlChangeSet changeSet; | - |
194 | QString name; | - |
195 | bool defaultInclude; | - |
196 | }; | - |
197 | - | |
198 | class QQmlDelegateModelParts; | - |
199 | - | |
200 | class QQmlDelegateModelPrivate : public QObjectPrivate, public QQmlDelegateModelGroupEmitter | - |
201 | { | - |
202 | inline QQmlDelegateModel* q_func() { return static_cast<QQmlDelegateModel *>(q_ptr); } inline const QQmlDelegateModel* q_func() const { return static_cast<const QQmlDelegateModel *>(q_ptr); } friend class QQmlDelegateModel; | - |
203 | public: | - |
204 | QQmlDelegateModelPrivate(QQmlContext *); | - |
205 | ~QQmlDelegateModelPrivate(); | - |
206 | - | |
207 | static QQmlDelegateModelPrivate *get(QQmlDelegateModel *m) { | - |
208 | return executed 373692 times by 27 tests: static_cast<QQmlDelegateModelPrivate *>(QObjectPrivate::get(m));return static_cast<QQmlDelegateModelPrivate *>(QObjectPrivate::get(m)); Executed by:
executed 373692 times by 27 tests: return static_cast<QQmlDelegateModelPrivate *>(QObjectPrivate::get(m)); Executed by:
| 373692 |
209 | } | - |
210 | - | |
211 | void init(); | - |
212 | void connectModel(QQmlAdaptorModel *model); | - |
213 | - | |
214 | void requestMoreIfNecessary(); | - |
215 | QObject *object(Compositor::Group group, int index, QQmlIncubator::IncubationMode incubationMode); | - |
216 | QQmlDelegateModel::ReleaseFlags release(QObject *object); | - |
217 | QString stringValue(Compositor::Group group, int index, const QString &name); | - |
218 | void emitCreatedPackage(QQDMIncubationTask *incubationTask, QQuickPackage *package); | - |
219 | void emitInitPackage(QQDMIncubationTask *incubationTask, QQuickPackage *package); | - |
220 | void emitCreatedItem(QQDMIncubationTask *incubationTask, QObject *item) { | - |
221 | q_func()->createdItem(incubationTask->index[m_compositorGroup], item); } executed 83359 times by 25 tests: end of block Executed by:
| 83359 |
222 | void emitInitItem(QQDMIncubationTask *incubationTask, QObject *item) { | - |
223 | q_func()->initItem(incubationTask->index[m_compositorGroup], item); } executed 83359 times by 25 tests: end of block Executed by:
| 83359 |
224 | void emitDestroyingPackage(QQuickPackage *package); | - |
225 | void emitDestroyingItem(QObject *item) { q_func()->destroyingItem(item); } executed 22297 times by 12 tests: end of block Executed by:
| 22297 |
226 | void addCacheItem(QQmlDelegateModelItem *item, Compositor::iterator it); | - |
227 | void removeCacheItem(QQmlDelegateModelItem *cacheItem); | - |
228 | - | |
229 | void updateFilterGroup(); | - |
230 | - | |
231 | void addGroups(Compositor::iterator from, int count, Compositor::Group group, int groupFlags); | - |
232 | void removeGroups(Compositor::iterator from, int count, Compositor::Group group, int groupFlags); | - |
233 | void setGroups(Compositor::iterator from, int count, Compositor::Group group, int groupFlags); | - |
234 | - | |
235 | void itemsInserted( | - |
236 | const QVector<Compositor::Insert> &inserts, | - |
237 | QVarLengthArray<QVector<QQmlChangeSet::Change>, Compositor::MaximumGroupCount> *translatedInserts, | - |
238 | QHash<int, QList<QQmlDelegateModelItem *> > *movedItems = nullptr); | - |
239 | void itemsInserted(const QVector<Compositor::Insert> &inserts); | - |
240 | void itemsRemoved( | - |
241 | const QVector<Compositor::Remove> &removes, | - |
242 | QVarLengthArray<QVector<QQmlChangeSet::Change>, Compositor::MaximumGroupCount> *translatedRemoves, | - |
243 | QHash<int, QList<QQmlDelegateModelItem *> > *movedItems = nullptr); | - |
244 | void itemsRemoved(const QVector<Compositor::Remove> &removes); | - |
245 | void itemsMoved( | - |
246 | const QVector<Compositor::Remove> &removes, const QVector<Compositor::Insert> &inserts); | - |
247 | void itemsChanged(const QVector<Compositor::Change> &changes); | - |
248 | void emitChanges(); | - |
249 | void emitModelUpdated(const QQmlChangeSet &changeSet, bool reset) override; | - |
250 | - | |
251 | bool insert(Compositor::insert_iterator &before, const QV4::Value &object, int groups); | - |
252 | - | |
253 | int adaptorModelCount() const; | - |
254 | - | |
255 | static void group_append(QQmlListProperty<QQmlDelegateModelGroup> *property, QQmlDelegateModelGroup *group); | - |
256 | static int group_count(QQmlListProperty<QQmlDelegateModelGroup> *property); | - |
257 | static QQmlDelegateModelGroup *group_at(QQmlListProperty<QQmlDelegateModelGroup> *property, int index); | - |
258 | - | |
259 | void releaseIncubator(QQDMIncubationTask *incubationTask); | - |
260 | void incubatorStatusChanged(QQDMIncubationTask *incubationTask, QQmlIncubator::Status status); | - |
261 | void setInitialState(QQDMIncubationTask *incubationTask, QObject *o); | - |
262 | - | |
263 | QQmlAdaptorModel m_adaptorModel; | - |
264 | QQmlListCompositor m_compositor; | - |
265 | QQmlStrongJSQObjectReference<QQmlComponent> m_delegate; | - |
266 | QQmlDelegateModelItemMetaType *m_cacheMetaType; | - |
267 | QPointer<QQmlContext> m_context; | - |
268 | QQmlDelegateModelParts *m_parts; | - |
269 | QQmlDelegateModelGroupEmitterList m_pendingParts; | - |
270 | - | |
271 | QList<QQmlDelegateModelItem *> m_cache; | - |
272 | QList<QQDMIncubationTask *> m_finishedIncubating; | - |
273 | QList<QByteArray> m_watchedRoles; | - |
274 | - | |
275 | QString m_filterGroup; | - |
276 | - | |
277 | int m_count; | - |
278 | int m_groupCount; | - |
279 | - | |
280 | QQmlListCompositor::Group m_compositorGroup; | - |
281 | bool m_complete : 1; | - |
282 | bool m_delegateValidated : 1; | - |
283 | bool m_reset : 1; | - |
284 | bool m_transaction : 1; | - |
285 | bool m_incubatorCleanupScheduled : 1; | - |
286 | bool m_waitingToFetchMore : 1; | - |
287 | bool m_useFirstColumnOnly : 1; | - |
288 | - | |
289 | union { | - |
290 | struct { | - |
291 | QQmlDelegateModelGroup *m_cacheItems; | - |
292 | QQmlDelegateModelGroup *m_items; | - |
293 | QQmlDelegateModelGroup *m_persistedItems; | - |
294 | }; | - |
295 | QQmlDelegateModelGroup *m_groups[Compositor::MaximumGroupCount]; | - |
296 | }; | - |
297 | }; | - |
298 | - | |
299 | class QQmlPartsModel : public QQmlInstanceModel, public QQmlDelegateModelGroupEmitter | - |
300 | { | - |
301 | public: | - |
302 | #pragma GCC diagnostic push | - |
303 | - | |
304 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
305 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
306 | #pragma GCC diagnostic ignored "-Wattributes" | - |
307 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
308 | #pragma GCC diagnostic pop | - |
309 | struct QPrivateSignal {}; | - |
310 | - | |
311 | public: | - |
312 | QQmlPartsModel(QQmlDelegateModel *model, const QString &part, QObject *parent = nullptr); | - |
313 | ~QQmlPartsModel(); | - |
314 | - | |
315 | QString filterGroup() const; | - |
316 | void setFilterGroup(const QString &group); | - |
317 | void resetFilterGroup(); | - |
318 | void updateFilterGroup(); | - |
319 | void updateFilterGroup(Compositor::Group group, const QQmlChangeSet &changeSet); | - |
320 | - | |
321 | int count() const override; | - |
322 | bool isValid() const override; | - |
323 | QObject *object(int index, QQmlIncubator::IncubationMode incubationMode = QQmlIncubator::AsynchronousIfNested) override; | - |
324 | ReleaseFlags release(QObject *item) override; | - |
325 | QString stringValue(int index, const QString &role) override; | - |
326 | QList<QByteArray> watchedRoles() const { return executed 146 times by 5 tests: m_watchedRoles;return m_watchedRoles; Executed by:
executed 146 times by 5 tests: }return m_watchedRoles; Executed by:
| 146 |
327 | void setWatchedRoles(const QList<QByteArray> &roles) override; | - |
328 | QQmlIncubator::Status incubationStatus(int index) override; | - |
329 | - | |
330 | int indexOf(QObject *item, QObject *objectContext) const override; | - |
331 | - | |
332 | void emitModelUpdated(const QQmlChangeSet &changeSet, bool reset) override; | - |
333 | - | |
334 | void createdPackage(int index, QQuickPackage *package) override; | - |
335 | void initPackage(int index, QQuickPackage *package) override; | - |
336 | void destroyingPackage(QQuickPackage *package) override; | - |
337 | - | |
338 | public : | - |
339 | void filterGroupChanged(); | - |
340 | - | |
341 | private: | - |
342 | QQmlDelegateModel *m_model; | - |
343 | QHash<QObject *, QQuickPackage *> m_packaged; | - |
344 | QString m_part; | - |
345 | QString m_filterGroup; | - |
346 | QList<QByteArray> m_watchedRoles; | - |
347 | QVector<int> m_pendingPackageInitializations; | - |
348 | Compositor::Group m_compositorGroup; | - |
349 | bool m_inheritGroup; | - |
350 | bool m_modelUpdatePending = true; | - |
351 | }; | - |
352 | - | |
353 | class QMetaPropertyBuilder; | - |
354 | - | |
355 | class QQmlDelegateModelPartsMetaObject : public QQmlOpenMetaObject | - |
356 | { | - |
357 | public: | - |
358 | QQmlDelegateModelPartsMetaObject(QObject *parent) | - |
359 | : QQmlOpenMetaObject(parent) {} executed 352 times by 6 tests: end of block Executed by:
| 352 |
360 | - | |
361 | void propertyCreated(int, QMetaPropertyBuilder &) override; | - |
362 | QVariant initialValue(int) override; | - |
363 | }; | - |
364 | - | |
365 | class QQmlDelegateModelParts : public QObject | - |
366 | { | - |
367 | public: | - |
368 | #pragma GCC diagnostic push | - |
369 | - | |
370 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
371 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
372 | #pragma GCC diagnostic ignored "-Wattributes" | - |
373 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
374 | #pragma GCC diagnostic pop | - |
375 | struct QPrivateSignal {}; | - |
376 | public: | - |
377 | QQmlDelegateModelParts(QQmlDelegateModel *parent); | - |
378 | - | |
379 | QQmlDelegateModel *model; | - |
380 | QList<QQmlPartsModel *> models; | - |
381 | }; | - |
382 | - | |
383 | class QQmlDelegateModelAttachedMetaObject : public QAbstractDynamicMetaObject, public QQmlRefCount | - |
384 | { | - |
385 | public: | - |
386 | QQmlDelegateModelAttachedMetaObject( | - |
387 | QQmlDelegateModelItemMetaType *metaType, QMetaObject *metaObject); | - |
388 | ~QQmlDelegateModelAttachedMetaObject(); | - |
389 | - | |
390 | void objectDestroyed(QObject *) override; | - |
391 | int metaCall(QObject *, QMetaObject::Call, int _id, void **) override; | - |
392 | - | |
393 | private: | - |
394 | QQmlDelegateModelItemMetaType * const metaType; | - |
395 | QMetaObject * const metaObject; | - |
396 | const int memberPropertyOffset; | - |
397 | const int indexPropertyOffset; | - |
398 | }; | - |
399 | - | |
400 | - | |
Switch to Source code | Preprocessed file |