Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickitem_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | - | |||||||||||||
6 | - | |||||||||||||
7 | - | |||||||||||||
8 | - | |||||||||||||
9 | - | |||||||||||||
10 | - | |||||||||||||
11 | - | |||||||||||||
12 | - | |||||||||||||
13 | - | |||||||||||||
14 | class QNetworkReply; | - | ||||||||||||
15 | class QQuickItemKeyFilter; | - | ||||||||||||
16 | class QQuickLayoutMirroringAttached; | - | ||||||||||||
17 | class QQuickEnterKeyAttached; | - | ||||||||||||
18 | class QQuickScreenAttached; | - | ||||||||||||
19 | class QQuickPointerHandler; | - | ||||||||||||
20 | - | |||||||||||||
21 | class QQuickContents : public QQuickItemChangeListener | - | ||||||||||||
22 | { | - | ||||||||||||
23 | public: | - | ||||||||||||
24 | QQuickContents(QQuickItem *item); | - | ||||||||||||
25 | ~QQuickContents() override; | - | ||||||||||||
26 | - | |||||||||||||
27 | QRectF rectF() const { return executed 726 times by 5 tests: m_contents;return m_contents; Executed by:
executed 726 times by 5 tests: }return m_contents; Executed by:
| 726 | ||||||||||||
28 | - | |||||||||||||
29 | inline void calcGeometry(QQuickItem *changed = nullptr); | - | ||||||||||||
30 | void complete(); | - | ||||||||||||
31 | - | |||||||||||||
32 | protected: | - | ||||||||||||
33 | void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &) override; | - | ||||||||||||
34 | void itemDestroyed(QQuickItem *item) override; | - | ||||||||||||
35 | void itemChildAdded(QQuickItem *, QQuickItem *) override; | - | ||||||||||||
36 | void itemChildRemoved(QQuickItem *, QQuickItem *) override; | - | ||||||||||||
37 | - | |||||||||||||
38 | - | |||||||||||||
39 | private: | - | ||||||||||||
40 | bool calcHeight(QQuickItem *changed = nullptr); | - | ||||||||||||
41 | bool calcWidth(QQuickItem *changed = nullptr); | - | ||||||||||||
42 | void updateRect(); | - | ||||||||||||
43 | - | |||||||||||||
44 | QQuickItem *m_item; | - | ||||||||||||
45 | QRectF m_contents; | - | ||||||||||||
46 | }; | - | ||||||||||||
47 | - | |||||||||||||
48 | void QQuickContents::calcGeometry(QQuickItem *changed) | - | ||||||||||||
49 | { | - | ||||||||||||
50 | bool wChanged = calcWidth(changed); | - | ||||||||||||
51 | bool hChanged = calcHeight(changed); | - | ||||||||||||
52 | if (wChanged
| 2-158 | ||||||||||||
53 | updateRect(); executed 160 times by 3 tests: updateRect(); Executed by:
| 160 | ||||||||||||
54 | } executed 206 times by 5 tests: end of block Executed by:
| 206 | ||||||||||||
55 | - | |||||||||||||
56 | class QQuickTransformPrivate : public QObjectPrivate | - | ||||||||||||
57 | { | - | ||||||||||||
58 | inline QQuickTransform* q_func() { return static_cast<QQuickTransform *>(q_ptr); } inline const QQuickTransform* q_func() const { return static_cast<const QQuickTransform *>(q_ptr); } friend class QQuickTransform; | - | ||||||||||||
59 | public: | - | ||||||||||||
60 | static QQuickTransformPrivate* get(QQuickTransform *transform) { return executed 852 times by 4 tests: transform->d_func();return transform->d_func(); Executed by:
executed 852 times by 4 tests: }return transform->d_func(); Executed by:
| 852 | ||||||||||||
61 | - | |||||||||||||
62 | QQuickTransformPrivate(); | - | ||||||||||||
63 | - | |||||||||||||
64 | QList<QQuickItem *> items; | - | ||||||||||||
65 | }; | - | ||||||||||||
66 | - | |||||||||||||
67 | - | |||||||||||||
68 | - | |||||||||||||
69 | class QQuickItemLayer : public QObject, public QQuickItemChangeListener | - | ||||||||||||
70 | { | - | ||||||||||||
71 | public: | - | ||||||||||||
72 | #pragma GCC diagnostic push | - | ||||||||||||
73 | - | |||||||||||||
74 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||||||||
75 | 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: | - | ||||||||||||
76 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||||||||
77 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||||||||
78 | #pragma GCC diagnostic pop | - | ||||||||||||
79 | struct QPrivateSignal {}; | - | ||||||||||||
80 | - | |||||||||||||
81 | - | |||||||||||||
82 | - | |||||||||||||
83 | - | |||||||||||||
84 | - | |||||||||||||
85 | - | |||||||||||||
86 | - | |||||||||||||
87 | - | |||||||||||||
88 | - | |||||||||||||
89 | - | |||||||||||||
90 | - | |||||||||||||
91 | - | |||||||||||||
92 | public: | - | ||||||||||||
93 | QQuickItemLayer(QQuickItem *item); | - | ||||||||||||
94 | ~QQuickItemLayer() override; | - | ||||||||||||
95 | - | |||||||||||||
96 | void classBegin(); | - | ||||||||||||
97 | void componentComplete(); | - | ||||||||||||
98 | - | |||||||||||||
99 | bool enabled() const { return executed 4 times by 1 test: m_enabled;return m_enabled; Executed by:
executed 4 times by 1 test: }return m_enabled; Executed by:
| 4 | ||||||||||||
100 | void setEnabled(bool enabled); | - | ||||||||||||
101 | - | |||||||||||||
102 | bool mipmap() const { return executed 4 times by 1 test: m_mipmap;return m_mipmap; Executed by:
executed 4 times by 1 test: }return m_mipmap; Executed by:
| 4 | ||||||||||||
103 | void setMipmap(bool mipmap); | - | ||||||||||||
104 | - | |||||||||||||
105 | bool smooth() const { return executed 4 times by 1 test: m_smooth;return m_smooth; Executed by:
executed 4 times by 1 test: }return m_smooth; Executed by:
| 4 | ||||||||||||
106 | void setSmooth(bool s); | - | ||||||||||||
107 | - | |||||||||||||
108 | QSize size() const { return executed 8 times by 1 test: m_size;return m_size; Executed by:
executed 8 times by 1 test: }return m_size; Executed by:
| 8 | ||||||||||||
109 | void setSize(const QSize &size); | - | ||||||||||||
110 | - | |||||||||||||
111 | QQuickShaderEffectSource::Format format() const { return executed 4 times by 1 test: m_format;return m_format; Executed by:
executed 4 times by 1 test: }return m_format; Executed by:
| 4 | ||||||||||||
112 | void setFormat(QQuickShaderEffectSource::Format f); | - | ||||||||||||
113 | - | |||||||||||||
114 | QRectF sourceRect() const { return executed 8 times by 1 test: m_sourceRect;return m_sourceRect; Executed by:
executed 8 times by 1 test: }return m_sourceRect; Executed by:
| 8 | ||||||||||||
115 | void setSourceRect(const QRectF &sourceRect); | - | ||||||||||||
116 | - | |||||||||||||
117 | QQuickShaderEffectSource::WrapMode wrapMode() const { return executed 4 times by 1 test: m_wrapMode;return m_wrapMode; Executed by:
executed 4 times by 1 test: }return m_wrapMode; Executed by:
| 4 | ||||||||||||
118 | void setWrapMode(QQuickShaderEffectSource::WrapMode mode); | - | ||||||||||||
119 | - | |||||||||||||
120 | QByteArray name() const { return executed 4 times by 1 test: m_name;return m_name; Executed by:
executed 4 times by 1 test: }return m_name; Executed by:
| 4 | ||||||||||||
121 | void setName(const QByteArray &name); | - | ||||||||||||
122 | - | |||||||||||||
123 | QQmlComponent *effect() const { return executed 4 times by 1 test: m_effectComponent;return m_effectComponent; Executed by:
executed 4 times by 1 test: }return m_effectComponent; Executed by:
| 4 | ||||||||||||
124 | void setEffect(QQmlComponent *effect); | - | ||||||||||||
125 | - | |||||||||||||
126 | QQuickShaderEffectSource::TextureMirroring textureMirroring() const { return executed 4 times by 1 test: m_textureMirroring;return m_textureMirroring; Executed by:
executed 4 times by 1 test: }return m_textureMirroring; Executed by:
| 4 | ||||||||||||
127 | void setTextureMirroring(QQuickShaderEffectSource::TextureMirroring mirroring); | - | ||||||||||||
128 | - | |||||||||||||
129 | int samples() const { return executed 4 times by 1 test: m_samples;return m_samples; Executed by:
executed 4 times by 1 test: }return m_samples; Executed by:
| 4 | ||||||||||||
130 | void setSamples(int count); | - | ||||||||||||
131 | - | |||||||||||||
132 | QQuickShaderEffectSource *effectSource() const { return executed 48 times by 2 tests: m_effectSource;return m_effectSource; Executed by:
executed 48 times by 2 tests: }return m_effectSource; Executed by:
| 48 | ||||||||||||
133 | - | |||||||||||||
134 | void itemGeometryChanged(QQuickItem *, QQuickGeometryChange, const QRectF &) override; | - | ||||||||||||
135 | void itemOpacityChanged(QQuickItem *) override; | - | ||||||||||||
136 | void itemParentChanged(QQuickItem *, QQuickItem *) override; | - | ||||||||||||
137 | void itemSiblingOrderChanged(QQuickItem *) override; | - | ||||||||||||
138 | void itemVisibilityChanged(QQuickItem *) override; | - | ||||||||||||
139 | - | |||||||||||||
140 | void updateMatrix(); | - | ||||||||||||
141 | void updateGeometry(); | - | ||||||||||||
142 | void updateOpacity(); | - | ||||||||||||
143 | void updateZ(); | - | ||||||||||||
144 | - | |||||||||||||
145 | public : | - | ||||||||||||
146 | void enabledChanged(bool enabled); | - | ||||||||||||
147 | void sizeChanged(const QSize &size); | - | ||||||||||||
148 | void mipmapChanged(bool mipmap); | - | ||||||||||||
149 | void wrapModeChanged(QQuickShaderEffectSource::WrapMode mode); | - | ||||||||||||
150 | void nameChanged(const QByteArray &name); | - | ||||||||||||
151 | void effectChanged(QQmlComponent *component); | - | ||||||||||||
152 | void smoothChanged(bool smooth); | - | ||||||||||||
153 | void formatChanged(QQuickShaderEffectSource::Format format); | - | ||||||||||||
154 | void sourceRectChanged(const QRectF &sourceRect); | - | ||||||||||||
155 | void textureMirroringChanged(QQuickShaderEffectSource::TextureMirroring mirroring); | - | ||||||||||||
156 | void samplesChanged(int count); | - | ||||||||||||
157 | - | |||||||||||||
158 | private: | - | ||||||||||||
159 | friend class QQuickTransformAnimatorJob; | - | ||||||||||||
160 | friend class QQuickOpacityAnimatorJob; | - | ||||||||||||
161 | - | |||||||||||||
162 | void activate(); | - | ||||||||||||
163 | void deactivate(); | - | ||||||||||||
164 | void activateEffect(); | - | ||||||||||||
165 | void deactivateEffect(); | - | ||||||||||||
166 | - | |||||||||||||
167 | QQuickItem *m_item; | - | ||||||||||||
168 | bool m_enabled; | - | ||||||||||||
169 | bool m_mipmap; | - | ||||||||||||
170 | bool m_smooth; | - | ||||||||||||
171 | bool m_componentComplete; | - | ||||||||||||
172 | QQuickShaderEffectSource::WrapMode m_wrapMode; | - | ||||||||||||
173 | QQuickShaderEffectSource::Format m_format; | - | ||||||||||||
174 | QSize m_size; | - | ||||||||||||
175 | QRectF m_sourceRect; | - | ||||||||||||
176 | QByteArray m_name; | - | ||||||||||||
177 | QQmlComponent *m_effectComponent; | - | ||||||||||||
178 | QQuickItem *m_effect; | - | ||||||||||||
179 | QQuickShaderEffectSource *m_effectSource; | - | ||||||||||||
180 | QQuickShaderEffectSource::TextureMirroring m_textureMirroring; | - | ||||||||||||
181 | int m_samples; | - | ||||||||||||
182 | }; | - | ||||||||||||
183 | - | |||||||||||||
184 | - | |||||||||||||
185 | - | |||||||||||||
186 | class __attribute__((visibility("default"))) QQuickItemPrivate : public QObjectPrivate | - | ||||||||||||
187 | { | - | ||||||||||||
188 | inline QQuickItem* q_func() { return static_cast<QQuickItem *>(q_ptr); } inline const QQuickItem* q_func() const { return static_cast<const QQuickItem *>(q_ptr); } friend class QQuickItem; | - | ||||||||||||
189 | - | |||||||||||||
190 | public: | - | ||||||||||||
191 | static QQuickItemPrivate* get(QQuickItem *item) { return executed 12169416 times by 121 tests: item->d_func();return item->d_func(); Executed by:
executed 12169416 times by 121 tests: }return item->d_func(); Executed by:
| 12169416 | ||||||||||||
192 | static const QQuickItemPrivate* get(const QQuickItem *item) { return executed 236852 times by 79 tests: item->d_func();return item->d_func(); Executed by:
executed 236852 times by 79 tests: }return item->d_func(); Executed by:
| 236852 | ||||||||||||
193 | - | |||||||||||||
194 | QQuickItemPrivate(); | - | ||||||||||||
195 | ~QQuickItemPrivate() override; | - | ||||||||||||
196 | void init(QQuickItem *parent); | - | ||||||||||||
197 | - | |||||||||||||
198 | QQmlListProperty<QObject> data(); | - | ||||||||||||
199 | QQmlListProperty<QObject> resources(); | - | ||||||||||||
200 | QQmlListProperty<QQuickItem> children(); | - | ||||||||||||
201 | QQmlListProperty<QQuickItem> visibleChildren(); | - | ||||||||||||
202 | - | |||||||||||||
203 | QQmlListProperty<QQuickState> states(); | - | ||||||||||||
204 | QQmlListProperty<QQuickTransition> transitions(); | - | ||||||||||||
205 | - | |||||||||||||
206 | QString state() const; | - | ||||||||||||
207 | void setState(const QString &); | - | ||||||||||||
208 | - | |||||||||||||
209 | QQuickAnchorLine left() const; | - | ||||||||||||
210 | QQuickAnchorLine right() const; | - | ||||||||||||
211 | QQuickAnchorLine horizontalCenter() const; | - | ||||||||||||
212 | QQuickAnchorLine top() const; | - | ||||||||||||
213 | QQuickAnchorLine bottom() const; | - | ||||||||||||
214 | QQuickAnchorLine verticalCenter() const; | - | ||||||||||||
215 | QQuickAnchorLine baseline() const; | - | ||||||||||||
216 | - | |||||||||||||
217 | QQuickItemLayer *layer() const; | - | ||||||||||||
218 | - | |||||||||||||
219 | bool hasPointerHandlers() const; | - | ||||||||||||
220 | bool hasHoverHandlers() const; | - | ||||||||||||
221 | - | |||||||||||||
222 | - | |||||||||||||
223 | static void data_append(QQmlListProperty<QObject> *, QObject *); | - | ||||||||||||
224 | static int data_count(QQmlListProperty<QObject> *); | - | ||||||||||||
225 | static QObject *data_at(QQmlListProperty<QObject> *, int); | - | ||||||||||||
226 | static void data_clear(QQmlListProperty<QObject> *); | - | ||||||||||||
227 | - | |||||||||||||
228 | - | |||||||||||||
229 | static QObject *resources_at(QQmlListProperty<QObject> *, int); | - | ||||||||||||
230 | static void resources_append(QQmlListProperty<QObject> *, QObject *); | - | ||||||||||||
231 | static int resources_count(QQmlListProperty<QObject> *); | - | ||||||||||||
232 | static void resources_clear(QQmlListProperty<QObject> *); | - | ||||||||||||
233 | - | |||||||||||||
234 | - | |||||||||||||
235 | static void children_append(QQmlListProperty<QQuickItem> *, QQuickItem *); | - | ||||||||||||
236 | static int children_count(QQmlListProperty<QQuickItem> *); | - | ||||||||||||
237 | static QQuickItem *children_at(QQmlListProperty<QQuickItem> *, int); | - | ||||||||||||
238 | static void children_clear(QQmlListProperty<QQuickItem> *); | - | ||||||||||||
239 | - | |||||||||||||
240 | - | |||||||||||||
241 | static void visibleChildren_append(QQmlListProperty<QQuickItem> *prop, QQuickItem *o); | - | ||||||||||||
242 | static int visibleChildren_count(QQmlListProperty<QQuickItem> *prop); | - | ||||||||||||
243 | static QQuickItem *visibleChildren_at(QQmlListProperty<QQuickItem> *prop, int index); | - | ||||||||||||
244 | - | |||||||||||||
245 | - | |||||||||||||
246 | static int transform_count(QQmlListProperty<QQuickTransform> *list); | - | ||||||||||||
247 | static void transform_append(QQmlListProperty<QQuickTransform> *list, QQuickTransform *); | - | ||||||||||||
248 | static QQuickTransform *transform_at(QQmlListProperty<QQuickTransform> *list, int); | - | ||||||||||||
249 | static void transform_clear(QQmlListProperty<QQuickTransform> *list); | - | ||||||||||||
250 | - | |||||||||||||
251 | void _q_resourceObjectDeleted(QObject *); | - | ||||||||||||
252 | quint64 _q_createJSWrapper(QV4::ExecutionEngine *engine); | - | ||||||||||||
253 | - | |||||||||||||
254 | enum ChangeType { | - | ||||||||||||
255 | Geometry = 0x01, | - | ||||||||||||
256 | SiblingOrder = 0x02, | - | ||||||||||||
257 | Visibility = 0x04, | - | ||||||||||||
258 | Opacity = 0x08, | - | ||||||||||||
259 | Destroyed = 0x10, | - | ||||||||||||
260 | Parent = 0x20, | - | ||||||||||||
261 | Children = 0x40, | - | ||||||||||||
262 | Rotation = 0x80, | - | ||||||||||||
263 | ImplicitWidth = 0x100, | - | ||||||||||||
264 | ImplicitHeight = 0x200, | - | ||||||||||||
265 | Enabled = 0x400, | - | ||||||||||||
266 | }; | - | ||||||||||||
267 | - | |||||||||||||
268 | typedef QFlags<ChangeType> ChangeTypes; | - | ||||||||||||
269 | - | |||||||||||||
270 | struct ChangeListener { | - | ||||||||||||
271 | ChangeListener(QQuickItemChangeListener *l = nullptr, QQuickItemPrivate::ChangeTypes t = nullptr) : listener(l), types(t), gTypes(QQuickGeometryChange::All) {} executed 270500 times by 94 tests: end of block Executed by:
| 270500 | ||||||||||||
272 | ChangeListener(QQuickItemChangeListener *l, QQuickGeometryChange gt) : listener(l), types(Geometry), gTypes(gt) {} executed 13500 times by 76 tests: end of block Executed by:
| 13500 | ||||||||||||
273 | QQuickItemChangeListener *listener; | - | ||||||||||||
274 | QQuickItemPrivate::ChangeTypes types; | - | ||||||||||||
275 | QQuickGeometryChange gTypes; | - | ||||||||||||
276 | bool operator==(const ChangeListener &other) const { return executed 141562 times by 52 tests: listener == other.listener && types == other.types;return listener == other.listener && types == other.types; Executed by:
executed 141562 times by 52 tests: }return listener == other.listener && types == other.types; Executed by:
| 141562 | ||||||||||||
277 | }; | - | ||||||||||||
278 | - | |||||||||||||
279 | struct ExtraData { | - | ||||||||||||
280 | ExtraData(); | - | ||||||||||||
281 | - | |||||||||||||
282 | qreal z; | - | ||||||||||||
283 | qreal scale; | - | ||||||||||||
284 | qreal rotation; | - | ||||||||||||
285 | qreal opacity; | - | ||||||||||||
286 | - | |||||||||||||
287 | QQuickContents *contents; | - | ||||||||||||
288 | QQuickScreenAttached *screenAttached; | - | ||||||||||||
289 | QQuickLayoutMirroringAttached* layoutDirectionAttached; | - | ||||||||||||
290 | QQuickEnterKeyAttached *enterKeyAttached; | - | ||||||||||||
291 | QQuickItemKeyFilter *keyHandler; | - | ||||||||||||
292 | QVector<QQuickPointerHandler *> pointerHandlers; | - | ||||||||||||
293 | - | |||||||||||||
294 | mutable QQuickItemLayer *layer; | - | ||||||||||||
295 | - | |||||||||||||
296 | - | |||||||||||||
297 | QCursor cursor; | - | ||||||||||||
298 | - | |||||||||||||
299 | QPointF userTransformOriginPoint; | - | ||||||||||||
300 | - | |||||||||||||
301 | - | |||||||||||||
302 | int effectRefCount; | - | ||||||||||||
303 | int hideRefCount; | - | ||||||||||||
304 | - | |||||||||||||
305 | int recursiveEffectRefCount; | - | ||||||||||||
306 | - | |||||||||||||
307 | QSGOpacityNode *opacityNode; | - | ||||||||||||
308 | QQuickDefaultClipNode *clipNode; | - | ||||||||||||
309 | QSGRootNode *rootNode; | - | ||||||||||||
310 | - | |||||||||||||
311 | - | |||||||||||||
312 | QMetaMethod maskContains; | - | ||||||||||||
313 | - | |||||||||||||
314 | QObjectList resourcesList; | - | ||||||||||||
315 | - | |||||||||||||
316 | - | |||||||||||||
317 | - | |||||||||||||
318 | - | |||||||||||||
319 | - | |||||||||||||
320 | Qt::MouseButtons acceptedMouseButtons; | - | ||||||||||||
321 | - | |||||||||||||
322 | QQuickItem::TransformOrigin origin:5; | - | ||||||||||||
323 | uint transparentForPositioner : 1; | - | ||||||||||||
324 | - | |||||||||||||
325 | - | |||||||||||||
326 | }; | - | ||||||||||||
327 | QLazilyAllocated<ExtraData> extra; | - | ||||||||||||
328 | - | |||||||||||||
329 | QPointer<QObject> mask; | - | ||||||||||||
330 | - | |||||||||||||
331 | virtual void registerAsContainmentMask(QQuickItem * , bool ) { } | - | ||||||||||||
332 | - | |||||||||||||
333 | QQuickAnchors *anchors() const; | - | ||||||||||||
334 | mutable QQuickAnchors *_anchors; | - | ||||||||||||
335 | - | |||||||||||||
336 | inline Qt::MouseButtons acceptedMouseButtons() const; | - | ||||||||||||
337 | - | |||||||||||||
338 | QVector<QQuickItemPrivate::ChangeListener> changeListeners; | - | ||||||||||||
339 | - | |||||||||||||
340 | void addItemChangeListener(QQuickItemChangeListener *listener, ChangeTypes types); | - | ||||||||||||
341 | void removeItemChangeListener(QQuickItemChangeListener *, ChangeTypes types); | - | ||||||||||||
342 | void updateOrAddGeometryChangeListener(QQuickItemChangeListener *listener, QQuickGeometryChange types); | - | ||||||||||||
343 | void updateOrRemoveGeometryChangeListener(QQuickItemChangeListener *listener, QQuickGeometryChange types); | - | ||||||||||||
344 | - | |||||||||||||
345 | QQuickStateGroup *_states(); | - | ||||||||||||
346 | QQuickStateGroup *_stateGroup; | - | ||||||||||||
347 | - | |||||||||||||
348 | inline QQuickItem::TransformOrigin origin() const; | - | ||||||||||||
349 | - | |||||||||||||
350 | - | |||||||||||||
351 | quint32 flags:5; | - | ||||||||||||
352 | bool widthValid:1; | - | ||||||||||||
353 | bool heightValid:1; | - | ||||||||||||
354 | bool componentComplete:1; | - | ||||||||||||
355 | bool keepMouse:1; | - | ||||||||||||
356 | bool keepTouch:1; | - | ||||||||||||
357 | bool hoverEnabled:1; | - | ||||||||||||
358 | bool smooth:1; | - | ||||||||||||
359 | bool antialiasing:1; | - | ||||||||||||
360 | bool focus:1; | - | ||||||||||||
361 | bool activeFocus:1; | - | ||||||||||||
362 | bool notifiedFocus:1; | - | ||||||||||||
363 | - | |||||||||||||
364 | bool notifiedActiveFocus:1; | - | ||||||||||||
365 | bool filtersChildMouseEvents:1; | - | ||||||||||||
366 | bool explicitVisible:1; | - | ||||||||||||
367 | bool effectiveVisible:1; | - | ||||||||||||
368 | bool explicitEnable:1; | - | ||||||||||||
369 | bool effectiveEnable:1; | - | ||||||||||||
370 | bool polishScheduled:1; | - | ||||||||||||
371 | bool inheritedLayoutMirror:1; | - | ||||||||||||
372 | bool effectiveLayoutMirror:1; | - | ||||||||||||
373 | bool isMirrorImplicit:1; | - | ||||||||||||
374 | bool inheritMirrorFromParent:1; | - | ||||||||||||
375 | bool inheritMirrorFromItem:1; | - | ||||||||||||
376 | bool isAccessible:1; | - | ||||||||||||
377 | bool culled:1; | - | ||||||||||||
378 | bool hasCursor:1; | - | ||||||||||||
379 | bool subtreeCursorEnabled:1; | - | ||||||||||||
380 | - | |||||||||||||
381 | bool subtreeHoverEnabled:1; | - | ||||||||||||
382 | bool activeFocusOnTab:1; | - | ||||||||||||
383 | bool implicitAntialiasing:1; | - | ||||||||||||
384 | bool antialiasingValid:1; | - | ||||||||||||
385 | - | |||||||||||||
386 | - | |||||||||||||
387 | - | |||||||||||||
388 | - | |||||||||||||
389 | - | |||||||||||||
390 | bool isTabFence:1; | - | ||||||||||||
391 | bool replayingPressEvent:1; | - | ||||||||||||
392 | bool touchEnabled:1; | - | ||||||||||||
393 | - | |||||||||||||
394 | enum DirtyType { | - | ||||||||||||
395 | TransformOrigin = 0x00000001, | - | ||||||||||||
396 | Transform = 0x00000002, | - | ||||||||||||
397 | BasicTransform = 0x00000004, | - | ||||||||||||
398 | Position = 0x00000008, | - | ||||||||||||
399 | Size = 0x00000010, | - | ||||||||||||
400 | - | |||||||||||||
401 | ZValue = 0x00000020, | - | ||||||||||||
402 | Content = 0x00000040, | - | ||||||||||||
403 | Smooth = 0x00000080, | - | ||||||||||||
404 | OpacityValue = 0x00000100, | - | ||||||||||||
405 | ChildrenChanged = 0x00000200, | - | ||||||||||||
406 | ChildrenStackingChanged = 0x00000400, | - | ||||||||||||
407 | ParentChanged = 0x00000800, | - | ||||||||||||
408 | - | |||||||||||||
409 | Clip = 0x00001000, | - | ||||||||||||
410 | Window = 0x00002000, | - | ||||||||||||
411 | - | |||||||||||||
412 | EffectReference = 0x00008000, | - | ||||||||||||
413 | Visible = 0x00010000, | - | ||||||||||||
414 | HideReference = 0x00020000, | - | ||||||||||||
415 | Antialiasing = 0x00040000, | - | ||||||||||||
416 | - | |||||||||||||
417 | - | |||||||||||||
418 | - | |||||||||||||
419 | TransformUpdateMask = TransformOrigin | Transform | BasicTransform | Position | | - | ||||||||||||
420 | Window, | - | ||||||||||||
421 | ComplexTransformUpdateMask = Transform | Window, | - | ||||||||||||
422 | ContentUpdateMask = Size | Content | Smooth | Window | Antialiasing, | - | ||||||||||||
423 | ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window | - | ||||||||||||
424 | }; | - | ||||||||||||
425 | - | |||||||||||||
426 | quint32 dirtyAttributes; | - | ||||||||||||
427 | QString dirtyToString() const; | - | ||||||||||||
428 | void dirty(DirtyType); | - | ||||||||||||
429 | void addToDirtyList(); | - | ||||||||||||
430 | void removeFromDirtyList(); | - | ||||||||||||
431 | QQuickItem *nextDirtyItem; | - | ||||||||||||
432 | QQuickItem**prevDirtyItem; | - | ||||||||||||
433 | - | |||||||||||||
434 | void setCulled(bool); | - | ||||||||||||
435 | - | |||||||||||||
436 | QQuickWindow *window; | - | ||||||||||||
437 | int windowRefCount; | - | ||||||||||||
438 | inline QSGContext *sceneGraphContext() const; | - | ||||||||||||
439 | inline QSGRenderContext *sceneGraphRenderContext() const; | - | ||||||||||||
440 | - | |||||||||||||
441 | QQuickItem *parentItem; | - | ||||||||||||
442 | - | |||||||||||||
443 | QList<QQuickItem *> childItems; | - | ||||||||||||
444 | mutable QList<QQuickItem *> *sortedChildItems; | - | ||||||||||||
445 | QList<QQuickItem *> paintOrderChildItems() const; | - | ||||||||||||
446 | void addChild(QQuickItem *); | - | ||||||||||||
447 | void removeChild(QQuickItem *); | - | ||||||||||||
448 | void siblingOrderChanged(); | - | ||||||||||||
449 | - | |||||||||||||
450 | inline void markSortedChildrenDirty(QQuickItem *child); | - | ||||||||||||
451 | - | |||||||||||||
452 | void refWindow(QQuickWindow *); | - | ||||||||||||
453 | void derefWindow(); | - | ||||||||||||
454 | - | |||||||||||||
455 | QQuickItem *subFocusItem; | - | ||||||||||||
456 | void updateSubFocusItem(QQuickItem *scope, bool focus); | - | ||||||||||||
457 | - | |||||||||||||
458 | QTransform windowToItemTransform() const; | - | ||||||||||||
459 | QTransform itemToWindowTransform() const; | - | ||||||||||||
460 | void itemToParentTransform(QTransform &) const; | - | ||||||||||||
461 | QTransform globalToWindowTransform() const; | - | ||||||||||||
462 | QTransform windowToGlobalTransform() const; | - | ||||||||||||
463 | - | |||||||||||||
464 | static bool focusNextPrev(QQuickItem *item, bool forward); | - | ||||||||||||
465 | static QQuickItem *nextTabChildItem(const QQuickItem *item, int start); | - | ||||||||||||
466 | static QQuickItem *prevTabChildItem(const QQuickItem *item, int start); | - | ||||||||||||
467 | static QQuickItem *nextPrevItemInTabFocusChain(QQuickItem *item, bool forward); | - | ||||||||||||
468 | - | |||||||||||||
469 | static bool canAcceptTabFocus(QQuickItem *item); | - | ||||||||||||
470 | - | |||||||||||||
471 | qreal x; | - | ||||||||||||
472 | qreal y; | - | ||||||||||||
473 | qreal width; | - | ||||||||||||
474 | qreal height; | - | ||||||||||||
475 | qreal implicitWidth; | - | ||||||||||||
476 | qreal implicitHeight; | - | ||||||||||||
477 | - | |||||||||||||
478 | qreal baselineOffset; | - | ||||||||||||
479 | - | |||||||||||||
480 | QList<QQuickTransform *> transforms; | - | ||||||||||||
481 | - | |||||||||||||
482 | inline qreal z() const { return executed 2232853 times by 107 tests: extra.isAllocated()?extra->z:0;return extra.isAllocated()?extra->z:0; Executed by:
executed 2232853 times by 107 tests: }return extra.isAllocated()?extra->z:0; Executed by:
| 2232853 | ||||||||||||
483 | inline qreal scale() const { return executed 1365066 times by 89 tests: extra.isAllocated()?extra->scale:1;return extra.isAllocated()?extra->scale:1; Executed by:
executed 1365066 times by 89 tests: }return extra.isAllocated()?extra->scale:1; Executed by:
| 1365066 | ||||||||||||
484 | inline qreal rotation() const { return executed 1354598 times by 90 tests: extra.isAllocated()?extra->rotation:0;return extra.isAllocated()?extra->rotation:0; Executed by:
executed 1354598 times by 90 tests: }return extra.isAllocated()?extra->rotation:0; Executed by:
| 1354598 | ||||||||||||
485 | inline qreal opacity() const { return executed 396975 times by 85 tests: extra.isAllocated()?extra->opacity:1;return extra.isAllocated()?extra->opacity:1; Executed by:
executed 396975 times by 85 tests: }return extra.isAllocated()?extra->opacity:1; Executed by:
| 396975 | ||||||||||||
486 | - | |||||||||||||
487 | void setAccessible(); | - | ||||||||||||
488 | - | |||||||||||||
489 | virtual qreal getImplicitWidth() const; | - | ||||||||||||
490 | virtual qreal getImplicitHeight() const; | - | ||||||||||||
491 | virtual void implicitWidthChanged(); | - | ||||||||||||
492 | virtual void implicitHeightChanged(); | - | ||||||||||||
493 | - | |||||||||||||
494 | - | |||||||||||||
495 | virtual QAccessible::Role accessibleRole() const; | - | ||||||||||||
496 | - | |||||||||||||
497 | - | |||||||||||||
498 | void setImplicitAntialiasing(bool antialiasing); | - | ||||||||||||
499 | - | |||||||||||||
500 | void resolveLayoutMirror(); | - | ||||||||||||
501 | void setImplicitLayoutMirror(bool mirror, bool inherit); | - | ||||||||||||
502 | void setLayoutMirror(bool mirror); | - | ||||||||||||
503 | bool isMirrored() const { | - | ||||||||||||
504 | return never executed: effectiveLayoutMirror;return effectiveLayoutMirror; never executed: return effectiveLayoutMirror; | 0 | ||||||||||||
505 | } | - | ||||||||||||
506 | - | |||||||||||||
507 | void emitChildrenRectChanged(const QRectF &rect) { | - | ||||||||||||
508 | QQuickItem * const q = q_func(); | - | ||||||||||||
509 | q->childrenRectChanged(rect); | - | ||||||||||||
510 | } executed 202 times by 3 tests: end of block Executed by:
| 202 | ||||||||||||
511 | - | |||||||||||||
512 | QPointF computeTransformOrigin() const; | - | ||||||||||||
513 | virtual void transformChanged(); | - | ||||||||||||
514 | - | |||||||||||||
515 | void deliverKeyEvent(QKeyEvent *); | - | ||||||||||||
516 | bool filterKeyEvent(QKeyEvent *, bool post); | - | ||||||||||||
517 | - | |||||||||||||
518 | void deliverInputMethodEvent(QInputMethodEvent *); | - | ||||||||||||
519 | - | |||||||||||||
520 | void deliverShortcutOverrideEvent(QKeyEvent *); | - | ||||||||||||
521 | - | |||||||||||||
522 | bool anyPointerHandlerWants(QQuickEventPoint *point) const; | - | ||||||||||||
523 | virtual bool handlePointerEvent(QQuickPointerEvent *, bool avoidExclusiveGrabber = false); | - | ||||||||||||
524 | - | |||||||||||||
525 | virtual void setVisible(bool visible); | - | ||||||||||||
526 | - | |||||||||||||
527 | bool isTransparentForPositioner() const; | - | ||||||||||||
528 | void setTransparentForPositioner(bool trans); | - | ||||||||||||
529 | - | |||||||||||||
530 | bool calcEffectiveVisible() const; | - | ||||||||||||
531 | bool setEffectiveVisibleRecur(bool); | - | ||||||||||||
532 | bool calcEffectiveEnable() const; | - | ||||||||||||
533 | void setEffectiveEnableRecur(QQuickItem *scope, bool); | - | ||||||||||||
534 | - | |||||||||||||
535 | - | |||||||||||||
536 | inline QSGTransformNode *itemNode(); | - | ||||||||||||
537 | inline QSGNode *childContainerNode(); | - | ||||||||||||
538 | QSGOpacityNode *opacityNode() const { return executed 1691739 times by 77 tests: extra.isAllocated()?extra->opacityNode:nullptr;return extra.isAllocated()?extra->opacityNode:nullptr; Executed by:
executed 1691739 times by 77 tests: }return extra.isAllocated()?extra->opacityNode:nullptr; Executed by:
| 1691739 | ||||||||||||
539 | QQuickDefaultClipNode *clipNode() const { return executed 1956224 times by 77 tests: extra.isAllocated()?extra->clipNode:nullptr;return extra.isAllocated()?extra->clipNode:nullptr; Executed by:
executed 1956224 times by 77 tests: }return extra.isAllocated()?extra->clipNode:nullptr; Executed by:
| 1956224 | ||||||||||||
540 | QSGRootNode *rootNode() const { return executed 1587156 times by 77 tests: extra.isAllocated()?extra->rootNode:nullptr;return extra.isAllocated()?extra->rootNode:nullptr; Executed by:
executed 1587156 times by 77 tests: }return extra.isAllocated()?extra->rootNode:nullptr; Executed by:
| 1587156 | ||||||||||||
541 | - | |||||||||||||
542 | QSGTransformNode *itemNodeInstance; | - | ||||||||||||
543 | QSGNode *paintNode; | - | ||||||||||||
544 | - | |||||||||||||
545 | virtual QSGTransformNode *createTransformNode(); | - | ||||||||||||
546 | - | |||||||||||||
547 | - | |||||||||||||
548 | - | |||||||||||||
549 | void refFromEffectItem(bool hide); | - | ||||||||||||
550 | void recursiveRefFromEffectItem(int refs); | - | ||||||||||||
551 | void derefFromEffectItem(bool unhide); | - | ||||||||||||
552 | - | |||||||||||||
553 | void itemChange(QQuickItem::ItemChange, const QQuickItem::ItemChangeData &); | - | ||||||||||||
554 | - | |||||||||||||
555 | virtual void mirrorChange() {} | - | ||||||||||||
556 | - | |||||||||||||
557 | void setHasCursorInChild(bool hasCursor); | - | ||||||||||||
558 | void setHasHoverInChild(bool hasHover); | - | ||||||||||||
559 | - | |||||||||||||
560 | virtual void updatePolish() { } | - | ||||||||||||
561 | }; | - | ||||||||||||
562 | - | |||||||||||||
563 | - | |||||||||||||
564 | - | |||||||||||||
565 | - | |||||||||||||
566 | - | |||||||||||||
567 | - | |||||||||||||
568 | - | |||||||||||||
569 | class QQuickItemKeyFilter | - | ||||||||||||
570 | { | - | ||||||||||||
571 | public: | - | ||||||||||||
572 | QQuickItemKeyFilter(QQuickItem * = nullptr); | - | ||||||||||||
573 | virtual ~QQuickItemKeyFilter(); | - | ||||||||||||
574 | - | |||||||||||||
575 | virtual void keyPressed(QKeyEvent *event, bool post); | - | ||||||||||||
576 | virtual void keyReleased(QKeyEvent *event, bool post); | - | ||||||||||||
577 | - | |||||||||||||
578 | virtual void inputMethodEvent(QInputMethodEvent *event, bool post); | - | ||||||||||||
579 | virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; | - | ||||||||||||
580 | - | |||||||||||||
581 | virtual void shortcutOverride(QKeyEvent *event); | - | ||||||||||||
582 | virtual void componentComplete(); | - | ||||||||||||
583 | - | |||||||||||||
584 | bool m_processPost; | - | ||||||||||||
585 | - | |||||||||||||
586 | private: | - | ||||||||||||
587 | QQuickItemKeyFilter *m_next; | - | ||||||||||||
588 | }; | - | ||||||||||||
589 | - | |||||||||||||
590 | class QQuickKeyNavigationAttachedPrivate : public QObjectPrivate | - | ||||||||||||
591 | { | - | ||||||||||||
592 | public: | - | ||||||||||||
593 | QQuickKeyNavigationAttachedPrivate() | - | ||||||||||||
594 | : leftSet(false), rightSet(false), upSet(false), downSet(false), | - | ||||||||||||
595 | tabSet(false), backtabSet(false) {} executed 144 times by 5 tests: end of block Executed by:
| 144 | ||||||||||||
596 | - | |||||||||||||
597 | QQuickItem *left = nullptr; | - | ||||||||||||
598 | QQuickItem *right = nullptr; | - | ||||||||||||
599 | QQuickItem *up = nullptr; | - | ||||||||||||
600 | QQuickItem *down = nullptr; | - | ||||||||||||
601 | QQuickItem *tab = nullptr; | - | ||||||||||||
602 | QQuickItem *backtab = nullptr; | - | ||||||||||||
603 | bool leftSet : 1; | - | ||||||||||||
604 | bool rightSet : 1; | - | ||||||||||||
605 | bool upSet : 1; | - | ||||||||||||
606 | bool downSet : 1; | - | ||||||||||||
607 | bool tabSet : 1; | - | ||||||||||||
608 | bool backtabSet : 1; | - | ||||||||||||
609 | }; | - | ||||||||||||
610 | - | |||||||||||||
611 | class __attribute__((visibility("default"))) QQuickKeyNavigationAttached : public QObject, public QQuickItemKeyFilter | - | ||||||||||||
612 | { | - | ||||||||||||
613 | public: | - | ||||||||||||
614 | #pragma GCC diagnostic push | - | ||||||||||||
615 | - | |||||||||||||
616 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||||||||
617 | 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: | - | ||||||||||||
618 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||||||||
619 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||||||||
620 | #pragma GCC diagnostic pop | - | ||||||||||||
621 | struct QPrivateSignal {}; | - | ||||||||||||
622 | inline QQuickKeyNavigationAttachedPrivate* d_func() { return executed 1264 times by 5 tests: reinterpret_cast<QQuickKeyNavigationAttachedPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickKeyNavigationAttachedPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 1264 times by 5 tests: } inline const QQuickKeyNavigationAttachedPrivate* d_func() const { returnreturn reinterpret_cast<QQuickKeyNavigationAttachedPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 136 times by 1 test: reinterpret_cast<const QQuickKeyNavigationAttachedPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickKeyNavigationAttachedPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 136 times by 1 test: } friend class QQuickKeyNavigationAttachedPrivate;return reinterpret_cast<const QQuickKeyNavigationAttachedPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 136-1264 | ||||||||||||
623 | - | |||||||||||||
624 | - | |||||||||||||
625 | - | |||||||||||||
626 | - | |||||||||||||
627 | - | |||||||||||||
628 | - | |||||||||||||
629 | - | |||||||||||||
630 | - | |||||||||||||
631 | - | |||||||||||||
632 | public: | - | ||||||||||||
633 | QQuickKeyNavigationAttached(QObject * = nullptr); | - | ||||||||||||
634 | - | |||||||||||||
635 | QQuickItem *left() const; | - | ||||||||||||
636 | void setLeft(QQuickItem *); | - | ||||||||||||
637 | QQuickItem *right() const; | - | ||||||||||||
638 | void setRight(QQuickItem *); | - | ||||||||||||
639 | QQuickItem *up() const; | - | ||||||||||||
640 | void setUp(QQuickItem *); | - | ||||||||||||
641 | QQuickItem *down() const; | - | ||||||||||||
642 | void setDown(QQuickItem *); | - | ||||||||||||
643 | QQuickItem *tab() const; | - | ||||||||||||
644 | void setTab(QQuickItem *); | - | ||||||||||||
645 | QQuickItem *backtab() const; | - | ||||||||||||
646 | void setBacktab(QQuickItem *); | - | ||||||||||||
647 | - | |||||||||||||
648 | enum Priority { BeforeItem, AfterItem }; | - | ||||||||||||
649 | friend constexpr const QMetaObject *qt_getEnumMetaObject(Priority) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(Priority) noexcept { return "Priority"; } | - | ||||||||||||
650 | Priority priority() const; | - | ||||||||||||
651 | void setPriority(Priority); | - | ||||||||||||
652 | - | |||||||||||||
653 | static QQuickKeyNavigationAttached *qmlAttachedProperties(QObject *); | - | ||||||||||||
654 | - | |||||||||||||
655 | public : | - | ||||||||||||
656 | void leftChanged(); | - | ||||||||||||
657 | void rightChanged(); | - | ||||||||||||
658 | void upChanged(); | - | ||||||||||||
659 | void downChanged(); | - | ||||||||||||
660 | void tabChanged(); | - | ||||||||||||
661 | void backtabChanged(); | - | ||||||||||||
662 | void priorityChanged(); | - | ||||||||||||
663 | - | |||||||||||||
664 | private: | - | ||||||||||||
665 | void keyPressed(QKeyEvent *event, bool post) override; | - | ||||||||||||
666 | void keyReleased(QKeyEvent *event, bool post) override; | - | ||||||||||||
667 | void setFocusNavigation(QQuickItem *currentItem, const char *dir, | - | ||||||||||||
668 | Qt::FocusReason reason = Qt::OtherFocusReason); | - | ||||||||||||
669 | }; | - | ||||||||||||
670 | - | |||||||||||||
671 | class QQuickLayoutMirroringAttached : public QObject | - | ||||||||||||
672 | { | - | ||||||||||||
673 | public: | - | ||||||||||||
674 | #pragma GCC diagnostic push | - | ||||||||||||
675 | - | |||||||||||||
676 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||||||||
677 | 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: | - | ||||||||||||
678 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||||||||
679 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||||||||
680 | #pragma GCC diagnostic pop | - | ||||||||||||
681 | struct QPrivateSignal {}; | - | ||||||||||||
682 | - | |||||||||||||
683 | - | |||||||||||||
684 | - | |||||||||||||
685 | public: | - | ||||||||||||
686 | explicit QQuickLayoutMirroringAttached(QObject *parent = nullptr); | - | ||||||||||||
687 | - | |||||||||||||
688 | bool enabled() const; | - | ||||||||||||
689 | void setEnabled(bool); | - | ||||||||||||
690 | void resetEnabled(); | - | ||||||||||||
691 | - | |||||||||||||
692 | bool childrenInherit() const; | - | ||||||||||||
693 | void setChildrenInherit(bool); | - | ||||||||||||
694 | - | |||||||||||||
695 | static QQuickLayoutMirroringAttached *qmlAttachedProperties(QObject *); | - | ||||||||||||
696 | public : | - | ||||||||||||
697 | void enabledChanged(); | - | ||||||||||||
698 | void childrenInheritChanged(); | - | ||||||||||||
699 | private: | - | ||||||||||||
700 | friend class QQuickItemPrivate; | - | ||||||||||||
701 | QQuickItemPrivate *itemPrivate; | - | ||||||||||||
702 | }; | - | ||||||||||||
703 | - | |||||||||||||
704 | class QQuickEnterKeyAttached : public QObject | - | ||||||||||||
705 | { | - | ||||||||||||
706 | public: | - | ||||||||||||
707 | #pragma GCC diagnostic push | - | ||||||||||||
708 | - | |||||||||||||
709 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||||||||
710 | 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: | - | ||||||||||||
711 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||||||||
712 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||||||||
713 | #pragma GCC diagnostic pop | - | ||||||||||||
714 | struct QPrivateSignal {}; | - | ||||||||||||
715 | - | |||||||||||||
716 | - | |||||||||||||
717 | public: | - | ||||||||||||
718 | explicit QQuickEnterKeyAttached(QObject *parent = nullptr); | - | ||||||||||||
719 | - | |||||||||||||
720 | Qt::EnterKeyType type() const; | - | ||||||||||||
721 | void setType(Qt::EnterKeyType type); | - | ||||||||||||
722 | - | |||||||||||||
723 | static QQuickEnterKeyAttached *qmlAttachedProperties(QObject *); | - | ||||||||||||
724 | public : | - | ||||||||||||
725 | void typeChanged(); | - | ||||||||||||
726 | private: | - | ||||||||||||
727 | friend class QQuickItemPrivate; | - | ||||||||||||
728 | QQuickItemPrivate *itemPrivate; | - | ||||||||||||
729 | - | |||||||||||||
730 | Qt::EnterKeyType keyType; | - | ||||||||||||
731 | }; | - | ||||||||||||
732 | - | |||||||||||||
733 | class QQuickKeysAttachedPrivate : public QObjectPrivate | - | ||||||||||||
734 | { | - | ||||||||||||
735 | public: | - | ||||||||||||
736 | QQuickKeysAttachedPrivate() | - | ||||||||||||
737 | : inPress(false), inRelease(false), inIM(false), enabled(true) | - | ||||||||||||
738 | {} executed 320 times by 8 tests: end of block Executed by:
| 320 | ||||||||||||
739 | - | |||||||||||||
740 | - | |||||||||||||
741 | bool inPress:1; | - | ||||||||||||
742 | bool inRelease:1; | - | ||||||||||||
743 | bool inIM:1; | - | ||||||||||||
744 | - | |||||||||||||
745 | bool enabled : 1; | - | ||||||||||||
746 | - | |||||||||||||
747 | QQuickItem *imeItem = nullptr; | - | ||||||||||||
748 | QList<QQuickItem *> targets; | - | ||||||||||||
749 | QQuickItem *item = nullptr; | - | ||||||||||||
750 | QQuickKeyEvent theKeyEvent; | - | ||||||||||||
751 | }; | - | ||||||||||||
752 | - | |||||||||||||
753 | class QQuickKeysAttached : public QObject, public QQuickItemKeyFilter | - | ||||||||||||
754 | { | - | ||||||||||||
755 | public: | - | ||||||||||||
756 | #pragma GCC diagnostic push | - | ||||||||||||
757 | - | |||||||||||||
758 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||||||||
759 | 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: | - | ||||||||||||
760 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||||||||
761 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||||||||
762 | #pragma GCC diagnostic pop | - | ||||||||||||
763 | struct QPrivateSignal {}; | - | ||||||||||||
764 | inline QQuickKeysAttachedPrivate* d_func() { return executed 934 times by 8 tests: reinterpret_cast<QQuickKeysAttachedPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickKeysAttachedPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 934 times by 8 tests: } inline const QQuickKeysAttachedPrivate* d_func() const { returnreturn reinterpret_cast<QQuickKeysAttachedPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 100 times by 3 tests: reinterpret_cast<const QQuickKeysAttachedPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickKeysAttachedPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 100 times by 3 tests: } friend class QQuickKeysAttachedPrivate;return reinterpret_cast<const QQuickKeysAttachedPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 100-934 | ||||||||||||
765 | - | |||||||||||||
766 | - | |||||||||||||
767 | - | |||||||||||||
768 | - | |||||||||||||
769 | - | |||||||||||||
770 | public: | - | ||||||||||||
771 | QQuickKeysAttached(QObject *parent=nullptr); | - | ||||||||||||
772 | ~QQuickKeysAttached() override; | - | ||||||||||||
773 | - | |||||||||||||
774 | bool enabled() const { const QQuickKeysAttachedPrivate * const d = d_func(); return executed 6 times by 1 test: d->enabled;return d->enabled; Executed by:
executed 6 times by 1 test: }return d->enabled; Executed by:
| 6 | ||||||||||||
775 | void setEnabled(bool enabled) { | - | ||||||||||||
776 | QQuickKeysAttachedPrivate * const d = d_func(); | - | ||||||||||||
777 | if (enabled != d->enabled
| 2-4 | ||||||||||||
778 | d->enabled = enabled; | - | ||||||||||||
779 | enabledChanged(); | - | ||||||||||||
780 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||||||||
781 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||
782 | - | |||||||||||||
783 | enum Priority { BeforeItem, AfterItem}; | - | ||||||||||||
784 | friend constexpr const QMetaObject *qt_getEnumMetaObject(Priority) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(Priority) noexcept { return "Priority"; } | - | ||||||||||||
785 | Priority priority() const; | - | ||||||||||||
786 | void setPriority(Priority); | - | ||||||||||||
787 | - | |||||||||||||
788 | QQmlListProperty<QQuickItem> forwardTo() { | - | ||||||||||||
789 | QQuickKeysAttachedPrivate * const d = d_func(); | - | ||||||||||||
790 | return executed 16 times by 1 test: QQmlListProperty<QQuickItem>(this, d->targets);return QQmlListProperty<QQuickItem>(this, d->targets); Executed by:
executed 16 times by 1 test: return QQmlListProperty<QQuickItem>(this, d->targets); Executed by:
| 16 | ||||||||||||
791 | } | - | ||||||||||||
792 | - | |||||||||||||
793 | void componentComplete() override; | - | ||||||||||||
794 | - | |||||||||||||
795 | static QQuickKeysAttached *qmlAttachedProperties(QObject *); | - | ||||||||||||
796 | - | |||||||||||||
797 | public : | - | ||||||||||||
798 | void enabledChanged(); | - | ||||||||||||
799 | void priorityChanged(); | - | ||||||||||||
800 | void pressed(QQuickKeyEvent *event); | - | ||||||||||||
801 | void released(QQuickKeyEvent *event); | - | ||||||||||||
802 | void shortcutOverride(QQuickKeyEvent *event); | - | ||||||||||||
803 | void digit0Pressed(QQuickKeyEvent *event); | - | ||||||||||||
804 | void digit1Pressed(QQuickKeyEvent *event); | - | ||||||||||||
805 | void digit2Pressed(QQuickKeyEvent *event); | - | ||||||||||||
806 | void digit3Pressed(QQuickKeyEvent *event); | - | ||||||||||||
807 | void digit4Pressed(QQuickKeyEvent *event); | - | ||||||||||||
808 | void digit5Pressed(QQuickKeyEvent *event); | - | ||||||||||||
809 | void digit6Pressed(QQuickKeyEvent *event); | - | ||||||||||||
810 | void digit7Pressed(QQuickKeyEvent *event); | - | ||||||||||||
811 | void digit8Pressed(QQuickKeyEvent *event); | - | ||||||||||||
812 | void digit9Pressed(QQuickKeyEvent *event); | - | ||||||||||||
813 | - | |||||||||||||
814 | void leftPressed(QQuickKeyEvent *event); | - | ||||||||||||
815 | void rightPressed(QQuickKeyEvent *event); | - | ||||||||||||
816 | void upPressed(QQuickKeyEvent *event); | - | ||||||||||||
817 | void downPressed(QQuickKeyEvent *event); | - | ||||||||||||
818 | void tabPressed(QQuickKeyEvent *event); | - | ||||||||||||
819 | void backtabPressed(QQuickKeyEvent *event); | - | ||||||||||||
820 | - | |||||||||||||
821 | void asteriskPressed(QQuickKeyEvent *event); | - | ||||||||||||
822 | void numberSignPressed(QQuickKeyEvent *event); | - | ||||||||||||
823 | void escapePressed(QQuickKeyEvent *event); | - | ||||||||||||
824 | void returnPressed(QQuickKeyEvent *event); | - | ||||||||||||
825 | void enterPressed(QQuickKeyEvent *event); | - | ||||||||||||
826 | void deletePressed(QQuickKeyEvent *event); | - | ||||||||||||
827 | void spacePressed(QQuickKeyEvent *event); | - | ||||||||||||
828 | void backPressed(QQuickKeyEvent *event); | - | ||||||||||||
829 | void cancelPressed(QQuickKeyEvent *event); | - | ||||||||||||
830 | void selectPressed(QQuickKeyEvent *event); | - | ||||||||||||
831 | void yesPressed(QQuickKeyEvent *event); | - | ||||||||||||
832 | void noPressed(QQuickKeyEvent *event); | - | ||||||||||||
833 | void context1Pressed(QQuickKeyEvent *event); | - | ||||||||||||
834 | void context2Pressed(QQuickKeyEvent *event); | - | ||||||||||||
835 | void context3Pressed(QQuickKeyEvent *event); | - | ||||||||||||
836 | void context4Pressed(QQuickKeyEvent *event); | - | ||||||||||||
837 | void callPressed(QQuickKeyEvent *event); | - | ||||||||||||
838 | void hangupPressed(QQuickKeyEvent *event); | - | ||||||||||||
839 | void flipPressed(QQuickKeyEvent *event); | - | ||||||||||||
840 | void menuPressed(QQuickKeyEvent *event); | - | ||||||||||||
841 | void volumeUpPressed(QQuickKeyEvent *event); | - | ||||||||||||
842 | void volumeDownPressed(QQuickKeyEvent *event); | - | ||||||||||||
843 | - | |||||||||||||
844 | private: | - | ||||||||||||
845 | void keyPressed(QKeyEvent *event, bool post) override; | - | ||||||||||||
846 | void keyReleased(QKeyEvent *event, bool post) override; | - | ||||||||||||
847 | - | |||||||||||||
848 | void inputMethodEvent(QInputMethodEvent *, bool post) override; | - | ||||||||||||
849 | QVariant inputMethodQuery(Qt::InputMethodQuery query) const override; | - | ||||||||||||
850 | - | |||||||||||||
851 | void shortcutOverride(QKeyEvent *event) override; | - | ||||||||||||
852 | static QByteArray keyToSignal(int key); | - | ||||||||||||
853 | - | |||||||||||||
854 | bool isConnected(const char *signalName) const; | - | ||||||||||||
855 | }; | - | ||||||||||||
856 | - | |||||||||||||
857 | Qt::MouseButtons QQuickItemPrivate::acceptedMouseButtons() const | - | ||||||||||||
858 | { | - | ||||||||||||
859 | return executed 19879 times by 20 tests: ((extra.flag() ? Qt::LeftButton : Qt::MouseButton(0)) |return ((extra.flag() ? Qt::LeftButton : Qt::MouseButton(0)) | (extra.isAllocated() ? extra->acceptedMouseButtons : Qt::MouseButtons(nullptr))); Executed by:
executed 19879 times by 20 tests: return ((extra.flag() ? Qt::LeftButton : Qt::MouseButton(0)) | (extra.isAllocated() ? extra->acceptedMouseButtons : Qt::MouseButtons(nullptr))); Executed by:
| 19879 | ||||||||||||
860 | (extra.isAllocated() ? extra->acceptedMouseButtons : Qt::MouseButtons(nullptr))); executed 19879 times by 20 tests: return ((extra.flag() ? Qt::LeftButton : Qt::MouseButton(0)) | (extra.isAllocated() ? extra->acceptedMouseButtons : Qt::MouseButtons(nullptr))); Executed by:
| 19879 | ||||||||||||
861 | } | - | ||||||||||||
862 | - | |||||||||||||
863 | QSGContext *QQuickItemPrivate::sceneGraphContext() const | - | ||||||||||||
864 | { | - | ||||||||||||
865 | ((window) ? static_cast<void>(0) : qt_assert("window", __FILE__, 905)); | - | ||||||||||||
866 | return executed 77323 times by 71 tests: static_cast<QQuickWindowPrivate *>(QObjectPrivate::get(window))->context->sceneGraphContext();return static_cast<QQuickWindowPrivate *>(QObjectPrivate::get(window))->context->sceneGraphContext(); Executed by:
executed 77323 times by 71 tests: return static_cast<QQuickWindowPrivate *>(QObjectPrivate::get(window))->context->sceneGraphContext(); Executed by:
| 77323 | ||||||||||||
867 | } | - | ||||||||||||
868 | - | |||||||||||||
869 | QSGRenderContext *QQuickItemPrivate::sceneGraphRenderContext() const | - | ||||||||||||
870 | { | - | ||||||||||||
871 | ((window) ? static_cast<void>(0) : qt_assert("window", __FILE__, 911)); | - | ||||||||||||
872 | return executed 255636 times by 57 tests: static_cast<QQuickWindowPrivate *>(QObjectPrivate::get(window))->context;return static_cast<QQuickWindowPrivate *>(QObjectPrivate::get(window))->context; Executed by:
executed 255636 times by 57 tests: return static_cast<QQuickWindowPrivate *>(QObjectPrivate::get(window))->context; Executed by:
| 255636 | ||||||||||||
873 | } | - | ||||||||||||
874 | - | |||||||||||||
875 | void QQuickItemPrivate::markSortedChildrenDirty(QQuickItem *child) | - | ||||||||||||
876 | { | - | ||||||||||||
877 | - | |||||||||||||
878 | - | |||||||||||||
879 | if (child->z() != 0.
| 12694-669606 | ||||||||||||
880 | if (sortedChildItems != &childItems
| 4286-169090 | ||||||||||||
881 | delete sortedChildItems; executed 169090 times by 16 tests: delete sortedChildItems; Executed by:
| 169090 | ||||||||||||
882 | sortedChildItems = nullptr; | - | ||||||||||||
883 | } executed 173376 times by 16 tests: end of block Executed by:
| 173376 | ||||||||||||
884 | } executed 830288 times by 107 tests: end of block Executed by:
| 830288 | ||||||||||||
885 | - | |||||||||||||
886 | QQuickItem::TransformOrigin QQuickItemPrivate::origin() const | - | ||||||||||||
887 | { | - | ||||||||||||
888 | return executed 53226 times by 82 tests: extra.isAllocated()?extra->origin:QQuickItem::Center;return extra.isAllocated()?extra->origin:QQuickItem::Center; Executed by:
executed 53226 times by 82 tests: return extra.isAllocated()?extra->origin:QQuickItem::Center; Executed by:
| 53226 | ||||||||||||
889 | } | - | ||||||||||||
890 | - | |||||||||||||
891 | QSGTransformNode *QQuickItemPrivate::itemNode() | - | ||||||||||||
892 | { | - | ||||||||||||
893 | if (!itemNodeInstance
| 323650-1602998 | ||||||||||||
894 | itemNodeInstance = createTransformNode(); | - | ||||||||||||
895 | itemNodeInstance->setFlag(QSGNode::OwnedByParent, false); | - | ||||||||||||
896 | - | |||||||||||||
897 | QQuickItem * const q = q_func(); | - | ||||||||||||
898 | qsgnode_set_description(itemNodeInstance, QString::fromLatin1("QQuickItem(%1:%2)").arg(QString::fromLatin1(q->metaObject()->className())).arg(q->objectName())); | - | ||||||||||||
899 | - | |||||||||||||
900 | } executed 323650 times by 76 tests: end of block Executed by:
| 323650 | ||||||||||||
901 | return executed 1926648 times by 76 tests: itemNodeInstance;return itemNodeInstance; Executed by:
executed 1926648 times by 76 tests: return itemNodeInstance; Executed by:
| 1926648 | ||||||||||||
902 | } | - | ||||||||||||
903 | - | |||||||||||||
904 | QSGNode *QQuickItemPrivate::childContainerNode() | - | ||||||||||||
905 | { | - | ||||||||||||
906 | if (rootNode()
| 398-703659 | ||||||||||||
907 | return executed 398 times by 6 tests: rootNode();return rootNode(); Executed by:
executed 398 times by 6 tests: return rootNode(); Executed by:
| 398 | ||||||||||||
908 | else if (clipNode()
| 580-703079 | ||||||||||||
909 | return executed 580 times by 8 tests: clipNode();return clipNode(); Executed by:
executed 580 times by 8 tests: return clipNode(); Executed by:
| 580 | ||||||||||||
910 | else if (opacityNode()
| 43690-659389 | ||||||||||||
911 | return executed 43690 times by 26 tests: opacityNode();return opacityNode(); Executed by:
executed 43690 times by 26 tests: return opacityNode(); Executed by:
| 43690 | ||||||||||||
912 | else | - | ||||||||||||
913 | return executed 659389 times by 77 tests: itemNode();return itemNode(); Executed by:
executed 659389 times by 77 tests: return itemNode(); Executed by:
| 659389 | ||||||||||||
914 | } | - | ||||||||||||
915 | - | |||||||||||||
916 | constexpr inline QFlags<QQuickItemPrivate::ChangeTypes::enum_type> operator|(QQuickItemPrivate::ChangeTypes::enum_type f1, QQuickItemPrivate::ChangeTypes::enum_type f2) noexcept { return QFlags<QQuickItemPrivate::ChangeTypes::enum_type>(f1) | f2; } constexpr inline QFlags<QQuickItemPrivate::ChangeTypes::enum_type> operator|(QQuickItemPrivate::ChangeTypes::enum_type f1, QFlags<QQuickItemPrivate::ChangeTypes::enum_type> f2) noexcept { return f2 | f1; } constexpr inline QIncompatibleFlag operator|(QQuickItemPrivate::ChangeTypes::enum_type f1, int f2) noexcept { return QIncompatibleFlag(int(f1) | f2); } | - | ||||||||||||
917 | template<> class QTypeInfo<QQuickItemPrivate::ChangeListener > { public: enum { isSpecialized = true, isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_PRIMITIVE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QQuickItemPrivate::ChangeListener)>sizeof(void*)), isPointer = false, isIntegral = std::is_integral< QQuickItemPrivate::ChangeListener >::value, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QQuickItemPrivate::ChangeListener) }; static inline const char *name() { return "QQuickItemPrivate::ChangeListener"; } }; | - | ||||||||||||
918 | - | |||||||||||||
919 | - | |||||||||||||
920 | - | |||||||||||||
921 | - | |||||||||||||
922 | template <> struct QMetaTypeId< QQuickItemLayer * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickItemLayer * >("QQuickItemLayer *", reinterpret_cast< QQuickItemLayer * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickItemLayer> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickItemLayer> >("QQmlListProperty<QQuickItemLayer>", reinterpret_cast< QQmlListProperty<QQuickItemLayer> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - | ||||||||||||
923 | - | |||||||||||||
924 | template <> struct QMetaTypeId< QQuickKeysAttached * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickKeysAttached * >("QQuickKeysAttached *", reinterpret_cast< QQuickKeysAttached * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickKeysAttached> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickKeysAttached> >("QQmlListProperty<QQuickKeysAttached>", reinterpret_cast< QQmlListProperty<QQuickKeysAttached> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - | ||||||||||||
925 | template <> class QQmlTypeInfo<QQuickKeysAttached > { public: enum { hasAttachedProperties = (((QML_HAS_ATTACHED_PROPERTIES) & QML_HAS_ATTACHED_PROPERTIES) == QML_HAS_ATTACHED_PROPERTIES) }; }; | - | ||||||||||||
926 | template <> struct QMetaTypeId< QQuickKeyNavigationAttached * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickKeyNavigationAttached * >("QQuickKeyNavigationAttached *", reinterpret_cast< QQuickKeyNavigationAttached * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickKeyNavigationAttached> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickKeyNavigationAttached> >("QQmlListProperty<QQuickKeyNavigationAttached>", reinterpret_cast< QQmlListProperty<QQuickKeyNavigationAttached> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - | ||||||||||||
927 | template <> class QQmlTypeInfo<QQuickKeyNavigationAttached > { public: enum { hasAttachedProperties = (((QML_HAS_ATTACHED_PROPERTIES) & QML_HAS_ATTACHED_PROPERTIES) == QML_HAS_ATTACHED_PROPERTIES) }; }; | - | ||||||||||||
928 | template <> struct QMetaTypeId< QQuickLayoutMirroringAttached * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickLayoutMirroringAttached * >("QQuickLayoutMirroringAttached *", reinterpret_cast< QQuickLayoutMirroringAttached * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickLayoutMirroringAttached> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickLayoutMirroringAttached> >("QQmlListProperty<QQuickLayoutMirroringAttached>", reinterpret_cast< QQmlListProperty<QQuickLayoutMirroringAttached> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - | ||||||||||||
929 | template <> class QQmlTypeInfo<QQuickLayoutMirroringAttached > { public: enum { hasAttachedProperties = (((QML_HAS_ATTACHED_PROPERTIES) & QML_HAS_ATTACHED_PROPERTIES) == QML_HAS_ATTACHED_PROPERTIES) }; }; | - | ||||||||||||
930 | template <> struct QMetaTypeId< QQuickEnterKeyAttached * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickEnterKeyAttached * >("QQuickEnterKeyAttached *", reinterpret_cast< QQuickEnterKeyAttached * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickEnterKeyAttached> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickEnterKeyAttached> >("QQmlListProperty<QQuickEnterKeyAttached>", reinterpret_cast< QQmlListProperty<QQuickEnterKeyAttached> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - | ||||||||||||
931 | template <> class QQmlTypeInfo<QQuickEnterKeyAttached > { public: enum { hasAttachedProperties = (((QML_HAS_ATTACHED_PROPERTIES) & QML_HAS_ATTACHED_PROPERTIES) == QML_HAS_ATTACHED_PROPERTIES) }; }; | - | ||||||||||||
Switch to Source code | Preprocessed file |