OpenCoverage

qquickview.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickview.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9void QQuickViewPrivate::init(QQmlEngine* e)-
10{-
11 QQuickView * const q = q_func();-
12-
13 engine = e;-
14-
15 if (engine.isNull()
engine.isNull()Description
TRUEevaluated 3158 times by 78 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
FALSEevaluated 46 times by 6 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickview
  • tst_quicktestmainwithsetup
  • tst_testfiltering
)
46-3158
16 engine = new QQmlEngine(q);
executed 3158 times by 78 tests: engine = new QQmlEngine(q);
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
3158
17-
18 QQmlEngine::setContextForObject(contentItem, engine.data()->rootContext());-
19-
20 if (!engine.data()->incubationController()
!engine.data()...onController()Description
TRUEevaluated 3200 times by 83 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickview
)
4-3200
21 engine.data()->setIncubationController(q->incubationController());
executed 3200 times by 83 tests: engine.data()->setIncubationController(q->incubationController());
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
3200
22-
23 {-
24-
25-
26 QV4::ExecutionEngine *v4 = engine.data()->handle();-
27 QV4::QObjectWrapper::wrap(v4, contentItem);-
28 }-
29}
executed 3204 times by 83 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
3204
30-
31QQuickViewPrivate::QQuickViewPrivate()-
32 : root(nullptr), component(nullptr), resizeMode(QQuickView::SizeViewToRootObject), initialSize(0,0)-
33{-
34}
executed 3204 times by 83 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
3204
35-
36QQuickViewPrivate::~QQuickViewPrivate()-
37{-
38}-
39-
40void QQuickViewPrivate::execute()-
41{-
42 QQuickView * const q = q_func();-
43 if (!engine
!engineDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickview
FALSEevaluated 10688 times by 80 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
) {
2-10688
44 QMessageLogger(__FILE__, 91, __PRETTY_FUNCTION__).warning() << "QQuickView: invalid qml engine.";-
45 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickview
2
46 }-
47-
48 if (root
rootDescription
TRUEevaluated 2666 times by 6 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qquickborderimage
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktext
FALSEevaluated 8022 times by 80 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
) {
2666-8022
49 delete root;-
50 root = nullptr;-
51 }
executed 2666 times by 6 tests: end of block
Executed by:
  • tst_qqmlimport
  • tst_qquickborderimage
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktext
2666
52 if (component
componentDescription
TRUEevaluated 2666 times by 6 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qquickborderimage
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktext
FALSEevaluated 8022 times by 80 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
) {
2666-8022
53 delete component;-
54 component = nullptr;-
55 }
executed 2666 times by 6 tests: end of block
Executed by:
  • tst_qqmlimport
  • tst_qquickborderimage
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktext
2666
56 if (!source.isEmpty()
!source.isEmpty()Description
TRUEevaluated 5628 times by 80 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
FALSEevaluated 5060 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
) {
5060-5628
57 QQmlMemoryScope _qml_memory_scope(engine.data()->baseUrl().resolved(source));-
58 component = new QQmlComponent(engine.data(), source, q);-
59 if (!component->isLoading()
!component->isLoading()Description
TRUEevaluated 5622 times by 80 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktextedit
) {
6-5622
60 q->continueExecute();-
61 }
executed 5622 times by 80 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
else {
5622
62 QObject::connect(component, qFlagLocation("2""statusChanged(QQmlComponent::Status)" "\0" __FILE__ ":" "109"),-
63 q, qFlagLocation("1""continueExecute()" "\0" __FILE__ ":" "110"));-
64 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquicktextedit
6
65 }-
66}
executed 10688 times by 80 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
10688
67-
68void QQuickViewPrivate::itemGeometryChanged(QQuickItem *resizeItem, QQuickGeometryChange change,-
69 const QRectF &oldGeometry)-
70{-
71 QQuickView * const q = q_func();-
72 if (resizeItem == root
resizeItem == rootDescription
TRUEevaluated 188 times by 10 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
FALSEnever evaluated
&& resizeMode == QQuickView::SizeViewToRootObject
resizeMode == ...ewToRootObjectDescription
TRUEevaluated 188 times by 10 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
FALSEnever evaluated
) {
0-188
73-
74 resizetimer.start(0,q);-
75 }
executed 188 times by 10 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
188
76 QQuickItemChangeListener::itemGeometryChanged(resizeItem, change, oldGeometry);-
77}
executed 188 times by 10 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
188
78QQuickView::QQuickView(QWindow *parent)-
79: QQuickWindow(*(new QQuickViewPrivate), parent)-
80{-
81 d_func()->init();-
82}
executed 3158 times by 78 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
3158
83-
84-
85-
86-
87-
88-
89QQuickView::QQuickView(const QUrl &source, QWindow *parent)-
90 : QQuickView(parent)-
91{-
92 setSource(source);-
93}
executed 306 times by 8 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickdynamicpropertyanimation
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickspringanimation
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
306
94QQuickView::QQuickView(QQmlEngine* engine, QWindow *parent)-
95 : QQuickWindow(*(new QQuickViewPrivate), parent)-
96{-
97 ((engine) ? static_cast<void>(0) : qt_assert("engine", __FILE__, 192));-
98 d_func()->init(engine);-
99}
executed 46 times by 6 tests: end of block
Executed by:
  • tst_qqmldebugjs
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickview
  • tst_quicktestmainwithsetup
  • tst_testfiltering
46
100-
101-
102-
103-
104QQuickView::QQuickView(const QUrl &source, QQuickRenderControl *control)-
105 : QQuickWindow(*(new QQuickViewPrivate), control)-
106{-
107 d_func()->init();-
108 setSource(source);-
109}
never executed: end of block
0
110-
111-
112-
113-
114QQuickView::~QQuickView()-
115{-
116-
117-
118 QQuickViewPrivate * const d = d_func();-
119 delete d->root;-
120 d->root = nullptr;-
121}
executed 3192 times by 83 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
3192
122void QQuickView::setSource(const QUrl& url)-
123{-
124 QQuickViewPrivate * const d = d_func();-
125 d->source = url;-
126 d->execute();-
127}
executed 10690 times by 80 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
10690
128-
129-
130-
131-
132-
133-
134void QQuickView::setContent(const QUrl& url, QQmlComponent *component, QObject* item)-
135{-
136 QQuickViewPrivate * const d = d_func();-
137 d->source = url;-
138 d->component = component;-
139-
140 if (d->component
d->componentDescription
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquickfontloader_static
  • tst_qquicklistview
FALSEnever evaluated
&& d->component->isError()
d->component->isError()Description
TRUEnever evaluated
FALSEevaluated 16 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquickfontloader_static
  • tst_qquicklistview
) {
0-16
141 const QList<QQmlError> errorList = d->component->errors();-
142 for (const QQmlError &error : errorList) {-
143 QMessageLogger(error.url().toString().toLatin1().constData(), error.line(), nullptr).warning()-
144 << error;-
145 }
never executed: end of block
0
146 statusChanged(status());-
147 return;
never executed: return;
0
148 }-
149-
150 d->setRootObject(item);-
151 statusChanged(status());-
152}
executed 16 times by 3 tests: end of block
Executed by:
  • tst_qqmldebugjs
  • tst_qquickfontloader_static
  • tst_qquicklistview
16
153-
154-
155-
156-
157-
158-
159QUrl QQuickView::source() const-
160{-
161 const QQuickViewPrivate * const d = d_func();-
162 return
never executed: return d->source;
d->source;
never executed: return d->source;
0
163}-
164-
165-
166-
167-
168-
169QQmlEngine* QQuickView::engine() const-
170{-
171 const QQuickViewPrivate * const d = d_func();-
172 return
executed 200 times by 16 tests: return d->engine ? const_cast<QQmlEngine *>(d->engine.data()) : nullptr;
Executed by:
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_quicktestmainwithsetup
  • tst_testfiltering
d->engine ? const_cast<QQmlEngine *>(d->engine.data()) : nullptr;
executed 200 times by 16 tests: return d->engine ? const_cast<QQmlEngine *>(d->engine.data()) : nullptr;
Executed by:
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_quicktestmainwithsetup
  • tst_testfiltering
200
173}-
174QQmlContext* QQuickView::rootContext() const-
175{-
176 const QQuickViewPrivate * const d = d_func();-
177 return
executed 3666 times by 19 tests: return d->engine ? d->engine.data()->rootContext() : nullptr;
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
d->engine ? d->engine.data()->rootContext() : nullptr;
executed 3666 times by 19 tests: return d->engine ? d->engine.data()->rootContext() : nullptr;
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
3666
178}-
179QQuickView::Status QQuickView::status() const-
180{-
181 const QQuickViewPrivate * const d = d_func();-
182 if (!d->engine
!d->engineDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickview
FALSEevaluated 7124 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
)
2-7124
183 return
executed 2 times by 1 test: return QQuickView::Error;
Executed by:
  • tst_qquickview
QQuickView::Error;
executed 2 times by 1 test: return QQuickView::Error;
Executed by:
  • tst_qquickview
2
184-
185 if (!d->component
!d->componentDescription
TRUEnever evaluated
FALSEevaluated 7124 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
)
0-7124
186 return
never executed: return QQuickView::Null;
QQuickView::Null;
never executed: return QQuickView::Null;
0
187-
188 if (d->component->status() == QQmlComponent::Ready
d->component->...mponent::ReadyDescription
TRUEevaluated 7054 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qquicktextedit
  • tst_qquickview
&& !d->root
!d->rootDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickview
FALSEevaluated 7050 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
)
4-7054
189 return
executed 4 times by 1 test: return QQuickView::Error;
Executed by:
  • tst_qquickview
QQuickView::Error;
executed 4 times by 1 test: return QQuickView::Error;
Executed by:
  • tst_qquickview
4
190-
191 return
executed 7120 times by 82 tests: return QQuickView::Status(d->component->status());
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
QQuickView::Status(d->component->status());
executed 7120 times by 82 tests: return QQuickView::Status(d->component->status());
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
7120
192}-
193-
194-
195-
196-
197-
198QList<QQmlError> QQuickView::errors() const-
199{-
200 const QQuickViewPrivate * const d = d_func();-
201 QList<QQmlError> errs;-
202-
203 if (d->component
d->componentDescription
TRUEevaluated 30 times by 3 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qquickdesignersupport
  • tst_qquickview
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickview
)
6-30
204 errs = d->component->errors();
executed 30 times by 3 tests: errs = d->component->errors();
Executed by:
  • tst_qqmlimport
  • tst_qquickdesignersupport
  • tst_qquickview
30
205-
206 if (!d->engine
!d->engineDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickview
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qquickdesignersupport
  • tst_qquickview
) {
4-32
207 QQmlError error;-
208 error.setDescription(QLatin1String("QQuickView: invalid qml engine."));-
209 errs << error;-
210 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickview
else if (d->component
d->componentDescription
TRUEevaluated 30 times by 3 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qquickdesignersupport
  • tst_qquickview
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickview
&& d->component->status() == QQmlComponent::Ready
d->component->...mponent::ReadyDescription
TRUEevaluated 26 times by 3 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qquickdesignersupport
  • tst_qquickview
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qquickview
&& !d->root
!d->rootDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickview
FALSEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qquickdesignersupport
) {
2-30
211 QQmlError error;-
212 error.setDescription(QLatin1String("QQuickView: invalid root object."));-
213 errs << error;-
214 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickview
2
215-
216 return
executed 36 times by 3 tests: return errs;
Executed by:
  • tst_qqmlimport
  • tst_qquickdesignersupport
  • tst_qquickview
errs;
executed 36 times by 3 tests: return errs;
Executed by:
  • tst_qqmlimport
  • tst_qquickdesignersupport
  • tst_qquickview
36
217}-
218void QQuickView::setResizeMode(ResizeMode mode)-
219{-
220 QQuickViewPrivate * const d = d_func();-
221 if (d->resizeMode == mode
d->resizeMode == modeDescription
TRUEevaluated 44 times by 4 tests
Evaluated by:
  • tst_drawingmodes
  • tst_qquickview
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 18 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
)
18-44
222 return;
executed 44 times by 4 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_qquickview
  • tst_rendernode
  • tst_scenegraph
44
223-
224 if (d->root
d->rootDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickview
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
) {
4-14
225 if (d->resizeMode == SizeViewToRootObject
d->resizeMode ...ewToRootObjectDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickview
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickview
) {
2
226 QQuickItemPrivate *p = QQuickItemPrivate::get(d->root);-
227 p->removeItemChangeListener(d, QQuickItemPrivate::Geometry);-
228 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickview
2
229 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickview
4
230-
231 d->resizeMode = mode;-
232 if (d->root
d->rootDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickview
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
) {
4-14
233 d->initResize();-
234 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickview
4
235}
executed 18 times by 3 tests: end of block
Executed by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
18
236-
237void QQuickViewPrivate::initResize()-
238{-
239 if (root
rootDescription
TRUEevaluated 5638 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
FALSEnever evaluated
) {
0-5638
240 if (resizeMode == QQuickView::SizeViewToRootObject
resizeMode == ...ewToRootObjectDescription
TRUEevaluated 5622 times by 81 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
FALSEevaluated 16 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
) {
16-5622
241 QQuickItemPrivate *p = QQuickItemPrivate::get(root);-
242 p->addItemChangeListener(this, QQuickItemPrivate::Geometry);-
243 }
executed 5622 times by 81 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
5622
244 }
executed 5638 times by 82 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
5638
245 updateSize();-
246}
executed 5638 times by 82 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
5638
247-
248void QQuickViewPrivate::updateSize()-
249{-
250 QQuickView * const q = q_func();-
251 if (!root
!rootDescription
TRUEnever evaluated
FALSEevaluated 5711 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
)
0-5711
252 return;
never executed: return;
0
253-
254 if (resizeMode == QQuickView::SizeViewToRootObject
resizeMode == ...ewToRootObjectDescription
TRUEevaluated 5674 times by 81 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
) {
37-5674
255 QSize newSize = QSize(root->width(), root->height());-
256 if (newSize.isValid()
newSize.isValid()Description
TRUEevaluated 5674 times by 81 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
FALSEnever evaluated
&& newSize != q->size()
newSize != q->size()Description
TRUEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquickpositioners
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
FALSEevaluated 5630 times by 81 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
) {
0-5674
257 q->resize(newSize);-
258 }
executed 44 times by 5 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquickpositioners
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
44
259 }
executed 5674 times by 81 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
else if (resizeMode == QQuickView::SizeRootObjectToView
resizeMode == ...otObjectToViewDescription
TRUEevaluated 37 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
FALSEnever evaluated
) {
0-5674
260 bool needToUpdateWidth = !qFuzzyCompare(q->width(), root->width());-
261 bool needToUpdateHeight = !qFuzzyCompare(q->height(), root->height());-
262-
263 if (needToUpdateWidth
needToUpdateWidthDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickview
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
&& needToUpdateHeight
needToUpdateHeightDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickview
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklistview
)
2-25
264 root->setSize(QSizeF(q->width(), q->height()));
executed 10 times by 2 tests: root->setSize(QSizeF(q->width(), q->height()));
Executed by:
  • tst_qquicklistview
  • tst_qquickview
10
265 else if (needToUpdateWidth
needToUpdateWidthDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklistview
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
)
2-25
266 root->setWidth(q->width());
executed 2 times by 1 test: root->setWidth(q->width());
Executed by:
  • tst_qquicklistview
2
267 else if (needToUpdateHeight
needToUpdateHeightDescription
TRUEnever evaluated
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
)
0-25
268 root->setHeight(q->height());
never executed: root->setHeight(q->height());
0
269 }
executed 37 times by 3 tests: end of block
Executed by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
37
270}
executed 5711 times by 82 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
5711
271-
272QSize QQuickViewPrivate::rootObjectSize() const-
273{-
274 QSize rootObjectSize(0,0);-
275 int widthCandidate = -1;-
276 int heightCandidate = -1;-
277 if (root
rootDescription
TRUEevaluated 5650 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
FALSEnever evaluated
) {
0-5650
278 widthCandidate = root->width();-
279 heightCandidate = root->height();-
280 }
executed 5650 times by 82 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
5650
281 if (widthCandidate > 0
widthCandidate > 0Description
TRUEevaluated 5460 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
FALSEevaluated 190 times by 19 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquickaccessible
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickopenglinfo
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrectangle
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
) {
190-5460
282 rootObjectSize.setWidth(widthCandidate);-
283 }
executed 5460 times by 75 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
5460
284 if (heightCandidate > 0
heightCandidate > 0Description
TRUEevaluated 5460 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
FALSEevaluated 190 times by 19 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquickaccessible
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickopenglinfo
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrectangle
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
) {
190-5460
285 rootObjectSize.setHeight(heightCandidate);-
286 }
executed 5460 times by 75 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
5460
287 return
executed 5650 times by 82 tests: return rootObjectSize;
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
rootObjectSize;
executed 5650 times by 82 tests: return rootObjectSize;
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
5650
288}-
289-
290QQuickView::ResizeMode QQuickView::resizeMode() const-
291{-
292 const QQuickViewPrivate * const d = d_func();-
293 return
never executed: return d->resizeMode;
d->resizeMode;
never executed: return d->resizeMode;
0
294}-
295-
296-
297-
298-
299void QQuickView::continueExecute()-
300{-
301 QQuickViewPrivate * const d = d_func();-
302 disconnect(d->component, qFlagLocation("2""statusChanged(QQmlComponent::Status)" "\0" __FILE__ ":" "465"), this, qFlagLocation("1""continueExecute()" "\0" __FILE__ ":" "465"));-
303-
304 if (d->component->isError()
d->component->isError()Description
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qqmlimport
  • tst_qquicktextedit
  • tst_qquickview
FALSEevaluated 5620 times by 80 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
) {
8-5620
305 const QList<QQmlError> errorList = d->component->errors();-
306 for (const QQmlError &error : errorList) {-
307 QMessageLogger(error.url().toString().toLatin1().constData(), error.line(), nullptr).warning()-
308 << error;-
309 }
executed 12 times by 3 tests: end of block
Executed by:
  • tst_qqmlimport
  • tst_qquicktextedit
  • tst_qquickview
12
310 statusChanged(status());-
311 return;
executed 8 times by 3 tests: return;
Executed by:
  • tst_qqmlimport
  • tst_qquicktextedit
  • tst_qquickview
8
312 }-
313-
314 QObject *obj = d->component->create();-
315-
316 if (d->component->isError()
d->component->isError()Description
TRUEnever evaluated
FALSEevaluated 5620 times by 80 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
) {
0-5620
317 const QList<QQmlError> errorList = d->component->errors();-
318 for (const QQmlError &error : errorList) {-
319 QMessageLogger(error.url().toString().toLatin1().constData(), error.line(), nullptr).warning()-
320 << error;-
321 }
never executed: end of block
0
322 statusChanged(status());-
323 return;
never executed: return;
0
324 }-
325-
326 d->setRootObject(obj);-
327 statusChanged(status());-
328}
executed 5620 times by 80 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
5620
329-
330-
331-
332-
333-
334void QQuickViewPrivate::setRootObject(QObject *obj)-
335{-
336 QQuickView * const q = q_func();-
337 if (root == obj
root == objDescription
TRUEnever evaluated
FALSEevaluated 5636 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
)
0-5636
338 return;
never executed: return;
0
339 if (QQuickItem *sgItem = qobject_cast<QQuickItem *>(obj)
QQuickItem *sg...ckItem *>(obj)Description
TRUEevaluated 5634 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickview
) {
2-5634
340 root = sgItem;-
341 sgItem->setParentItem(q->QQuickWindow::contentItem());-
342 QQml_setParent_noEvent(sgItem, q->QQuickWindow::contentItem());-
343 }
executed 5634 times by 82 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
else if (qobject_cast<QWindow *>(obj)
qobject_cast<QWindow *>(obj)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickview
FALSEnever evaluated
) {
0-5634
344 QMessageLogger(__FILE__, 507, __PRETTY_FUNCTION__).warning() << "QQuickView does not support using windows as a root item." << endl-
345 << endl-
346 << "If you wish to create your root window from QML, consider using QQmlApplicationEngine instead." << endl;-
347 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickview
else {
2
348 QMessageLogger(__FILE__, 511, __PRETTY_FUNCTION__).warning() << "QQuickView only supports loading of root objects that derive from QQuickItem." << endl-
349 << endl-
350 << "Ensure your QML code is written for QtQuick 2, and uses a root that is or" << endl-
351 << "inherits from QtQuick's Item (not a Timer, QtObject, etc)." << endl;-
352 delete obj;-
353 root = nullptr;-
354 }
never executed: end of block
0
355 if (root
rootDescription
TRUEevaluated 5634 times by 82 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickview
) {
2-5634
356 initialSize = rootObjectSize();-
357 if ((resizeMode == QQuickView::SizeViewToRootObject
resizeMode == ...ewToRootObjectDescription
TRUEevaluated 5620 times by 81 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
|| q->width() <= 1
q->width() <= 1Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquickview
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickview
|| q->height() <= 1
q->height() <= 1Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickview
) &&
0-5620
358 initialSize != q->size()
initialSize != q->size()Description
TRUEevaluated 2578 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
FALSEevaluated 3052 times by 25 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qquickaccessible
  • tst_qquickborderimage
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickopenglinfo
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickrectangle
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
) {
2578-3052
359 q->resize(initialSize);-
360 }
executed 2578 times by 75 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
2578
361 initResize();-
362 }
executed 5634 times by 82 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
5634
363}
executed 5636 times by 82 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • ...
5636
364-
365-
366-
367-
368-
369-
370void QQuickView::timerEvent(QTimerEvent* e)-
371{-
372 QQuickViewPrivate * const d = d_func();-
373 if (!e
!eDescription
TRUEnever evaluated
FALSEevaluated 52 times by 6 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
|| e->timerId() == d->resizetimer.timerId()
e->timerId() =...imer.timerId()Description
TRUEevaluated 52 times by 6 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
FALSEnever evaluated
) {
0-52
374 d->updateSize();-
375 d->resizetimer.stop();-
376 }
executed 52 times by 6 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
52
377}
executed 52 times by 6 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
52
378-
379-
380-
381-
382-
383QSize QQuickView::sizeHint() const-
384{-
385 const QQuickViewPrivate * const d = d_func();-
386 QSize rootObjectSize = d->rootObjectSize();-
387 if (rootObjectSize.isEmpty()
rootObjectSize.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquickview
) {
0-16
388 return
never executed: return size();
size();
never executed: return size();
0
389 } else {-
390 return
executed 16 times by 1 test: return rootObjectSize;
Executed by:
  • tst_qquickview
rootObjectSize;
executed 16 times by 1 test: return rootObjectSize;
Executed by:
  • tst_qquickview
16
391 }-
392}-
393QSize QQuickView::initialSize() const-
394{-
395 const QQuickViewPrivate * const d = d_func();-
396 return
executed 10 times by 1 test: return d->initialSize;
Executed by:
  • tst_qquickview
d->initialSize;
executed 10 times by 1 test: return d->initialSize;
Executed by:
  • tst_qquickview
10
397}-
398-
399-
400-
401-
402QQuickItem *QQuickView::rootObject() const-
403{-
404 const QQuickViewPrivate * const d = d_func();-
405 return
executed 16939 times by 68 tests: return d->root;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgraphicsinfo
  • ...
d->root;
executed 16939 times by 68 tests: return d->root;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgraphicsinfo
  • ...
16939
406}-
407-
408-
409-
410-
411-
412-
413void QQuickView::resizeEvent(QResizeEvent *e)-
414{-
415 QQuickViewPrivate * const d = d_func();-
416 if (d->resizeMode == SizeRootObjectToView
d->resizeMode ...otObjectToViewDescription
TRUEevaluated 21 times by 3 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
FALSEevaluated 2765 times by 72 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgraphicsinfo
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
)
21-2765
417 d->updateSize();
executed 21 times by 3 tests: d->updateSize();
Executed by:
  • tst_qqmldebugjs
  • tst_qquicklistview
  • tst_qquickview
21
418-
419 QQuickWindow::resizeEvent(e);-
420}
executed 2786 times by 73 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgraphicsinfo
  • tst_qquickgravity
  • tst_qquickgridview
  • ...
2786
421-
422-
423void QQuickView::keyPressEvent(QKeyEvent *e)-
424{-
425 QQuickWindow::keyPressEvent(e);-
426}
executed 1072 times by 7 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
1072
427-
428-
429void QQuickView::keyReleaseEvent(QKeyEvent *e)-
430{-
431 QQuickWindow::keyReleaseEvent(e);-
432}
executed 786 times by 7 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
786
433-
434-
435void QQuickView::mouseMoveEvent(QMouseEvent *e)-
436{-
437 QQuickWindow::mouseMoveEvent(e);-
438}
executed 6326 times by 14 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
6326
439-
440-
441void QQuickView::mousePressEvent(QMouseEvent *e)-
442{-
443 QQuickWindow::mousePressEvent(e);-
444}
executed 1752 times by 14 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1752
445-
446-
447void QQuickView::mouseReleaseEvent(QMouseEvent *e)-
448{-
449 QQuickWindow::mouseReleaseEvent(e);-
450}
executed 1740 times by 14 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1740
451-
452-
453-
454-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0