Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickitemsmodule.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | - | |||||||
7 | - | |||||||
8 | - | |||||||
9 | - | |||||||
10 | - | |||||||
11 | - | |||||||
12 | - | |||||||
13 | - | |||||||
14 | - | |||||||
15 | - | |||||||
16 | - | |||||||
17 | - | |||||||
18 | - | |||||||
19 | - | |||||||
20 | - | |||||||
21 | - | |||||||
22 | - | |||||||
23 | - | |||||||
24 | - | |||||||
25 | - | |||||||
26 | - | |||||||
27 | - | |||||||
28 | - | |||||||
29 | - | |||||||
30 | - | |||||||
31 | - | |||||||
32 | extern const QLoggingCategory &lcTransient(); | - | ||||||
33 | - | |||||||
34 | - | |||||||
35 | static QQmlPrivate::AutoParentResult qquickitem_autoParent(QObject *obj, QObject *parent) | - | ||||||
36 | { | - | ||||||
37 | - | |||||||
38 | - | |||||||
39 | if (QQuickItem *parentItem = qmlobject_cast<QQuickItem *>(parent)
| 40-2515 | ||||||
40 | QQuickItem *item = qmlobject_cast<QQuickItem *>(obj); | - | ||||||
41 | if (item
| 22-2493 | ||||||
42 | - | |||||||
43 | item->setParentItem(parentItem); | - | ||||||
44 | return executed 2493 times by 13 tests: QQmlPrivate::Parented;return QQmlPrivate::Parented; Executed by:
executed 2493 times by 13 tests: return QQmlPrivate::Parented; Executed by:
| 2493 | ||||||
45 | } else if (parentItem->window()
| 0-22 | ||||||
46 | QQuickWindow *win = qmlobject_cast<QQuickWindow *>(obj); | - | ||||||
47 | if (win
| 0 | ||||||
48 | - | |||||||
49 | for (bool qt_category_enabled = lcTransient().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 134, __PRETTY_FUNCTION__, lcTransient().categoryName()).debug() << win << "is transient for" << parentItem->window(); | 0 | ||||||
50 | win->setTransientParent(parentItem->window()); | - | ||||||
51 | return never executed: QQmlPrivate::Parented;return QQmlPrivate::Parented; never executed: return QQmlPrivate::Parented; | 0 | ||||||
52 | } | - | ||||||
53 | } never executed: end of block | 0 | ||||||
54 | return executed 22 times by 6 tests: QQmlPrivate::IncompatibleObject;return QQmlPrivate::IncompatibleObject; Executed by:
executed 22 times by 6 tests: return QQmlPrivate::IncompatibleObject; Executed by:
| 22 | ||||||
55 | } else if (QQuickWindow *parentWindow = qmlobject_cast<QQuickWindow *>(parent)
| 12-28 | ||||||
56 | QQuickWindow *win = qmlobject_cast<QQuickWindow *>(obj); | - | ||||||
57 | if (win
| 4-8 | ||||||
58 | - | |||||||
59 | for (bool qt_category_enabled = lcTransient().isDebugEnabled(); qt_category_enabled
never executed: QMessageLogger(__FILE__, 144, __PRETTY_FUNCTION__, lcTransient().categoryName()).debug() << win << "is transient for" << parentWindow; | 0-4 | ||||||
60 | win->setTransientParent(parentWindow); | - | ||||||
61 | return executed 4 times by 1 test: QQmlPrivate::Parented;return QQmlPrivate::Parented; Executed by:
executed 4 times by 1 test: return QQmlPrivate::Parented; Executed by:
| 4 | ||||||
62 | } else { | - | ||||||
63 | QQuickItem *item = qmlobject_cast<QQuickItem *>(obj); | - | ||||||
64 | if (item
| 4 | ||||||
65 | - | |||||||
66 | item->setParentItem(parentWindow->contentItem()); | - | ||||||
67 | return executed 4 times by 1 test: QQmlPrivate::Parented;return QQmlPrivate::Parented; Executed by:
executed 4 times by 1 test: return QQmlPrivate::Parented; Executed by:
| 4 | ||||||
68 | } | - | ||||||
69 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||
70 | return executed 4 times by 1 test: QQmlPrivate::IncompatibleObject;return QQmlPrivate::IncompatibleObject; Executed by:
executed 4 times by 1 test: return QQmlPrivate::IncompatibleObject; Executed by:
| 4 | ||||||
71 | } else if (qmlobject_cast<QQuickItem *>(obj)
| 4-24 | ||||||
72 | return executed 4 times by 1 test: QQmlPrivate::IncompatibleParent;return QQmlPrivate::IncompatibleParent; Executed by:
executed 4 times by 1 test: return QQmlPrivate::IncompatibleParent; Executed by:
| 4 | ||||||
73 | } | - | ||||||
74 | return executed 24 times by 4 tests: QQmlPrivate::IncompatibleObject;return QQmlPrivate::IncompatibleObject; Executed by:
executed 24 times by 4 tests: return QQmlPrivate::IncompatibleObject; Executed by:
| 24 | ||||||
75 | } | - | ||||||
76 | - | |||||||
77 | static void qt_quickitems_defineModule(const char *uri, int major, int minor) | - | ||||||
78 | { | - | ||||||
79 | QQmlPrivate::RegisterAutoParent autoparent = { 0, &qquickitem_autoParent }; | - | ||||||
80 | QQmlPrivate::qmlregister(QQmlPrivate::AutoParentRegistration, &autoparent); | - | ||||||
81 | - | |||||||
82 | - | |||||||
83 | qmlRegisterModule(uri, 2, 12); | - | ||||||
84 | - | |||||||
85 | - | |||||||
86 | - | |||||||
87 | - | |||||||
88 | qmlRegisterType<QQuickAnimatedImage>(uri,major,minor,"AnimatedImage"); | - | ||||||
89 | - | |||||||
90 | qmlRegisterType<QQuickBorderImage>(uri,major,minor,"BorderImage"); | - | ||||||
91 | qmlRegisterType<QQuickFlickable>(uri,major,minor,"Flickable"); | - | ||||||
92 | - | |||||||
93 | qmlRegisterType<QQuickFlipable>(uri,major,minor,"Flipable"); | - | ||||||
94 | - | |||||||
95 | - | |||||||
96 | qmlRegisterType<QQuickFocusScope>(uri,major,minor,"FocusScope"); | - | ||||||
97 | qmlRegisterType<QQuickGradient>(uri,major,minor,"Gradient"); | - | ||||||
98 | qmlRegisterType<QQuickGradientStop>(uri,major,minor,"GradientStop"); | - | ||||||
99 | - | |||||||
100 | qmlRegisterType<QQuickColumn>(uri,major,minor,"Column"); | - | ||||||
101 | qmlRegisterType<QQuickFlow>(uri,major,minor,"Flow"); | - | ||||||
102 | qmlRegisterType<QQuickGrid>(uri,major,minor,"Grid"); | - | ||||||
103 | qmlRegisterUncreatableType<QQuickBasePositioner>(uri,major,minor,"Positioner", | - | ||||||
104 | ([]() noexcept -> QString { enum { Size = sizeof(u"" "Positioner is an abstract type that is only available as an attached property.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Positioner is an abstract type that is only available as an attached property." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 374 times by 132 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 374 times by 132 tests: }()));return qstring_literal_temp; Executed by:
| 374 | ||||||
105 | qmlRegisterType<QQuickRow>(uri,major,minor,"Row"); | - | ||||||
106 | - | |||||||
107 | - | |||||||
108 | qmlRegisterType<QQuickGridView>(uri,major,minor,"GridView"); | - | ||||||
109 | - | |||||||
110 | qmlRegisterType<QQuickImage>(uri,major,minor,"Image"); | - | ||||||
111 | qmlRegisterType<QQuickItem>(uri,major,minor,"Item"); | - | ||||||
112 | - | |||||||
113 | qmlRegisterType<QQuickListView>(uri,major,minor,"ListView"); | - | ||||||
114 | qmlRegisterType<QQuickViewSection>(uri,major,minor,"ViewSection"); | - | ||||||
115 | - | |||||||
116 | qmlRegisterType<QQuickLoader>(uri,major,minor,"Loader"); | - | ||||||
117 | qmlRegisterType<QQuickMouseArea>(uri,major,minor,"MouseArea"); | - | ||||||
118 | - | |||||||
119 | qmlRegisterType<QQuickPath>(uri,major,minor,"Path"); | - | ||||||
120 | qmlRegisterType<QQuickPathAttribute>(uri,major,minor,"PathAttribute"); | - | ||||||
121 | qmlRegisterType<QQuickPathCubic>(uri,major,minor,"PathCubic"); | - | ||||||
122 | qmlRegisterType<QQuickPathLine>(uri,major,minor,"PathLine"); | - | ||||||
123 | qmlRegisterType<QQuickPathPercent>(uri,major,minor,"PathPercent"); | - | ||||||
124 | qmlRegisterType<QQuickPathQuad>(uri,major,minor,"PathQuad"); | - | ||||||
125 | qmlRegisterType<QQuickPathCatmullRomCurve>("QtQuick",2,0,"PathCurve"); | - | ||||||
126 | qmlRegisterType<QQuickPathArc>("QtQuick",2,0,"PathArc"); | - | ||||||
127 | qmlRegisterType<QQuickPathSvg>("QtQuick",2,0,"PathSvg"); | - | ||||||
128 | - | |||||||
129 | - | |||||||
130 | qmlRegisterType<QQuickPathView>(uri,major,minor,"PathView"); | - | ||||||
131 | - | |||||||
132 | qmlRegisterType<QQuickRectangle>(uri,major,minor,"Rectangle"); | - | ||||||
133 | - | |||||||
134 | qmlRegisterType<QQuickRepeater>(uri,major,minor,"Repeater"); | - | ||||||
135 | - | |||||||
136 | qmlRegisterType<QQuickTranslate>(uri,major,minor,"Translate"); | - | ||||||
137 | qmlRegisterType<QQuickRotation>(uri,major,minor,"Rotation"); | - | ||||||
138 | qmlRegisterType<QQuickScale>(uri,major,minor,"Scale"); | - | ||||||
139 | qmlRegisterType<QQuickMatrix4x4>(uri,2,3,"Matrix4x4"); | - | ||||||
140 | qmlRegisterType<QQuickText>(uri,major,minor,"Text"); | - | ||||||
141 | qmlRegisterType<QQuickTextEdit>(uri,major,minor,"TextEdit"); | - | ||||||
142 | qmlRegisterType<QQuickTextEdit,1>(uri,2,1,"TextEdit"); | - | ||||||
143 | qmlRegisterType<QQuickTextInput>(uri,major,minor,"TextInput"); | - | ||||||
144 | qmlRegisterType<QQuickTextInput,2>(uri,2,2,"TextInput"); | - | ||||||
145 | qmlRegisterType<QQuickTextInput,3>(uri,2,4,"TextInput"); | - | ||||||
146 | qmlRegisterType<QQuickItemGrabResult>(); | - | ||||||
147 | - | |||||||
148 | qmlRegisterType<QQuickItemLayer>(); | - | ||||||
149 | - | |||||||
150 | qmlRegisterType<QQuickAnchors>(); | - | ||||||
151 | qmlRegisterType<QQuickKeyEvent>(); | - | ||||||
152 | qmlRegisterType<QQuickMouseEvent>(); | - | ||||||
153 | qmlRegisterType<QQuickWheelEvent>(); | - | ||||||
154 | qmlRegisterType<QQuickCloseEvent>(); | - | ||||||
155 | qmlRegisterType<QQuickTransform>(); | - | ||||||
156 | - | |||||||
157 | qmlRegisterType<QQuickPathElement>(); | - | ||||||
158 | qmlRegisterType<QQuickCurve>(); | - | ||||||
159 | - | |||||||
160 | qmlRegisterType<QQuickScaleGrid>(); | - | ||||||
161 | qmlRegisterType<QQuickTextLine>(); | - | ||||||
162 | qmlRegisterType<QQuickPen>(); | - | ||||||
163 | qmlRegisterType<QQuickFlickableVisibleArea>(); | - | ||||||
164 | qRegisterMetaType<QQuickAnchorLine>("QQuickAnchorLine"); | - | ||||||
165 | - | |||||||
166 | qmlRegisterType<QQuickTextDocument>(); | - | ||||||
167 | - | |||||||
168 | - | |||||||
169 | qmlRegisterUncreatableType<QQuickKeyNavigationAttached>(uri,major,minor,"KeyNavigation",QQuickKeyNavigationAttached::tr("KeyNavigation is only available via attached properties")); | - | ||||||
170 | qmlRegisterUncreatableType<QQuickKeysAttached>(uri,major,minor,"Keys",QQuickKeysAttached::tr("Keys is only available via attached properties")); | - | ||||||
171 | qmlRegisterUncreatableType<QQuickLayoutMirroringAttached>(uri,major,minor,"LayoutMirroring", QQuickLayoutMirroringAttached::tr("LayoutMirroring is only available via attached properties")); | - | ||||||
172 | - | |||||||
173 | qmlRegisterUncreatableType<QQuickViewTransitionAttached>(uri,major,minor,"ViewTransition",QQuickViewTransitionAttached::tr("ViewTransition is only available via attached properties")); | - | ||||||
174 | - | |||||||
175 | - | |||||||
176 | qmlRegisterType<QQuickPinchArea>(uri,major,minor,"PinchArea"); | - | ||||||
177 | qmlRegisterType<QQuickPinch>(uri,major,minor,"Pinch"); | - | ||||||
178 | qmlRegisterType<QQuickPinchEvent>(); | - | ||||||
179 | - | |||||||
180 | - | |||||||
181 | qmlRegisterType<QQuickShaderEffectSource>("QtQuick", 2, 0, "ShaderEffectSource"); | - | ||||||
182 | qmlRegisterUncreatableType<QQuickShaderEffectMesh>("QtQuick", 2, 0, "ShaderEffectMesh", QQuickShaderEffectMesh::tr("Cannot create instance of abstract class ShaderEffectMesh.")); | - | ||||||
183 | qmlRegisterType<QQuickGridMesh>("QtQuick", 2, 0, "GridMesh"); | - | ||||||
184 | qmlRegisterType<QQuickShaderEffect>("QtQuick", 2, 0, "ShaderEffect"); | - | ||||||
185 | - | |||||||
186 | - | |||||||
187 | qmlRegisterUncreatableType<QQuickPaintedItem>("QtQuick", 2, 0, "PaintedItem", QQuickPaintedItem::tr("Cannot create instance of abstract class PaintedItem")); | - | ||||||
188 | - | |||||||
189 | - | |||||||
190 | qmlRegisterType<QQuickCanvasItem>("QtQuick", 2, 0, "Canvas"); | - | ||||||
191 | - | |||||||
192 | - | |||||||
193 | - | |||||||
194 | qmlRegisterType<QQuickSprite>("QtQuick", 2, 0, "Sprite"); | - | ||||||
195 | qmlRegisterType<QQuickAnimatedSprite>("QtQuick", 2, 0, "AnimatedSprite"); | - | ||||||
196 | qmlRegisterType<QQuickSpriteSequence>("QtQuick", 2, 0, "SpriteSequence"); | - | ||||||
197 | - | |||||||
198 | - | |||||||
199 | qmlRegisterType<QQuickParentChange>(uri, major, minor,"ParentChange"); | - | ||||||
200 | qmlRegisterType<QQuickAnchorChanges>(uri, major, minor,"AnchorChanges"); | - | ||||||
201 | qmlRegisterType<QQuickAnchorSet>(); | - | ||||||
202 | qmlRegisterType<QQuickAnchorAnimation>(uri, major, minor,"AnchorAnimation"); | - | ||||||
203 | qmlRegisterType<QQuickParentAnimation>(uri, major, minor,"ParentAnimation"); | - | ||||||
204 | - | |||||||
205 | qmlRegisterType<QQuickPathAnimation>("QtQuick",2,0,"PathAnimation"); | - | ||||||
206 | qmlRegisterType<QQuickPathInterpolator>("QtQuick",2,0,"PathInterpolator"); | - | ||||||
207 | - | |||||||
208 | - | |||||||
209 | - | |||||||
210 | qmlRegisterType<QQuickDropArea>("QtQuick", 2, 0, "DropArea"); | - | ||||||
211 | qmlRegisterType<QQuickDropEvent>(); | - | ||||||
212 | qmlRegisterType<QQuickDropAreaDrag>(); | - | ||||||
213 | qmlRegisterUncreatableType<QQuickDrag>("QtQuick", 2, 0, "Drag", QQuickDragAttached::tr("Drag is only available via attached properties")); | - | ||||||
214 | - | |||||||
215 | - | |||||||
216 | qmlRegisterType<QQuickMultiPointTouchArea>("QtQuick", 2, 0, "MultiPointTouchArea"); | - | ||||||
217 | qmlRegisterType<QQuickTouchPoint>("QtQuick", 2, 0, "TouchPoint"); | - | ||||||
218 | qmlRegisterUncreatableType<QQuickGrabGestureEvent>(uri,major,minor, "GestureEvent", | - | ||||||
219 | QQuickMouseEvent::tr("GestureEvent is only available in the context of handling the gestureStarted signal from MultiPointTouchArea")); | - | ||||||
220 | - | |||||||
221 | - | |||||||
222 | qmlRegisterUncreatableType<QQuickAccessibleAttached>("QtQuick", 2, 0, "Accessible",QQuickAccessibleAttached::tr("Accessible is only available via attached properties")); | - | ||||||
223 | - | |||||||
224 | - | |||||||
225 | qmlRegisterType<QQuickItem, 1>(uri, 2, 1,"Item"); | - | ||||||
226 | - | |||||||
227 | qmlRegisterType<QQuickGrid, 1>(uri, 2, 1, "Grid"); | - | ||||||
228 | - | |||||||
229 | - | |||||||
230 | const char *itemViewName = "ItemView"; | - | ||||||
231 | const QString itemViewMessage = QQuickItemView::tr("ItemView is an abstract base class"); | - | ||||||
232 | qmlRegisterUncreatableType<QQuickItemView, 1>(uri, 2, 1, itemViewName, itemViewMessage); | - | ||||||
233 | qmlRegisterUncreatableType<QQuickItemView, 2>(uri, 2, 3, itemViewName, itemViewMessage); | - | ||||||
234 | - | |||||||
235 | - | |||||||
236 | qmlRegisterType<QQuickListView, 1>(uri, 2, 1, "ListView"); | - | ||||||
237 | - | |||||||
238 | - | |||||||
239 | qmlRegisterType<QQuickGridView, 1>(uri, 2, 1, "GridView"); | - | ||||||
240 | - | |||||||
241 | qmlRegisterType<QQuickTextEdit, 1>(uri, 2, 1, "TextEdit"); | - | ||||||
242 | - | |||||||
243 | qmlRegisterType<QQuickText, 2>(uri, 2, 2, "Text"); | - | ||||||
244 | qmlRegisterType<QQuickTextEdit, 2>(uri, 2, 2, "TextEdit"); | - | ||||||
245 | - | |||||||
246 | qmlRegisterType<QQuickText, 3>(uri, 2, 3, "Text"); | - | ||||||
247 | qmlRegisterType<QQuickTextEdit, 3>(uri, 2, 3, "TextEdit"); | - | ||||||
248 | qmlRegisterType<QQuickImage, 1>(uri, 2, 3,"Image"); | - | ||||||
249 | - | |||||||
250 | qmlRegisterType<QQuickItem, 2>(uri, 2, 4, "Item"); | - | ||||||
251 | - | |||||||
252 | qmlRegisterType<QQuickListView, 2>(uri, 2, 4, "ListView"); | - | ||||||
253 | - | |||||||
254 | qmlRegisterType<QQuickMouseArea, 1>(uri, 2, 4, "MouseArea"); | - | ||||||
255 | - | |||||||
256 | qmlRegisterType<QQuickShaderEffect, 1>(uri, 2, 4, "ShaderEffect"); | - | ||||||
257 | - | |||||||
258 | - | |||||||
259 | - | |||||||
260 | qmlRegisterUncreatableType<QQuickOpenGLInfo>(uri, 2, 4,"OpenGLInfo", QQuickOpenGLInfo::tr("OpenGLInfo is only available via attached properties")); | - | ||||||
261 | - | |||||||
262 | qmlRegisterType<QQuickPinchArea, 1>(uri, 2, 5,"PinchArea"); | - | ||||||
263 | qmlRegisterType<QQuickImage, 2>(uri, 2, 5,"Image"); | - | ||||||
264 | qmlRegisterType<QQuickMouseArea, 2>(uri, 2, 5, "MouseArea"); | - | ||||||
265 | - | |||||||
266 | qmlRegisterType<QQuickText, 6>(uri, 2, 6, "Text"); | - | ||||||
267 | qmlRegisterType<QQuickTextEdit, 6>(uri, 2, 6, "TextEdit"); | - | ||||||
268 | qmlRegisterType<QQuickTextInput, 6>(uri, 2, 6, "TextInput"); | - | ||||||
269 | - | |||||||
270 | qmlRegisterUncreatableType<QQuickBasePositioner, 6>(uri, 2, 6, "Positioner", | - | ||||||
271 | ([]() noexcept -> QString { enum { Size = sizeof(u"" "Positioner is an abstract type that is only available as an attached property.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Positioner is an abstract type that is only available as an attached property." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 374 times by 132 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 374 times by 132 tests: }()));return qstring_literal_temp; Executed by:
| 374 | ||||||
272 | qmlRegisterType<QQuickColumn, 6>(uri, 2, 6, "Column"); | - | ||||||
273 | qmlRegisterType<QQuickRow, 6>(uri, 2, 6, "Row"); | - | ||||||
274 | qmlRegisterType<QQuickGrid, 6>(uri, 2, 6, "Grid"); | - | ||||||
275 | qmlRegisterType<QQuickFlow, 6>(uri, 2, 6, "Flow"); | - | ||||||
276 | - | |||||||
277 | qmlRegisterUncreatableType<QQuickEnterKeyAttached, 6>(uri, 2, 6, "EnterKey", | - | ||||||
278 | QQuickEnterKeyAttached::tr("EnterKey is only available via attached properties")); | - | ||||||
279 | - | |||||||
280 | qmlRegisterType<QQuickShaderEffectSource, 1>(uri, 2, 6, "ShaderEffectSource"); | - | ||||||
281 | - | |||||||
282 | - | |||||||
283 | qmlRegisterType<QQuickItem, 7>(uri, 2, 7, "Item"); | - | ||||||
284 | - | |||||||
285 | qmlRegisterType<QQuickListView, 7>(uri, 2, 7, "ListView"); | - | ||||||
286 | - | |||||||
287 | - | |||||||
288 | qmlRegisterType<QQuickGridView, 7>(uri, 2, 7, "GridView"); | - | ||||||
289 | - | |||||||
290 | qmlRegisterType<QQuickTextInput, 7>(uri, 2, 7, "TextInput"); | - | ||||||
291 | qmlRegisterType<QQuickTextEdit, 7>(uri, 2, 7, "TextEdit"); | - | ||||||
292 | - | |||||||
293 | qmlRegisterType<QQuickPathView, 7>(uri, 2, 7, "PathView"); | - | ||||||
294 | - | |||||||
295 | - | |||||||
296 | qmlRegisterUncreatableType<QQuickItemView, 7>(uri, 2, 7, itemViewName, itemViewMessage); | - | ||||||
297 | - | |||||||
298 | - | |||||||
299 | qmlRegisterUncreatableType<QQuickMouseEvent, 7>(uri, 2, 7, nullptr, QQuickMouseEvent::tr("MouseEvent is only available within handlers in MouseArea")); | - | ||||||
300 | - | |||||||
301 | qmlRegisterUncreatableType<QQuickGraphicsInfo>(uri, 2, 8,"GraphicsInfo", QQuickGraphicsInfo::tr("GraphicsInfo is only available via attached properties")); | - | ||||||
302 | - | |||||||
303 | qmlRegisterType<QQuickBorderImageMesh>("QtQuick", 2, 8, "BorderImageMesh"); | - | ||||||
304 | - | |||||||
305 | - | |||||||
306 | qmlRegisterType<QQuickFlickable, 9>(uri, 2, 9, "Flickable"); | - | ||||||
307 | qmlRegisterType<QQuickMouseArea, 9>(uri, 2, 9, "MouseArea"); | - | ||||||
308 | - | |||||||
309 | - | |||||||
310 | qmlRegisterType<QQuickPathArc, 2>(uri, 2, 9, "PathArc"); | - | ||||||
311 | qmlRegisterType<QQuickPathMove>(uri, 2, 9, "PathMove"); | - | ||||||
312 | - | |||||||
313 | - | |||||||
314 | qmlRegisterType<QQuickText, 9>(uri, 2, 9, "Text"); | - | ||||||
315 | qmlRegisterType<QQuickTextInput, 9>(uri, 2, 9, "TextInput"); | - | ||||||
316 | qmlRegisterType<QQuickTouchPoint>(uri, 2, 9, "TouchPoint"); | - | ||||||
317 | qRegisterMetaType<QPointingDeviceUniqueId>("QPointingDeviceUniqueId"); | - | ||||||
318 | qmlRegisterUncreatableType<QPointingDeviceUniqueId>(uri, 2, 9, "PointingDeviceUniqueId", QQuickTouchPoint::tr("PointingDeviceUniqueId is only available via read-only properties")); | - | ||||||
319 | - | |||||||
320 | qmlRegisterUncreatableType<QQuickBasePositioner, 9>(uri, 2, 9, "Positioner", | - | ||||||
321 | ([]() noexcept -> QString { enum { Size = sizeof(u"" "Positioner is an abstract type that is only available as an attached property.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Positioner is an abstract type that is only available as an attached property." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 374 times by 132 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 374 times by 132 tests: }()));return qstring_literal_temp; Executed by:
| 374 | ||||||
322 | - | |||||||
323 | - | |||||||
324 | - | |||||||
325 | qmlRegisterType<QQuickShaderEffectSource, 2>(uri, 2, 9, "ShaderEffectSource"); | - | ||||||
326 | - | |||||||
327 | - | |||||||
328 | qmlRegisterType<QQuickFlickable, 10>(uri, 2, 10, "Flickable"); | - | ||||||
329 | qmlRegisterType<QQuickTextEdit, 10>(uri, 2, 10, "TextEdit"); | - | ||||||
330 | qmlRegisterType<QQuickText, 10>(uri, 2, 10, "Text"); | - | ||||||
331 | - | |||||||
332 | - | |||||||
333 | qmlRegisterType<QQuickPathAngleArc>(uri, 2, 11, "PathAngleArc"); | - | ||||||
334 | - | |||||||
335 | - | |||||||
336 | - | |||||||
337 | qmlRegisterType<QQuickAnimatedImage, 11>(uri, 2, 11,"AnimatedImage"); | - | ||||||
338 | - | |||||||
339 | qmlRegisterType<QQuickItem, 11>(uri, 2, 11,"Item"); | - | ||||||
340 | - | |||||||
341 | qmlRegisterType<QQuickAnimatedSprite, 12>("QtQuick", 2, 12, "AnimatedSprite"); | - | ||||||
342 | qmlRegisterType<QQuickGradient, 12>(uri, 2, 12, "Gradient"); | - | ||||||
343 | } executed 374 times by 132 tests: end of block Executed by:
| 374 | ||||||
344 | - | |||||||
345 | static void initResources() | - | ||||||
346 | { | - | ||||||
347 | do { extern int qInitResources_items (); qInitResources_items (); } while (false); | - | ||||||
348 | } executed 374 times by 132 tests: end of block Executed by:
| 374 | ||||||
349 | - | |||||||
350 | - | |||||||
351 | - | |||||||
352 | void QQuickItemsModule::defineModule() | - | ||||||
353 | { | - | ||||||
354 | initResources(); | - | ||||||
355 | - | |||||||
356 | QByteArray name = "QtQuick"; | - | ||||||
357 | int majorVersion = 2; | - | ||||||
358 | int minorVersion = 0; | - | ||||||
359 | - | |||||||
360 | qt_quickitems_defineModule(name, majorVersion, minorVersion); | - | ||||||
361 | } executed 374 times by 132 tests: end of block Executed by:
| 374 | ||||||
362 | - | |||||||
363 | - | |||||||
Switch to Source code | Preprocessed file |