OpenCoverage

qquickanimation.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickanimation.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7QQuickAbstractAnimation::QQuickAbstractAnimation(QObject *parent)-
8: QObject(*(new QQuickAbstractAnimationPrivate), parent)-
9{-
10}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
2
11-
12QQuickAbstractAnimation::~QQuickAbstractAnimation()-
13{-
14 QQuickAbstractAnimationPrivate * const d = d_func();-
15 if (d->group
d->groupDescription
TRUEnever evaluated
FALSEevaluated 27396 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
)
0-27396
16 setGroup(nullptr);
never executed: setGroup(nullptr);
0
17 delete d->animationInstance;-
18}
executed 27396 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
27396
19-
20QQuickAbstractAnimation::QQuickAbstractAnimation(QQuickAbstractAnimationPrivate &dd, QObject *parent)-
21: QObject(dd, parent)-
22{-
23}
executed 27494 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
27494
24-
25QAbstractAnimationJob* QQuickAbstractAnimation::qtAnimation()-
26{-
27 QQuickAbstractAnimationPrivate * const d = d_func();-
28 return
executed 45 times by 2 tests: return d->animationInstance;
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
d->animationInstance;
executed 45 times by 2 tests: return d->animationInstance;
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
45
29}-
30bool QQuickAbstractAnimation::isRunning() const-
31{-
32 const QQuickAbstractAnimationPrivate * const d = d_func();-
33 return
executed 1026 times by 12 tests: return d->running;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
d->running;
executed 1026 times by 12 tests: return d->running;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
1026
34}-
35-
36-
37void QQuickAbstractAnimation::notifyRunningChanged(bool running)-
38{-
39 QQuickAbstractAnimationPrivate * const d = d_func();-
40 if (d->disableUserControl
d->disableUserControlDescription
TRUEevaluated 444 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
FALSEnever evaluated
&& d->running != running
d->running != runningDescription
TRUEevaluated 396 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
FALSEevaluated 48 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickbehaviors
  • tst_qquicklistview
) {
0-444
41 d->running = running;-
42 runningChanged(running);-
43 }
executed 396 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
396
44}
executed 444 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
444
45-
46-
47-
48void QQuickAbstractAnimationPrivate::commence()-
49{-
50 QQuickAbstractAnimation * const q = q_func();-
51-
52 QQuickStateActions actions;-
53 QQmlProperties properties;-
54-
55 QAbstractAnimationJob *oldInstance = animationInstance;-
56 animationInstance = q->transition(actions, properties, QQuickAbstractAnimation::Forward);-
57 if (oldInstance
oldInstanceDescription
TRUEevaluated 39 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
FALSEevaluated 4886 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
&& oldInstance != animationInstance
oldInstance !=...mationInstanceDescription
TRUEevaluated 39 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
FALSEnever evaluated
)
0-4886
58 delete oldInstance;
executed 39 times by 2 tests: delete oldInstance;
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
39
59-
60 if (animationInstance
animationInstanceDescription
TRUEevaluated 4925 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
) {
0-4925
61 if (oldInstance != animationInstance
oldInstance !=...mationInstanceDescription
TRUEevaluated 4925 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
) {
0-4925
62 if (q->threadingModel() == QQuickAbstractAnimation::RenderThread
q->threadingMo...::RenderThreadDescription
TRUEevaluated 26 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEevaluated 4899 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
)
26-4899
63 animationInstance = new QQuickAnimatorProxyJob(animationInstance, q);
executed 26 times by 2 tests: animationInstance = new QQuickAnimatorProxyJob(animationInstance, q);
Executed by:
  • tst_examples
  • tst_qquickanimations
26
64 animationInstance->addAnimationChangeListener(this, QAbstractAnimationJob::Completion);-
65 }
executed 4925 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
4925
66 animationInstance->start();-
67 if (animationInstance->isStopped()
animationInstance->isStopped()Description
TRUEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
FALSEevaluated 4919 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
) {
6-4919
68 running = false;-
69 q->stopped();-
70 }
executed 6 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
6
71 }
executed 4925 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
4925
72}
executed 4925 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
4925
73-
74QQmlProperty QQuickAbstractAnimationPrivate::createProperty(QObject *obj, const QString &str, QObject *infoObj, QString *errorMessage)-
75{-
76 QQmlProperty prop(obj, str, qmlContext(infoObj));-
77 if (!prop.isValid()
!prop.isValid()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 21397 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
) {
4-21397
78 const QString message = QQuickAbstractAnimation::tr("Cannot animate non-existent property \"%1\"").arg(str);-
79 if (errorMessage
errorMessageDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
)
0-4
80 *
executed 4 times by 1 test: *errorMessage = message;
Executed by:
  • tst_qquickanimations
errorMessage = message;
executed 4 times by 1 test: *errorMessage = message;
Executed by:
  • tst_qquickanimations
4
81 else-
82 qmlWarning(infoObj) << message;
never executed: qmlWarning(infoObj) << message;
0
83 return
executed 4 times by 1 test: return QQmlProperty();
Executed by:
  • tst_qquickanimations
QQmlProperty();
executed 4 times by 1 test: return QQmlProperty();
Executed by:
  • tst_qquickanimations
4
84 } else if (!prop.isWritable()
!prop.isWritable()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 21395 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
) {
2-21395
85 const QString message = QQuickAbstractAnimation::tr("Cannot animate read-only property \"%1\"").arg(str);-
86 if (errorMessage
errorMessageDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
)
0-2
87 *
executed 2 times by 1 test: *errorMessage = message;
Executed by:
  • tst_qquickanimations
errorMessage = message;
executed 2 times by 1 test: *errorMessage = message;
Executed by:
  • tst_qquickanimations
2
88 else-
89 qmlWarning(infoObj) << message;
never executed: qmlWarning(infoObj) << message;
0
90 return
executed 2 times by 1 test: return QQmlProperty();
Executed by:
  • tst_qquickanimations
QQmlProperty();
executed 2 times by 1 test: return QQmlProperty();
Executed by:
  • tst_qquickanimations
2
91 }-
92 return
executed 21395 times by 13 tests: return prop;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
prop;
executed 21395 times by 13 tests: return prop;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
21395
93}-
94void QQuickAbstractAnimation::setRunning(bool r)-
95{-
96 QQuickAbstractAnimationPrivate * const d = d_func();-
97 if (!d->componentComplete
!d->componentCompleteDescription
TRUEevaluated 9194 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
FALSEevaluated 5201 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
) {
5201-9194
98 d->running = r;-
99 if (r == false
r == falseDescription
TRUEevaluated 486 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickspringanimation
  • tst_qquicktaphandler
FALSEevaluated 8708 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
)
486-8708
100 d->avoidPropertyValueSourceStart = true;
executed 486 times by 6 tests: d->avoidPropertyValueSourceStart = true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickspringanimation
  • tst_qquicktaphandler
486
101 else if (!d->registered
!d->registeredDescription
TRUEevaluated 4688 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
FALSEevaluated 4020 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
) {
4020-4688
102 d->registered = true;-
103 QQmlEnginePrivate *engPriv = QQmlEnginePrivate::get(qmlEngine(this));-
104 static int finalizedIdx = -1;-
105 if (finalizedIdx < 0
finalizedIdx < 0Description
TRUEevaluated 16 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
FALSEevaluated 4672 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
)
16-4672
106 finalizedIdx = metaObject()->indexOfSlot("componentFinalized()");
executed 16 times by 8 tests: finalizedIdx = metaObject()->indexOfSlot("componentFinalized()");
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
16
107 engPriv->registerFinalizeCallback(this, finalizedIdx);-
108 }
executed 4688 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
4688
109 return;
executed 9194 times by 11 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
9194
110 }-
111-
112 if (d->running == r
d->running == rDescription
TRUEevaluated 43 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
FALSEevaluated 5158 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
)
43-5158
113 return;
executed 43 times by 4 tests: return;
Executed by:
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
43
114-
115 if (d->group
d->groupDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 5154 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
|| d->disableUserControl
d->disableUserControlDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
FALSEevaluated 5152 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
) {
2-5154
116 qmlWarning(this) << "setRunning() cannot be used on non-root animation nodes.";-
117 return;
executed 6 times by 2 tests: return;
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
6
118 }-
119-
120 d->running = r;-
121 if (d->running
d->runningDescription
TRUEevaluated 4927 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 225 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
) {
225-4927
122 bool supressStart = false;-
123 if (d->alwaysRunToEnd
d->alwaysRunToEndDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 4919 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
&& d->loopCount != 1
d->loopCount != 1Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
2-4919
124 && d->animationInstance
d->animationInstanceDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
&& d->animationInstance->isRunning()
d->animationIn...e->isRunning()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
) {
0-4
125-
126 if (d->loopCount == -1
d->loopCount == -1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
)
0-2
127 d->animationInstance->setLoopCount(d->loopCount);
executed 2 times by 1 test: d->animationInstance->setLoopCount(d->loopCount);
Executed by:
  • tst_qquickanimations
2
128 else-
129 d->animationInstance->setLoopCount(d->animationInstance->currentLoop() + d->loopCount);
never executed: d->animationInstance->setLoopCount(d->animationInstance->currentLoop() + d->loopCount);
0
130 supressStart = true;-
131 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
2
132 if (!supressStart
!supressStartDescription
TRUEevaluated 4925 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
) {
2-4925
133 d->commence();-
134 started();-
135 }
executed 4925 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
4925
136 }
executed 4927 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
else {
4927
137 if (d->paused
d->pausedDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 215 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
) {
10-215
138 d->paused = false;-
139 pausedChanged(d->paused);-
140 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
10
141-
142 if (d->animationInstance
d->animationInstanceDescription
TRUEevaluated 225 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEnever evaluated
) {
0-225
143 if (d->alwaysRunToEnd
d->alwaysRunToEndDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 217 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
) {
8-217
144 if (d->loopCount != 1
d->loopCount != 1Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
)
2-6
145 d->animationInstance->setLoopCount(d->animationInstance->currentLoop()+1);
executed 6 times by 1 test: d->animationInstance->setLoopCount(d->animationInstance->currentLoop()+1);
Executed by:
  • tst_qquickanimations
6
146 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
else {
8
147 d->animationInstance->stop();-
148 stopped();-
149 }
executed 217 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
217
150 }-
151 }
executed 225 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
225
152-
153 runningChanged(d->running);-
154}
executed 5152 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
5152
155bool QQuickAbstractAnimation::isPaused() const-
156{-
157 const QQuickAbstractAnimationPrivate * const d = d_func();-
158 (((d->paused && d->running) || !d->paused) ? static_cast<void>(0) : qt_assert("(d->paused && d->running) || !d->paused", __FILE__, 335));-
159 return
executed 32 times by 3 tests: return d->paused;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
d->paused;
executed 32 times by 3 tests: return d->paused;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
32
160}-
161-
162void QQuickAbstractAnimation::setPaused(bool p)-
163{-
164 QQuickAbstractAnimationPrivate * const d = d_func();-
165 if (d->paused == p
d->paused == pDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 40 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
)
2-40
166 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanimations
2
167-
168 if (!d->running
!d->runningDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
) {
2-38
169 qmlWarning(this) << "setPaused() cannot be used when animation isn't running.";-
170 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanimations
2
171 }-
172-
173 if (d->group
d->groupDescription
TRUEnever evaluated
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
|| d->disableUserControl
d->disableUserControlDescription
TRUEnever evaluated
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
) {
0-38
174 qmlWarning(this) << "setPaused() cannot be used on non-root animation nodes.";-
175 return;
never executed: return;
0
176 }-
177-
178 d->paused = p;-
179-
180 if (!d->componentComplete
!d->componentCompleteDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
|| !d->animationInstance
!d->animationInstanceDescription
TRUEnever evaluated
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
)
0-36
181 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanimations
2
182-
183 if (d->paused
d->pausedDescription
TRUEevaluated 32 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
)
4-32
184 d->animationInstance->pause();
executed 32 times by 2 tests: d->animationInstance->pause();
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
32
185 else-
186 d->animationInstance->resume();
executed 4 times by 1 test: d->animationInstance->resume();
Executed by:
  • tst_qquickanimations
4
187-
188 pausedChanged(d->paused);-
189}
executed 36 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
36
190-
191void QQuickAbstractAnimation::classBegin()-
192{-
193 QQuickAbstractAnimationPrivate * const d = d_func();-
194 d->componentComplete = false;-
195}
executed 27470 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
27470
196-
197void QQuickAbstractAnimation::componentComplete()-
198{-
199 QQuickAbstractAnimationPrivate * const d = d_func();-
200 d->componentComplete = true;-
201}
executed 27462 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
27462
202-
203void QQuickAbstractAnimation::componentFinalized()-
204{-
205 QQuickAbstractAnimationPrivate * const d = d_func();-
206 if (d->running
d->runningDescription
TRUEevaluated 4684 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_examples
) {
4-4684
207 d->running = false;-
208 setRunning(true);-
209 }
executed 4684 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
4684
210 if (d->paused
d->pausedDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 4684 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
) {
4-4684
211 d->paused = false;-
212 setPaused(true);-
213 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
4
214}
executed 4688 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
4688
215bool QQuickAbstractAnimation::alwaysRunToEnd() const-
216{-
217 const QQuickAbstractAnimationPrivate * const d = d_func();-
218 return
executed 8 times by 2 tests: return d->alwaysRunToEnd;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
d->alwaysRunToEnd;
executed 8 times by 2 tests: return d->alwaysRunToEnd;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
8
219}-
220-
221void QQuickAbstractAnimation::setAlwaysRunToEnd(bool f)-
222{-
223 QQuickAbstractAnimationPrivate * const d = d_func();-
224 if (d->alwaysRunToEnd == f
d->alwaysRunToEnd == fDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanimations
)
0-6
225 return;
never executed: return;
0
226-
227 d->alwaysRunToEnd = f;-
228 alwaysRunToEndChanged(f);-
229}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
6
230int QQuickAbstractAnimation::loops() const-
231{-
232 const QQuickAbstractAnimationPrivate * const d = d_func();-
233 return
executed 8 times by 2 tests: return d->loopCount;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
d->loopCount;
executed 8 times by 2 tests: return d->loopCount;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
8
234}-
235-
236void QQuickAbstractAnimation::setLoops(int loops)-
237{-
238 QQuickAbstractAnimationPrivate * const d = d_func();-
239 if (loops < 0
loops < 0Description
TRUEevaluated 612 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
)
8-612
240 loops = -1;
executed 612 times by 5 tests: loops = -1;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
612
241-
242 if (loops == d->loopCount
loops == d->loopCountDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 618 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
)
2-618
243 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_examples
2
244-
245 d->loopCount = loops;-
246 loopCountChanged(loops);-
247}
executed 618 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
618
248-
249int QQuickAbstractAnimation::duration() const-
250{-
251 const QQuickAbstractAnimationPrivate * const d = d_func();-
252 return
never executed: return d->animationInstance ? d->animationInstance->duration() : 0;
d->animationInstance ? d->animationInstance->duration() : 0;
never executed: return d->animationInstance ? d->animationInstance->duration() : 0;
0
253}-
254-
255int QQuickAbstractAnimation::currentTime()-
256{-
257 QQuickAbstractAnimationPrivate * const d = d_func();-
258 return
executed 12 times by 2 tests: return d->animationInstance ? d->animationInstance->currentLoopTime() : 0;
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
d->animationInstance ? d->animationInstance->currentLoopTime() : 0;
executed 12 times by 2 tests: return d->animationInstance ? d->animationInstance->currentLoopTime() : 0;
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
12
259}-
260-
261void QQuickAbstractAnimation::setCurrentTime(int time)-
262{-
263 QQuickAbstractAnimationPrivate * const d = d_func();-
264 if (d->animationInstance
d->animationInstanceDescription
TRUEevaluated 26 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
FALSEnever evaluated
)
0-26
265 d->animationInstance->setCurrentTime(time);
executed 26 times by 2 tests: d->animationInstance->setCurrentTime(time);
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
26
266-
267}
executed 26 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
26
268-
269QQuickAnimationGroup *QQuickAbstractAnimation::group() const-
270{-
271 const QQuickAbstractAnimationPrivate * const d = d_func();-
272 return
never executed: return d->group;
d->group;
never executed: return d->group;
0
273}-
274-
275void QQuickAbstractAnimation::setGroup(QQuickAnimationGroup *g)-
276{-
277 QQuickAbstractAnimationPrivate * const d = d_func();-
278 if (d->group == g
d->group == gDescription
TRUEnever evaluated
FALSEevaluated 20380 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
)
0-20380
279 return;
never executed: return;
0
280 if (d->group
d->groupDescription
TRUEnever evaluated
FALSEevaluated 20380 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
)
0-20380
281 d->group->d_func()->animations.removeAll(this);
never executed: d->group->d_func()->animations.removeAll(this);
0
282-
283 d->group = g;-
284-
285 if (d->group
d->groupDescription
TRUEevaluated 20380 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
&& !d->group->d_func()->animations.contains(this)
!d->group->d_f...contains(this)Description
TRUEevaluated 20380 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
)
0-20380
286 d->group->d_func()->animations.append(this);
executed 20380 times by 13 tests: d->group->d_func()->animations.append(this);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
20380
287}
executed 20380 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
20380
288void QQuickAbstractAnimation::start()-
289{-
290 setRunning(true);-
291}
executed 265 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
265
292void QQuickAbstractAnimation::pause()-
293{-
294 setPaused(true);-
295}
executed 28 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
28
296void QQuickAbstractAnimation::resume()-
297{-
298 setPaused(false);-
299}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
6
300void QQuickAbstractAnimation::stop()-
301{-
302 setRunning(false);-
303}
executed 31 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
31
304void QQuickAbstractAnimation::restart()-
305{-
306 stop();-
307 start();-
308}
executed 13 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
13
309void QQuickAbstractAnimation::complete()-
310{-
311 QQuickAbstractAnimationPrivate * const d = d_func();-
312 if (isRunning()
isRunning()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
&& d->animationInstance
d->animationInstanceDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
) {
0-2
313 d->animationInstance->setCurrentTime(d->animationInstance->duration());-
314 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
2
315}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
2
316-
317void QQuickAbstractAnimation::setTarget(const QQmlProperty &p)-
318{-
319 QQuickAbstractAnimationPrivate * const d = d_func();-
320 d->defaultProperty = p;-
321-
322 if (!d->avoidPropertyValueSourceStart
!d->avoidPrope...lueSourceStartDescription
TRUEevaluated 4638 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
FALSEevaluated 464 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquicktaphandler
)
464-4638
323 setRunning(true);
executed 4638 times by 6 tests: setRunning(true);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
4638
324}
executed 5102 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
5102
325-
326-
327-
328-
329-
330-
331void QQuickAbstractAnimation::setDefaultTarget(const QQmlProperty &p)-
332{-
333 QQuickAbstractAnimationPrivate * const d = d_func();-
334 d->defaultProperty = p;-
335}
executed 8820 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
8820
336-
337-
338-
339-
340-
341-
342void QQuickAbstractAnimation::setDisableUserControl()-
343{-
344 QQuickAbstractAnimationPrivate * const d = d_func();-
345 d->disableUserControl = true;-
346}
executed 1362 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
1362
347-
348void QQuickAbstractAnimation::setEnableUserControl()-
349{-
350 QQuickAbstractAnimationPrivate * const d = d_func();-
351 d->disableUserControl = false;-
352-
353}
never executed: end of block
0
354-
355bool QQuickAbstractAnimation::userControlDisabled() const-
356{-
357 const QQuickAbstractAnimationPrivate * const d = d_func();-
358 return
executed 10 times by 1 test: return d->disableUserControl;
Executed by:
  • tst_qquickanimationcontroller
d->disableUserControl;
executed 10 times by 1 test: return d->disableUserControl;
Executed by:
  • tst_qquickanimationcontroller
10
359}-
360-
361QAbstractAnimationJob* QQuickAbstractAnimation::initInstance(QAbstractAnimationJob *animation)-
362{-
363 QQuickAbstractAnimationPrivate * const d = d_func();-
364 animation->setLoopCount(d->loopCount);-
365 return
executed 82687 times by 17 tests: return animation;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
animation;
executed 82687 times by 17 tests: return animation;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
82687
366}-
367-
368QAbstractAnimationJob* QQuickAbstractAnimation::transition(QQuickStateActions &actions,-
369 QQmlProperties &modified,-
370 TransitionDirection direction,-
371 QObject *defaultTarget)-
372{-
373 (void)actions;;-
374 (void)modified;;-
375 (void)direction;;-
376 (void)defaultTarget;;-
377 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
378}-
379-
380void QQuickAbstractAnimationPrivate::animationFinished(QAbstractAnimationJob*)-
381{-
382 QQuickAbstractAnimation * const q = q_func();-
383 q->setRunning(false);-
384 if (alwaysRunToEnd
alwaysRunToEndDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 205 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
) {
6-205
385 q->stopped();-
386-
387 if (loopCount != 1
loopCount != 1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
)
2-4
388 animationInstance->setLoopCount(loopCount);
executed 4 times by 1 test: animationInstance->setLoopCount(loopCount);
Executed by:
  • tst_qquickanimations
4
389 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
6
390 q->finished();-
391}
executed 211 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
211
392-
393QQuickAbstractAnimation::ThreadingModel QQuickAbstractAnimation::threadingModel() const-
394{-
395 return
executed 105523 times by 17 tests: return GuiThread;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
GuiThread;
executed 105523 times by 17 tests: return GuiThread;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
105523
396}-
397QQuickPauseAnimation::QQuickPauseAnimation(QObject *parent)-
398: QQuickAbstractAnimation(*(new QQuickPauseAnimationPrivate), parent)-
399{-
400}
executed 4288 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
4288
401-
402QQuickPauseAnimation::~QQuickPauseAnimation()-
403{-
404}-
405-
406-
407-
408-
409-
410-
411-
412int QQuickPauseAnimation::duration() const-
413{-
414 const QQuickPauseAnimationPrivate * const d = d_func();-
415 return
executed 2 times by 1 test: return d->duration;
Executed by:
  • tst_qquickanimations
d->duration;
executed 2 times by 1 test: return d->duration;
Executed by:
  • tst_qquickanimations
2
416}-
417-
418void QQuickPauseAnimation::setDuration(int duration)-
419{-
420 if (duration < 0
duration < 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 6410 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
) {
2-6410
421 qmlWarning(this) << tr("Cannot set a duration of < 0");-
422 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanimations
2
423 }-
424-
425 QQuickPauseAnimationPrivate * const d = d_func();-
426 if (d->duration == duration
d->duration == durationDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 6402 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
)
8-6402
427 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_examples
8
428 d->duration = duration;-
429 durationChanged(duration);-
430}
executed 6402 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
6402
431-
432QAbstractAnimationJob* QQuickPauseAnimation::transition(QQuickStateActions &actions,-
433 QQmlProperties &modified,-
434 TransitionDirection direction,-
435 QObject *defaultTarget)-
436{-
437 QQuickPauseAnimationPrivate * const d = d_func();-
438 (void)actions;;-
439 (void)modified;;-
440 (void)direction;;-
441 (void)defaultTarget;;-
442-
443 return
executed 2578 times by 8 tests: return initInstance(new QPauseAnimationJob(d->duration));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
initInstance(new QPauseAnimationJob(d->duration));
executed 2578 times by 8 tests: return initInstance(new QPauseAnimationJob(d->duration));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
2578
444}-
445QQuickColorAnimation::QQuickColorAnimation(QObject *parent)-
446: QQuickPropertyAnimation(parent)-
447{-
448 QQuickPropertyAnimationPrivate * const d = d_func();-
449 d->interpolatorType = QMetaType::QColor;-
450 d->defaultToInterpolatorType = true;-
451 d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);-
452}
executed 184 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
184
453-
454QQuickColorAnimation::~QQuickColorAnimation()-
455{-
456}-
457QColor QQuickColorAnimation::from() const-
458{-
459 const QQuickPropertyAnimationPrivate * const d = d_func();-
460 return
executed 2 times by 1 test: return d->from.value<QColor>();
Executed by:
  • tst_qquickanimations
d->from.value<QColor>();
executed 2 times by 1 test: return d->from.value<QColor>();
Executed by:
  • tst_qquickanimations
2
461}-
462-
463void QQuickColorAnimation::setFrom(const QColor &f)-
464{-
465 QQuickPropertyAnimation::setFrom(f);-
466}
executed 174 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
174
467QColor QQuickColorAnimation::to() const-
468{-
469 const QQuickPropertyAnimationPrivate * const d = d_func();-
470 return
executed 2 times by 1 test: return d->to.value<QColor>();
Executed by:
  • tst_qquickanimations
d->to.value<QColor>();
executed 2 times by 1 test: return d->to.value<QColor>();
Executed by:
  • tst_qquickanimations
2
471}-
472-
473void QQuickColorAnimation::setTo(const QColor &t)-
474{-
475 QQuickPropertyAnimation::setTo(t);-
476}
executed 180 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
180
477-
478QActionAnimation::QActionAnimation()-
479 : QAbstractAnimationJob(), animAction(nullptr)-
480{-
481}
executed 960 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
960
482-
483QActionAnimation::QActionAnimation(QAbstractAnimationAction *action)-
484 : QAbstractAnimationJob(), animAction(action)-
485{-
486}
executed 21638 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
21638
487-
488QActionAnimation::~QActionAnimation()-
489{-
490 delete animAction;-
491}
executed 22592 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
22592
492-
493int QActionAnimation::duration() const-
494{-
495 return
executed 574315 times by 11 tests: return 0;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
0;
executed 574315 times by 11 tests: return 0;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
574315
496}-
497-
498void QActionAnimation::setAnimAction(QAbstractAnimationAction *action)-
499{-
500 if (isRunning()
isRunning()Description
TRUEnever evaluated
FALSEevaluated 960 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
)
0-960
501 stop();
never executed: stop();
0
502 animAction = action;-
503}
executed 960 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
960
504-
505void QActionAnimation::updateCurrentTime(int)-
506{-
507}-
508-
509void QActionAnimation::updateState(State newState, State oldState)-
510{-
511 (void)oldState;;-
512-
513 if (newState == Running
newState == RunningDescription
TRUEevaluated 18856 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 18856 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
) {
18856
514 if (animAction
animActionDescription
TRUEevaluated 18856 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
) {
0-18856
515 animAction->doAction();-
516 }
executed 18856 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
18856
517 }
executed 18856 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
18856
518}
executed 37712 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
37712
519-
520void QActionAnimation::debugAnimation(QDebug d) const-
521{-
522 d << "ActionAnimation(" << hex << (const void *) this << dec << ")";-
523-
524 if (animAction
animActionDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
525 int indentLevel = 1;-
526 const QAbstractAnimationJob *job = this;-
527 while ((
(job = job->group())Description
TRUEnever evaluated
FALSEnever evaluated
job = job->group())
(job = job->group())Description
TRUEnever evaluated
FALSEnever evaluated
)
0
528 ++
never executed: ++indentLevel;
indentLevel;
never executed: ++indentLevel;
0
529 animAction->debugAction(d, indentLevel);-
530 }
never executed: end of block
0
531}
never executed: end of block
0
532QQuickScriptAction::QQuickScriptAction(QObject *parent)-
533 :QQuickAbstractAnimation(*(new QQuickScriptActionPrivate), parent)-
534{-
535}
executed 4042 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
4042
536-
537QQuickScriptAction::~QQuickScriptAction()-
538{-
539}-
540-
541QQuickScriptActionPrivate::QQuickScriptActionPrivate()-
542 : QQuickAbstractAnimationPrivate(), hasRunScriptScript(false), reversing(false){}
executed 4042 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
4042
543-
544-
545-
546-
547-
548QQmlScriptString QQuickScriptAction::script() const-
549{-
550 const QQuickScriptActionPrivate * const d = d_func();-
551 return
never executed: return d->script;
d->script;
never executed: return d->script;
0
552}-
553-
554void QQuickScriptAction::setScript(const QQmlScriptString &script)-
555{-
556 QQuickScriptActionPrivate * const d = d_func();-
557 d->script = script;-
558}
executed 4042 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
4042
559QString QQuickScriptAction::stateChangeScriptName() const-
560{-
561 const QQuickScriptActionPrivate * const d = d_func();-
562 return
never executed: return d->name;
d->name;
never executed: return d->name;
0
563}-
564-
565void QQuickScriptAction::setStateChangeScriptName(const QString &name)-
566{-
567 QQuickScriptActionPrivate * const d = d_func();-
568 d->name = name;-
569}
never executed: end of block
0
570-
571QAbstractAnimationAction* QQuickScriptActionPrivate::createAction()-
572{-
573 return
executed 21638 times by 8 tests: return new Proxy(this);
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
new Proxy(this);
executed 21638 times by 8 tests: return new Proxy(this);
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
21638
574}-
575-
576void QQuickScriptActionPrivate::debugAction(QDebug d, int indentLevel) const-
577{-
578 QQmlScriptString scriptStr = hasRunScriptScript
hasRunScriptScriptDescription
TRUEnever evaluated
FALSEnever evaluated
? runScriptScript : script;
0
579-
580 if (!scriptStr.isEmpty()
!scriptStr.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
581 QQmlExpression expr(scriptStr);-
582-
583 QByteArray ind(indentLevel, ' ');-
584 QString exprStr = expr.expression();-
585 int endOfFirstLine = exprStr.indexOf('\n');-
586 d << "\n" << ind.constData() << exprStr.leftRef(endOfFirstLine);-
587 if (endOfFirstLine != -1
endOfFirstLine != -1Description
TRUEnever evaluated
FALSEnever evaluated
&& endOfFirstLine < exprStr.length()
endOfFirstLine...prStr.length()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
588 d << "...";
never executed: d << "...";
0
589 }
never executed: end of block
0
590}
never executed: end of block
0
591-
592void QQuickScriptActionPrivate::execute()-
593{-
594 QQuickScriptAction * const q = q_func();-
595 if (hasRunScriptScript
hasRunScriptScriptDescription
TRUEnever evaluated
FALSEevaluated 18056 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
&& reversing
reversingDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-18056
596 return;
never executed: return;
0
597-
598 QQmlScriptString scriptStr = hasRunScriptScript
hasRunScriptScriptDescription
TRUEnever evaluated
FALSEevaluated 18056 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
? runScriptScript : script;
0-18056
599-
600 if (!scriptStr.isEmpty()
!scriptStr.isEmpty()Description
TRUEevaluated 18056 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
FALSEnever evaluated
) {
0-18056
601 QQmlExpression expr(scriptStr);-
602 expr.evaluate();-
603 if (expr.hasError()
expr.hasError()Description
TRUEnever evaluated
FALSEevaluated 18056 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
)
0-18056
604 qmlWarning(q) << expr.error();
never executed: qmlWarning(q) << expr.error();
0
605 }
executed 18056 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
18056
606}
executed 18056 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
18056
607-
608QAbstractAnimationJob* QQuickScriptAction::transition(QQuickStateActions &actions,-
609 QQmlProperties &modified,-
610 TransitionDirection direction,-
611 QObject *defaultTarget)-
612{-
613 QQuickScriptActionPrivate * const d = d_func();-
614 (void)modified;;-
615 (void)defaultTarget;;-
616-
617 d->hasRunScriptScript = false;-
618 d->reversing = (direction == Backward);-
619 if (!d->name.isEmpty()
!d->name.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 21638 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
) {
0-21638
620 for (int ii = 0; ii < actions.count()
ii < actions.count()Description
TRUEnever evaluated
FALSEnever evaluated
; ++ii) {
0
621 QQuickStateAction &action = actions[ii];-
622-
623 if (action.event
action.eventDescription
TRUEnever evaluated
FALSEnever evaluated
&& action.event->type() == QQuickStateActionEvent::Script
action.event->...nEvent::ScriptDescription
TRUEnever evaluated
FALSEnever evaluated
0
624 && static_cast<
static_cast<QQ...e() == d->nameDescription
TRUEnever evaluated
FALSEnever evaluated
QQuickStateChangeScript*>(action.event)->name() == d->name
static_cast<QQ...e() == d->nameDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
625 d->runScriptScript = static_cast<QQuickStateChangeScript*>(action.event)->script();-
626 d->hasRunScriptScript = true;-
627 action.actionDone = true;-
628 break;
never executed: break;
0
629 }-
630 }
never executed: end of block
0
631 }
never executed: end of block
0
632 return
executed 21638 times by 8 tests: return initInstance(new QActionAnimation(d->createAction()));
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
initInstance(new QActionAnimation(d->createAction()));
executed 21638 times by 8 tests: return initInstance(new QActionAnimation(d->createAction()));
Executed by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
21638
633}-
634QQuickPropertyAction::QQuickPropertyAction(QObject *parent)-
635: QQuickAbstractAnimation(*(new QQuickPropertyActionPrivate), parent)-
636{-
637}
executed 3596 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
3596
638-
639QQuickPropertyAction::~QQuickPropertyAction()-
640{-
641}-
642-
643QObject *QQuickPropertyAction::target() const-
644{-
645 const QQuickPropertyActionPrivate * const d = d_func();-
646 return
never executed: return d->target;
d->target;
never executed: return d->target;
0
647}-
648-
649void QQuickPropertyAction::setTargetObject(QObject *o)-
650{-
651 QQuickPropertyActionPrivate * const d = d_func();-
652 if (d->target == o
d->target == oDescription
TRUEnever evaluated
FALSEevaluated 1118 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
)
0-1118
653 return;
never executed: return;
0
654 d->target = o;-
655 targetChanged();-
656}
executed 1118 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
1118
657-
658QString QQuickPropertyAction::property() const-
659{-
660 const QQuickPropertyActionPrivate * const d = d_func();-
661 return
never executed: return d->propertyName;
d->propertyName;
never executed: return d->propertyName;
0
662}-
663-
664void QQuickPropertyAction::setProperty(const QString &n)-
665{-
666 QQuickPropertyActionPrivate * const d = d_func();-
667 if (d->propertyName == n
d->propertyName == nDescription
TRUEnever evaluated
FALSEevaluated 1118 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
)
0-1118
668 return;
never executed: return;
0
669 d->propertyName = n;-
670 propertyChanged();-
671}
executed 1118 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
1118
672QString QQuickPropertyAction::properties() const-
673{-
674 const QQuickPropertyActionPrivate * const d = d_func();-
675 return
never executed: return d->properties;
d->properties;
never executed: return d->properties;
0
676}-
677-
678void QQuickPropertyAction::setProperties(const QString &p)-
679{-
680 QQuickPropertyActionPrivate * const d = d_func();-
681 if (d->properties == p
d->properties == pDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
682 return;
never executed: return;
0
683 d->properties = p;-
684 propertiesChanged(p);-
685}
never executed: end of block
0
686-
687QQmlListProperty<QObject> QQuickPropertyAction::targets()-
688{-
689 QQuickPropertyActionPrivate * const d = d_func();-
690 return
never executed: return QQmlListProperty<QObject>(this, d->targets);
QQmlListProperty<QObject>(this, d->targets);
never executed: return QQmlListProperty<QObject>(this, d->targets);
0
691}-
692-
693-
694-
695-
696-
697-
698-
699QQmlListProperty<QObject> QQuickPropertyAction::exclude()-
700{-
701 QQuickPropertyActionPrivate * const d = d_func();-
702 return
never executed: return QQmlListProperty<QObject>(this, d->exclude);
QQmlListProperty<QObject>(this, d->exclude);
never executed: return QQmlListProperty<QObject>(this, d->exclude);
0
703}-
704QVariant QQuickPropertyAction::value() const-
705{-
706 const QQuickPropertyActionPrivate * const d = d_func();-
707 return
never executed: return d->value;
d->value;
never executed: return d->value;
0
708}-
709-
710void QQuickPropertyAction::setValue(const QVariant &v)-
711{-
712 QQuickPropertyActionPrivate * const d = d_func();-
713 if (d->value.isNull
d->value.isNullDescription
TRUEevaluated 3594 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
|| d->value != v
d->value != vDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-3594
714 d->value = v;-
715 valueChanged(v);-
716 }
executed 3594 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
3594
717}
executed 3594 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
3594
718-
719QAbstractAnimationJob* QQuickPropertyAction::transition(QQuickStateActions &actions,-
720 QQmlProperties &modified,-
721 TransitionDirection direction,-
722 QObject *defaultTarget)-
723{-
724 QQuickPropertyActionPrivate * const d = d_func();-
725 (void)direction;;-
726-
727 struct QQuickSetPropertyAnimationAction : public QAbstractAnimationAction-
728 {-
729 QQuickStateActions actions;-
730 void doAction() override-
731 {-
732 for (int ii = 0; ii < actions.count()
ii < actions.count()Description
TRUEevaluated 796 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 796 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
; ++ii) {
796
733 const QQuickStateAction &action = actions.at(ii);-
734 QQmlPropertyPrivate::write(action.property, action.toValue, QQmlPropertyData::BypassInterceptor | QQmlPropertyData::DontRemoveBinding);-
735 }
executed 796 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
796
736 }
executed 796 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
796
737 void debugAction(QDebug d, int indentLevel) const override {-
738 QByteArray ind(indentLevel, ' ');-
739 for (int ii = 0; ii < actions.count()
ii < actions.count()Description
TRUEnever evaluated
FALSEnever evaluated
; ++ii) {
0
740 const QQuickStateAction &action = actions.at(ii);-
741 d << "\n" << ind.constData() << "target:" << action.property.object() << "property:" << action.property.name()-
742 << "value:" << action.toValue;-
743 }
never executed: end of block
0
744 }
never executed: end of block
0
745 };-
746-
747 QStringList props = d->properties.isEmpty()
d->properties.isEmpty()Description
TRUEevaluated 956 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
? QStringList() : d->properties.split(QLatin1Char(','));
0-956
748 for (int ii = 0; ii < props.count()
ii < props.count()Description
TRUEnever evaluated
FALSEevaluated 956 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
; ++ii)
0-956
749 props[ii] = props.at(ii).trimmed();
never executed: props[ii] = props.at(ii).trimmed();
0
750 if (!d->propertyName.isEmpty()
!d->propertyName.isEmpty()Description
TRUEevaluated 746 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
FALSEevaluated 210 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicktaphandler
)
210-746
751 props << d->propertyName;
executed 746 times by 5 tests: props << d->propertyName;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
746
752-
753 QList<QObject*> targets = d->targets;-
754 if (d->target
d->targetDescription
TRUEevaluated 746 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
FALSEevaluated 210 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicktaphandler
)
210-746
755 targets.append(d->target);
executed 746 times by 5 tests: targets.append(d->target);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
746
756-
757 bool hasSelectors = !props.isEmpty()
!props.isEmpty()Description
TRUEevaluated 746 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
FALSEevaluated 210 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicktaphandler
|| !targets.isEmpty()
!targets.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 210 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicktaphandler
|| !d->exclude.isEmpty()
!d->exclude.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 210 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicktaphandler
;
0-746
758-
759 if (d->defaultProperty.isValid()
d->defaultProperty.isValid()Description
TRUEevaluated 214 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicktaphandler
FALSEevaluated 742 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
&& !hasSelectors
!hasSelectorsDescription
TRUEevaluated 210 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicktaphandler
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_examples
) {
4-742
760 props << d->defaultProperty.name();-
761 targets << d->defaultProperty.object();-
762 }
executed 210 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicktaphandler
210
763-
764 if (defaultTarget
defaultTargetDescription
TRUEevaluated 524 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 432 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
&& targets.isEmpty()
targets.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 524 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
)
0-524
765 targets << defaultTarget;
never executed: targets << defaultTarget;
0
766-
767 QQuickSetPropertyAnimationAction *data = new QQuickSetPropertyAnimationAction;-
768-
769 bool hasExplicit = false;-
770-
771 if (d->value.isValid()
d->value.isValid()Description
TRUEevaluated 954 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
) {
2-954
772 for (int i = 0; i < props.count()
i < props.count()Description
TRUEevaluated 954 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 954 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
; ++i) {
954
773 for (int j = 0; j < targets.count()
j < targets.count()Description
TRUEevaluated 954 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 954 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
; ++j) {
954
774 QQuickStateAction myAction;-
775 myAction.property = d->createProperty(targets.at(j), props.at(i), this);-
776 if (myAction.property.isValid()
myAction.property.isValid()Description
TRUEevaluated 954 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
) {
0-954
777 myAction.toValue = d->value;-
778 QQuickPropertyAnimationPrivate::convertVariant(myAction.toValue, myAction.property.propertyType());-
779 data->actions << myAction;-
780 hasExplicit = true;-
781 for (int ii = 0; ii < actions.count()
ii < actions.count()Description
TRUEevaluated 1050 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 954 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
; ++ii) {
954-1050
782 QQuickStateAction &action = actions[ii];-
783 if (action.property.object() == myAction.property.object()
action.propert...perty.object()Description
TRUEnever evaluated
FALSEevaluated 1050 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
&&
0-1050
784 myAction.property.name() == action.property.name()
myAction.prope...roperty.name()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
785 modified << action.property;-
786 break;
never executed: break;
0
787 }-
788 }
executed 1050 times by 3 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
1050
789 }
executed 954 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
954
790 }
executed 954 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
954
791 }
executed 954 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
954
792 }
executed 954 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
954
793-
794 if (!hasExplicit
!hasExplicitDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
FALSEevaluated 954 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
)
2-954
795 for (int ii = 0; ii < actions.count()
ii < actions.count()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
; ++ii) {
2
796 QQuickStateAction &action = actions[ii];-
797-
798 QObject *obj = action.property.object();-
799 QString propertyName = action.property.name();-
800 QObject *sObj = action.specifiedObject;-
801 QString sPropertyName = action.specifiedProperty;-
802 bool same = (obj == sObj);-
803-
804 if ((targets.isEmpty()
targets.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
|| targets.contains(obj)
targets.contains(obj)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
FALSEnever evaluated
|| (!same
!sameDescription
TRUEnever evaluated
FALSEnever evaluated
&& targets.contains(sObj)
targets.contains(sObj)Description
TRUEnever evaluated
FALSEnever evaluated
)) &&
0-2
805 (
(!d->exclude.contains(obj))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
FALSEnever evaluated
!d->exclude.contains(obj))
(!d->exclude.contains(obj))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
FALSEnever evaluated
&& (same
sameDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
|| (
(!d->exclude.contains(sObj))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
FALSEnever evaluated
!d->exclude.contains(sObj))
(!d->exclude.contains(sObj))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
FALSEnever evaluated
) &&
0-2
806 (props.contains(propertyName)
props.contains(propertyName)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
FALSEnever evaluated
|| (!same
!sameDescription
TRUEnever evaluated
FALSEnever evaluated
&& props.contains(sPropertyName)
props.contains(sPropertyName)Description
TRUEnever evaluated
FALSEnever evaluated
))) {
0-2
807 QQuickStateAction myAction = action;-
808-
809 if (d->value.isValid()
d->value.isValid()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickbehaviors
)
0-2
810 myAction.toValue = d->value;
never executed: myAction.toValue = d->value;
0
811 QQuickPropertyAnimationPrivate::convertVariant(myAction.toValue, myAction.property.propertyType());-
812-
813 modified << action.property;-
814 data->actions << myAction;-
815 action.fromValue = myAction.toValue;-
816 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickbehaviors
2
817 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickbehaviors
2
818-
819 QActionAnimation *action = new QActionAnimation;-
820 if (data->actions.count()
data->actions.count()Description
TRUEevaluated 956 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
) {
0-956
821 action->setAnimAction(data);-
822 }
executed 956 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
else {
956
823 delete data;-
824 }
never executed: end of block
0
825 return
executed 956 times by 9 tests: return initInstance(action);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
initInstance(action);
executed 956 times by 9 tests: return initInstance(action);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
956
826}-
827QQuickNumberAnimation::QQuickNumberAnimation(QObject *parent)-
828: QQuickPropertyAnimation(parent)-
829{-
830 init();-
831}
executed 8020 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
8020
832-
833QQuickNumberAnimation::QQuickNumberAnimation(QQuickPropertyAnimationPrivate &dd, QObject *parent)-
834: QQuickPropertyAnimation(dd, parent)-
835{-
836 init();-
837}
executed 98 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
98
838-
839QQuickNumberAnimation::~QQuickNumberAnimation()-
840{-
841}-
842-
843void QQuickNumberAnimation::init()-
844{-
845 QQuickPropertyAnimationPrivate * const d = d_func();-
846 d->interpolatorType = QMetaType::QReal;-
847 d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);-
848}
executed 8118 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
8118
849qreal QQuickNumberAnimation::from() const-
850{-
851 const QQuickPropertyAnimationPrivate * const d = d_func();-
852 return
never executed: return d->from.toReal();
d->from.toReal();
never executed: return d->from.toReal();
0
853}-
854-
855void QQuickNumberAnimation::setFrom(qreal f)-
856{-
857 QQuickPropertyAnimation::setFrom(f);-
858}
executed 5254 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
5254
859qreal QQuickNumberAnimation::to() const-
860{-
861 const QQuickPropertyAnimationPrivate * const d = d_func();-
862 return
executed 27 times by 3 tests: return d->to.toReal();
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
d->to.toReal();
executed 27 times by 3 tests: return d->to.toReal();
Executed by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
27
863}-
864-
865void QQuickNumberAnimation::setTo(qreal t)-
866{-
867 QQuickPropertyAnimation::setTo(t);-
868}
executed 6631 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
6631
869QQuickVector3dAnimation::QQuickVector3dAnimation(QObject *parent)-
870: QQuickPropertyAnimation(parent)-
871{-
872 QQuickPropertyAnimationPrivate * const d = d_func();-
873 d->interpolatorType = QMetaType::QVector3D;-
874 d->defaultToInterpolatorType = true;-
875 d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);-
876}
never executed: end of block
0
877-
878QQuickVector3dAnimation::~QQuickVector3dAnimation()-
879{-
880}-
881QVector3D QQuickVector3dAnimation::from() const-
882{-
883 const QQuickPropertyAnimationPrivate * const d = d_func();-
884 return
never executed: return d->from.value<QVector3D>();
d->from.value<QVector3D>();
never executed: return d->from.value<QVector3D>();
0
885}-
886-
887void QQuickVector3dAnimation::setFrom(QVector3D f)-
888{-
889 QQuickPropertyAnimation::setFrom(f);-
890}
never executed: end of block
0
891QVector3D QQuickVector3dAnimation::to() const-
892{-
893 const QQuickPropertyAnimationPrivate * const d = d_func();-
894 return
never executed: return d->to.value<QVector3D>();
d->to.value<QVector3D>();
never executed: return d->to.value<QVector3D>();
0
895}-
896-
897void QQuickVector3dAnimation::setTo(QVector3D t)-
898{-
899 QQuickPropertyAnimation::setTo(t);-
900}
never executed: end of block
0
901QVariant _q_interpolateShortestRotation(qreal &f, qreal &t, qreal progress)-
902{-
903 qreal newt = t;-
904 qreal diff = t-f;-
905 while(diff > 180.0
diff > 180.0Description
TRUEevaluated 126 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 128 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
){
126-128
906 newt -= 360.0;-
907 diff -= 360.0;-
908 }
executed 126 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
126
909 while(diff < -180.0
diff < -180.0Description
TRUEnever evaluated
FALSEevaluated 128 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
){
0-128
910 newt += 360.0;-
911 diff += 360.0;-
912 }
never executed: end of block
0
913 return
executed 128 times by 2 tests: return QVariant(f + (newt - f) * progress);
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
QVariant(f + (newt - f) * progress);
executed 128 times by 2 tests: return QVariant(f + (newt - f) * progress);
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
128
914}-
915-
916QVariant _q_interpolateClockwiseRotation(qreal &f, qreal &t, qreal progress)-
917{-
918 qreal newt = t;-
919 qreal diff = t-f;-
920 while(diff < 0.0
diff < 0.0Description
TRUEnever evaluated
FALSEevaluated 126 times by 1 test
Evaluated by:
  • tst_qquickanimations
){
0-126
921 newt += 360.0;-
922 diff += 360.0;-
923 }
never executed: end of block
0
924 return
executed 126 times by 1 test: return QVariant(f + (newt - f) * progress);
Executed by:
  • tst_qquickanimations
QVariant(f + (newt - f) * progress);
executed 126 times by 1 test: return QVariant(f + (newt - f) * progress);
Executed by:
  • tst_qquickanimations
126
925}-
926-
927QVariant _q_interpolateCounterclockwiseRotation(qreal &f, qreal &t, qreal progress)-
928{-
929 qreal newt = t;-
930 qreal diff = t-f;-
931 while(diff > 0.0
diff > 0.0Description
TRUEevaluated 252 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 126 times by 1 test
Evaluated by:
  • tst_qquickanimations
){
126-252
932 newt -= 360.0;-
933 diff -= 360.0;-
934 }
executed 252 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
252
935 return
executed 126 times by 1 test: return QVariant(f + (newt - f) * progress);
Executed by:
  • tst_qquickanimations
QVariant(f + (newt - f) * progress);
executed 126 times by 1 test: return QVariant(f + (newt - f) * progress);
Executed by:
  • tst_qquickanimations
126
936}-
937-
938QQuickRotationAnimation::QQuickRotationAnimation(QObject *parent)-
939: QQuickPropertyAnimation(*(new QQuickRotationAnimationPrivate), parent)-
940{-
941 QQuickRotationAnimationPrivate * const d = d_func();-
942 d->interpolatorType = QMetaType::QReal;-
943 d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);-
944 d->defaultProperties = QLatin1String("rotation,angle");-
945}
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
14
946-
947QQuickRotationAnimation::~QQuickRotationAnimation()-
948{-
949}-
950qreal QQuickRotationAnimation::from() const-
951{-
952 const QQuickRotationAnimationPrivate * const d = d_func();-
953 return
never executed: return d->from.toReal();
d->from.toReal();
never executed: return d->from.toReal();
0
954}-
955-
956void QQuickRotationAnimation::setFrom(qreal f)-
957{-
958 QQuickPropertyAnimation::setFrom(f);-
959}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
4
960qreal QQuickRotationAnimation::to() const-
961{-
962 const QQuickRotationAnimationPrivate * const d = d_func();-
963 return
executed 2 times by 1 test: return d->to.toReal();
Executed by:
  • tst_qquickanimations
d->to.toReal();
executed 2 times by 1 test: return d->to.toReal();
Executed by:
  • tst_qquickanimations
2
964}-
965-
966void QQuickRotationAnimation::setTo(qreal t)-
967{-
968 QQuickPropertyAnimation::setTo(t);-
969}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
4
970QQuickRotationAnimation::RotationDirection QQuickRotationAnimation::direction() const-
971{-
972 const QQuickRotationAnimationPrivate * const d = d_func();-
973 return
executed 2 times by 1 test: return d->direction;
Executed by:
  • tst_qquickanimations
d->direction;
executed 2 times by 1 test: return d->direction;
Executed by:
  • tst_qquickanimations
2
974}-
975-
976void QQuickRotationAnimation::setDirection(QQuickRotationAnimation::RotationDirection direction)-
977{-
978 QQuickRotationAnimationPrivate * const d = d_func();-
979 if (d->direction == direction
d->direction == directionDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
)
2-8
980 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanimations
2
981-
982 d->direction = direction;-
983 switch(d->direction) {-
984 case
executed 2 times by 1 test: case Clockwise:
Executed by:
  • tst_qquickanimations
Clockwise:
executed 2 times by 1 test: case Clockwise:
Executed by:
  • tst_qquickanimations
2
985 d->interpolator = reinterpret_cast<QVariantAnimation::Interpolator>(reinterpret_cast<void *>(&_q_interpolateClockwiseRotation));-
986 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qquickanimations
2
987 case
executed 2 times by 1 test: case Counterclockwise:
Executed by:
  • tst_qquickanimations
Counterclockwise:
executed 2 times by 1 test: case Counterclockwise:
Executed by:
  • tst_qquickanimations
2
988 d->interpolator = reinterpret_cast<QVariantAnimation::Interpolator>(reinterpret_cast<void *>(&_q_interpolateCounterclockwiseRotation));-
989 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qquickanimations
2
990 case
executed 4 times by 2 tests: case Shortest:
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
Shortest:
executed 4 times by 2 tests: case Shortest:
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
4
991 d->interpolator = reinterpret_cast<QVariantAnimation::Interpolator>(reinterpret_cast<void *>(&_q_interpolateShortestRotation));-
992 break;
executed 4 times by 2 tests: break;
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
4
993 default
never executed: default:
:
never executed: default:
0
994 d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);-
995 break;
never executed: break;
0
996 }-
997 directionChanged();-
998}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
8
999-
1000-
1001-
1002QQuickAnimationGroup::QQuickAnimationGroup(QObject *parent)-
1003: QQuickAbstractAnimation(*(new QQuickAnimationGroupPrivate), parent)-
1004{-
1005}
executed 5152 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
5152
1006-
1007QQuickAnimationGroup::QQuickAnimationGroup(QQuickAnimationGroupPrivate &dd, QObject *parent)-
1008 : QQuickAbstractAnimation(dd, parent)-
1009{-
1010}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
2
1011-
1012void QQuickAnimationGroupPrivate::append_animation(QQmlListProperty<QQuickAbstractAnimation> *list, QQuickAbstractAnimation *a)-
1013{-
1014 QQuickAnimationGroup *q = qmlobject_cast<QQuickAnimationGroup *>(list->object);-
1015 if (q
qDescription
TRUEevaluated 20384 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
&& a
aDescription
TRUEevaluated 20380 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
)
0-20384
1016 a->setGroup(q);
executed 20380 times by 13 tests: a->setGroup(q);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
20380
1017}
executed 20384 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
20384
1018-
1019void QQuickAnimationGroupPrivate::clear_animation(QQmlListProperty<QQuickAbstractAnimation> *list)-
1020{-
1021 QQuickAnimationGroup *q = qobject_cast<QQuickAnimationGroup *>(list->object);-
1022 if (q
qDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
) {
0-4
1023 while (q->d_func()->animations.count()
q->d_func()->a...ations.count()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
) {
0-4
1024 QQuickAbstractAnimation *firstAnim = q->d_func()->animations.at(0);-
1025 firstAnim->setGroup(nullptr);-
1026 }
never executed: end of block
0
1027 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
4
1028}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
4
1029-
1030QQuickAnimationGroup::~QQuickAnimationGroup()-
1031{-
1032 QQuickAnimationGroupPrivate * const d = d_func();-
1033 for (int i = 0; i < d->animations.count()
i < d->animations.count()Description
TRUEevaluated 20372 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 5148 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
; ++i)
5148-20372
1034 d->animations.at(i)->d_func()->group = nullptr;
executed 20372 times by 13 tests: d->animations.at(i)->d_func()->group = nullptr;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
20372
1035 d->animations.clear();-
1036}
executed 5148 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
5148
1037-
1038QQmlListProperty<QQuickAbstractAnimation> QQuickAnimationGroup::animations()-
1039{-
1040 QQuickAnimationGroupPrivate * const d = d_func();-
1041 QQmlListProperty<QQuickAbstractAnimation> list(this, d->animations);-
1042 list.append = &QQuickAnimationGroupPrivate::append_animation;-
1043 list.clear = &QQuickAnimationGroupPrivate::clear_animation;-
1044 return
executed 5158 times by 13 tests: return list;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
list;
executed 5158 times by 13 tests: return list;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
5158
1045}-
1046QQuickSequentialAnimation::QQuickSequentialAnimation(QObject *parent) :-
1047 QQuickAnimationGroup(parent)-
1048{-
1049}
executed 4130 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
4130
1050-
1051QQuickSequentialAnimation::~QQuickSequentialAnimation()-
1052{-
1053}-
1054-
1055QQuickAbstractAnimation::ThreadingModel QQuickSequentialAnimation::threadingModel() const-
1056{-
1057 const QQuickAnimationGroupPrivate * const d = d_func();-
1058-
1059 ThreadingModel style = AnyThread;-
1060 for (int i=0; i<d->animations.size()
i<d->animations.size()Description
TRUEevaluated 25342 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_examples
; ++i) {
8-25342
1061 ThreadingModel ces = d->animations.at(i)->threadingModel();-
1062 if (ces == GuiThread
ces == GuiThreadDescription
TRUEevaluated 25322 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_examples
)
20-25322
1063 return
executed 25322 times by 12 tests: return GuiThread;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
GuiThread;
executed 25322 times by 12 tests: return GuiThread;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
25322
1064 else if (ces == RenderThread
ces == RenderThreadDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
)
0-20
1065 style = RenderThread;
executed 20 times by 1 test: style = RenderThread;
Executed by:
  • tst_examples
20
1066 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_examples
20
1067 return
executed 8 times by 1 test: return style;
Executed by:
  • tst_examples
style;
executed 8 times by 1 test: return style;
Executed by:
  • tst_examples
8
1068}-
1069-
1070QAbstractAnimationJob* QQuickSequentialAnimation::transition(QQuickStateActions &actions,-
1071 QQmlProperties &modified,-
1072 TransitionDirection direction,-
1073 QObject *defaultTarget)-
1074{-
1075 QQuickAnimationGroupPrivate * const d = d_func();-
1076-
1077 QSequentialAnimationGroupJob *ag = new QSequentialAnimationGroupJob;-
1078-
1079 int inc = 1;-
1080 int from = 0;-
1081 if (direction == Backward
direction == BackwardDescription
TRUEnever evaluated
FALSEevaluated 12664 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
) {
0-12664
1082 inc = -1;-
1083 from = d->animations.count() - 1;-
1084 }
never executed: end of block
0
1085-
1086 ThreadingModel execution = threadingModel();-
1087-
1088 bool valid = d->defaultProperty.isValid();-
1089 QAbstractAnimationJob* anim;-
1090 for (int ii = from; ii < d->animations.count()
ii < d->animations.count()Description
TRUEevaluated 46526 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 12664 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
&& ii >= 0
ii >= 0Description
TRUEevaluated 46526 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
; ii += inc) {
0-46526
1091 if (valid
validDescription
TRUEevaluated 8602 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicktaphandler
FALSEevaluated 37924 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
)
8602-37924
1092 d->animations.at(ii)->setDefaultTarget(d->defaultProperty);
executed 8602 times by 6 tests: d->animations.at(ii)->setDefaultTarget(d->defaultProperty);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquicktaphandler
8602
1093 anim = d->animations.at(ii)->transition(actions, modified, direction, defaultTarget);-
1094 if (anim
animDescription
TRUEevaluated 46526 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
) {
0-46526
1095 if (d->animations.at(ii)->threadingModel() == RenderThread
d->animations....= RenderThreadDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 46520 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
&& execution != RenderThread
execution != RenderThreadDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_examples
)
2-46520
1096 anim = new QQuickAnimatorProxyJob(anim, this);
executed 2 times by 1 test: anim = new QQuickAnimatorProxyJob(anim, this);
Executed by:
  • tst_examples
2
1097 inc == -1 ? ag->prependAnimation(anim) : ag->appendAnimation(anim);-
1098 }
executed 46526 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
46526
1099 }
executed 46526 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
46526
1100-
1101 return
executed 12664 times by 12 tests: return initInstance(ag);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
initInstance(ag);
executed 12664 times by 12 tests: return initInstance(ag);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
12664
1102}-
1103QQuickParallelAnimation::QQuickParallelAnimation(QObject *parent) :-
1104 QQuickAnimationGroup(parent)-
1105{-
1106}
executed 1022 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
1022
1107-
1108QQuickParallelAnimation::~QQuickParallelAnimation()-
1109{-
1110}-
1111-
1112QQuickAbstractAnimation::ThreadingModel QQuickParallelAnimation::threadingModel() const-
1113{-
1114 const QQuickAnimationGroupPrivate * const d = d_func();-
1115-
1116 ThreadingModel style = AnyThread;-
1117 for (int i=0; i<d->animations.size()
i<d->animations.size()Description
TRUEevaluated 21390 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_examples
; ++i) {
24-21390
1118 ThreadingModel ces = d->animations.at(i)->threadingModel();-
1119 if (ces == GuiThread
ces == GuiThreadDescription
TRUEevaluated 21342 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_examples
)
48-21342
1120 return
executed 21342 times by 6 tests: return GuiThread;
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
GuiThread;
executed 21342 times by 6 tests: return GuiThread;
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
21342
1121 else if (ces == RenderThread
ces == RenderThreadDescription
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
)
0-48
1122 style = RenderThread;
executed 48 times by 1 test: style = RenderThread;
Executed by:
  • tst_examples
48
1123 }
executed 48 times by 1 test: end of block
Executed by:
  • tst_examples
48
1124 return
executed 24 times by 1 test: return style;
Executed by:
  • tst_examples
style;
executed 24 times by 1 test: return style;
Executed by:
  • tst_examples
24
1125}-
1126-
1127-
1128-
1129QAbstractAnimationJob* QQuickParallelAnimation::transition(QQuickStateActions &actions,-
1130 QQmlProperties &modified,-
1131 TransitionDirection direction,-
1132 QObject *defaultTarget)-
1133{-
1134 QQuickAnimationGroupPrivate * const d = d_func();-
1135 QParallelAnimationGroupJob *ag = new QParallelAnimationGroupJob;-
1136-
1137 ThreadingModel style = threadingModel();-
1138-
1139 bool valid = d->defaultProperty.isValid();-
1140 QAbstractAnimationJob* anim;-
1141 for (int ii = 0; ii < d->animations.count()
ii < d->animations.count()Description
TRUEevaluated 20402 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
FALSEevaluated 10194 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
; ++ii) {
10194-20402
1142 if (valid
validDescription
TRUEnever evaluated
FALSEevaluated 20402 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
)
0-20402
1143 d->animations.at(ii)->setDefaultTarget(d->defaultProperty);
never executed: d->animations.at(ii)->setDefaultTarget(d->defaultProperty);
0
1144 anim = d->animations.at(ii)->transition(actions, modified, direction, defaultTarget);-
1145 if (anim
animDescription
TRUEevaluated 20402 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
FALSEnever evaluated
) {
0-20402
1146 if (d->animations.at(ii)->threadingModel() == RenderThread
d->animations....= RenderThreadDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 20392 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
&& style != RenderThread
style != RenderThreadDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_examples
)
2-20392
1147 anim = new QQuickAnimatorProxyJob(anim, this);
executed 2 times by 1 test: anim = new QQuickAnimatorProxyJob(anim, this);
Executed by:
  • tst_examples
2
1148 ag->appendAnimation(anim);-
1149 }
executed 20402 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
20402
1150 }
executed 20402 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
20402
1151 return
executed 10194 times by 6 tests: return initInstance(ag);
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
initInstance(ag);
executed 10194 times by 6 tests: return initInstance(ag);
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
10194
1152}-
1153-
1154-
1155void QQuickPropertyAnimationPrivate::convertVariant(QVariant &variant, int type)-
1156{-
1157 if (variant.userType() != QVariant::String
variant.userTy...ariant::StringDescription
TRUEevaluated 92301 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickimage
) {
14-92301
1158 variant.convert(type);-
1159 return;
executed 92301 times by 16 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
92301
1160 }-
1161-
1162 switch (type) {-
1163 case
never executed: case QVariant::Rect:
QVariant::Rect:
never executed: case QVariant::Rect:
0
1164 case
never executed: case QVariant::RectF:
QVariant::RectF:
never executed: case QVariant::RectF:
0
1165 case
never executed: case QVariant::Point:
QVariant::Point:
never executed: case QVariant::Point:
0
1166 case
never executed: case QVariant::PointF:
QVariant::PointF:
never executed: case QVariant::PointF:
0
1167 case
never executed: case QVariant::Size:
QVariant::Size:
never executed: case QVariant::Size:
0
1168 case
never executed: case QVariant::SizeF:
QVariant::SizeF:
never executed: case QVariant::SizeF:
0
1169 case
executed 4 times by 1 test: case QVariant::Color:
Executed by:
  • tst_qquickanimations
QVariant::Color:
executed 4 times by 1 test: case QVariant::Color:
Executed by:
  • tst_qquickanimations
4
1170 case
never executed: case QVariant::Vector3D:
QVariant::Vector3D:
never executed: case QVariant::Vector3D:
0
1171 {-
1172 bool ok = false;-
1173 variant = QQmlStringConverters::variantFromString(variant.toString(), type, &ok);-
1174 }-
1175 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qquickanimations
4
1176 default
executed 10 times by 3 tests: default:
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickimage
:
executed 10 times by 3 tests: default:
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickimage
10
1177 if (QQmlValueTypeFactory::isValueType((uint)type)
QQmlValueTypeF...pe((uint)type)Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_examples
) {
4-6
1178 variant.convert(type);-
1179 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickimage
else {
6
1180 QQmlMetaType::StringConverter converter = QQmlMetaType::customStringConverter(type);-
1181 if (converter
converterDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_examples
)
0-4
1182 variant = converter(variant.toString());
never executed: variant = converter(variant.toString());
0
1183 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_examples
4
1184 break;
executed 10 times by 3 tests: break;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickimage
10
1185 }-
1186}-
1187-
1188QQuickBulkValueAnimator::QQuickBulkValueAnimator()-
1189 : QAbstractAnimationJob(), animValue(nullptr), fromSourced(nullptr), m_duration(250)-
1190{-
1191}
executed 34536 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
34536
1192-
1193QQuickBulkValueAnimator::~QQuickBulkValueAnimator()-
1194{-
1195 delete animValue;-
1196}
executed 34470 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
34470
1197-
1198void QQuickBulkValueAnimator::setAnimValue(QQuickBulkValueUpdater *value)-
1199{-
1200 if (isRunning()
isRunning()Description
TRUEnever evaluated
FALSEevaluated 34522 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
)
0-34522
1201 stop();
never executed: stop();
0
1202 animValue = value;-
1203}
executed 34522 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
34522
1204-
1205void QQuickBulkValueAnimator::updateCurrentTime(int currentTime)-
1206{-
1207 if (isStopped()
isStopped()Description
TRUEnever evaluated
FALSEevaluated 95918 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
)
0-95918
1208 return;
never executed: return;
0
1209-
1210 const qreal progress = easing.valueForProgress(((m_duration == 0) ? qreal(1) : qreal(currentTime) / qreal(m_duration)));-
1211-
1212 if (animValue
animValueDescription
TRUEevaluated 95616 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
FALSEevaluated 302 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
)
302-95616
1213 animValue->setValue(progress);
executed 95616 times by 12 tests: animValue->setValue(progress);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
95616
1214}
executed 95918 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
95918
1215-
1216void QQuickBulkValueAnimator::topLevelAnimationLoopChanged()-
1217{-
1218-
1219 if (fromSourced
fromSourcedDescription
TRUEevaluated 34566 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
)
14-34566
1220 *
executed 34566 times by 12 tests: *fromSourced = false;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
fromSourced = false;
executed 34566 times by 12 tests: *fromSourced = false;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
34566
1221 QAbstractAnimationJob::topLevelAnimationLoopChanged();-
1222}
executed 34580 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
34580
1223-
1224void QQuickBulkValueAnimator::debugAnimation(QDebug d) const-
1225{-
1226 d << "BulkValueAnimation(" << hex << (const void *) this << dec << ")" << "duration:" << duration();-
1227-
1228 if (animValue
animValueDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1229 int indentLevel = 1;-
1230 const QAbstractAnimationJob *job = this;-
1231 while ((
(job = job->group())Description
TRUEnever evaluated
FALSEnever evaluated
job = job->group())
(job = job->group())Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1232 ++
never executed: ++indentLevel;
indentLevel;
never executed: ++indentLevel;
0
1233 animValue->debugUpdater(d, indentLevel);-
1234 }
never executed: end of block
0
1235}
never executed: end of block
0
1236QQuickPropertyAnimation::QQuickPropertyAnimation(QObject *parent)-
1237: QQuickAbstractAnimation(*(new QQuickPropertyAnimationPrivate), parent)-
1238{-
1239}
executed 10244 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
10244
1240-
1241QQuickPropertyAnimation::QQuickPropertyAnimation(QQuickPropertyAnimationPrivate &dd, QObject *parent)-
1242: QQuickAbstractAnimation(dd, parent)-
1243{-
1244}
executed 112 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
112
1245-
1246QQuickPropertyAnimation::~QQuickPropertyAnimation()-
1247{-
1248}-
1249-
1250-
1251-
1252-
1253-
1254-
1255-
1256int QQuickPropertyAnimation::duration() const-
1257{-
1258 const QQuickPropertyAnimationPrivate * const d = d_func();-
1259 return
executed 18 times by 3 tests: return d->duration;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
d->duration;
executed 18 times by 3 tests: return d->duration;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
18
1260}-
1261-
1262void QQuickPropertyAnimation::setDuration(int duration)-
1263{-
1264 if (duration < 0
duration < 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 12138 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_scenegraph
) {
2-12138
1265 qmlWarning(this) << tr("Cannot set a duration of < 0");-
1266 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanimations
2
1267 }-
1268-
1269 QQuickPropertyAnimationPrivate * const d = d_func();-
1270 if (d->duration == duration
d->duration == durationDescription
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
FALSEevaluated 12102 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_scenegraph
)
36-12102
1271 return;
executed 36 times by 3 tests: return;
Executed by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
36
1272 d->duration = duration;-
1273 durationChanged(duration);-
1274}
executed 12102 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_scenegraph
12102
1275QVariant QQuickPropertyAnimation::from() const-
1276{-
1277 const QQuickPropertyAnimationPrivate * const d = d_func();-
1278 return
executed 8 times by 2 tests: return d->from;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
d->from;
executed 8 times by 2 tests: return d->from;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
8
1279}-
1280-
1281void QQuickPropertyAnimation::setFrom(const QVariant &f)-
1282{-
1283 QQuickPropertyAnimationPrivate * const d = d_func();-
1284 if (d->fromIsDefined
d->fromIsDefinedDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 7420 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
&& f == d->from
f == d->fromDescription
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_examples
)
0-7420
1285 return;
never executed: return;
0
1286 d->from = f;-
1287 d->fromIsDefined = f.isValid();-
1288 fromChanged();-
1289}
executed 7440 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
7440
1290QVariant QQuickPropertyAnimation::to() const-
1291{-
1292 const QQuickPropertyAnimationPrivate * const d = d_func();-
1293 return
executed 6 times by 2 tests: return d->to;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
d->to;
executed 6 times by 2 tests: return d->to;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
6
1294}-
1295-
1296void QQuickPropertyAnimation::setTo(const QVariant &t)-
1297{-
1298 QQuickPropertyAnimationPrivate * const d = d_func();-
1299 if (d->toIsDefined
d->toIsDefinedDescription
TRUEevaluated 77 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_scenegraph
FALSEevaluated 8758 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
&& t == d->to
t == d->toDescription
TRUEnever evaluated
FALSEevaluated 77 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_scenegraph
)
0-8758
1300 return;
never executed: return;
0
1301 d->to = t;-
1302 d->toIsDefined = t.isValid();-
1303 toChanged();-
1304}
executed 8835 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
8835
1305QEasingCurve QQuickPropertyAnimation::easing() const-
1306{-
1307 const QQuickPropertyAnimationPrivate * const d = d_func();-
1308 return
executed 500 times by 5 tests: return d->easing;
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
d->easing;
executed 500 times by 5 tests: return d->easing;
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
500
1309}-
1310-
1311void QQuickPropertyAnimation::setEasing(const QEasingCurve &e)-
1312{-
1313 QQuickPropertyAnimationPrivate * const d = d_func();-
1314 if (d->easing == e
d->easing == eDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 474 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
)
2-474
1315 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_examples
2
1316-
1317 d->easing = e;-
1318 easingChanged(e);-
1319}
executed 474 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
474
1320-
1321QObject *QQuickPropertyAnimation::target() const-
1322{-
1323 const QQuickPropertyAnimationPrivate * const d = d_func();-
1324 return
executed 14 times by 3 tests: return d->target;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
d->target;
executed 14 times by 3 tests: return d->target;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
14
1325}-
1326-
1327void QQuickPropertyAnimation::setTargetObject(QObject *o)-
1328{-
1329 QQuickPropertyAnimationPrivate * const d = d_func();-
1330 if (d->target == o
d->target == oDescription
TRUEnever evaluated
FALSEevaluated 618 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
)
0-618
1331 return;
never executed: return;
0
1332 d->target = o;-
1333 targetChanged();-
1334}
executed 618 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
618
1335-
1336QString QQuickPropertyAnimation::property() const-
1337{-
1338 const QQuickPropertyAnimationPrivate * const d = d_func();-
1339 return
executed 14 times by 3 tests: return d->propertyName;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
d->propertyName;
executed 14 times by 3 tests: return d->propertyName;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
14
1340}-
1341-
1342void QQuickPropertyAnimation::setProperty(const QString &n)-
1343{-
1344 QQuickPropertyAnimationPrivate * const d = d_func();-
1345 if (d->propertyName == n
d->propertyName == nDescription
TRUEnever evaluated
FALSEevaluated 612 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
)
0-612
1346 return;
never executed: return;
0
1347 d->propertyName = n;-
1348 propertyChanged();-
1349}
executed 612 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
612
1350-
1351QString QQuickPropertyAnimation::properties() const-
1352{-
1353 const QQuickPropertyAnimationPrivate * const d = d_func();-
1354 return
executed 4 times by 1 test: return d->properties;
Executed by:
  • tst_qqmlenginedebugservice
d->properties;
executed 4 times by 1 test: return d->properties;
Executed by:
  • tst_qqmlenginedebugservice
4
1355}-
1356-
1357void QQuickPropertyAnimation::setProperties(const QString &prop)-
1358{-
1359 QQuickPropertyAnimationPrivate * const d = d_func();-
1360 if (d->properties == prop
d->properties == propDescription
TRUEnever evaluated
FALSEevaluated 2768 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
)
0-2768
1361 return;
never executed: return;
0
1362-
1363 d->properties = prop;-
1364 propertiesChanged(prop);-
1365}
executed 2768 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
2768
1366QQmlListProperty<QObject> QQuickPropertyAnimation::targets()-
1367{-
1368 QQuickPropertyAnimationPrivate * const d = d_func();-
1369 return
executed 36 times by 3 tests: return QQmlListProperty<QObject>(this, d->targets);
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
QQmlListProperty<QObject>(this, d->targets);
executed 36 times by 3 tests: return QQmlListProperty<QObject>(this, d->targets);
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
36
1370}-
1371-
1372-
1373-
1374-
1375-
1376-
1377QQmlListProperty<QObject> QQuickPropertyAnimation::exclude()-
1378{-
1379 QQuickPropertyAnimationPrivate * const d = d_func();-
1380 return
executed 4 times by 1 test: return QQmlListProperty<QObject>(this, d->exclude);
Executed by:
  • tst_qqmlenginedebugservice
QQmlListProperty<QObject>(this, d->exclude);
executed 4 times by 1 test: return QQmlListProperty<QObject>(this, d->exclude);
Executed by:
  • tst_qqmlenginedebugservice
4
1381}-
1382-
1383void QQuickAnimationPropertyUpdater::setValue(qreal v)-
1384{-
1385 bool deleted = false;-
1386 wasDeleted = &deleted;-
1387 if (reverse
reverseDescription
TRUEnever evaluated
FALSEevaluated 95329 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
)
0-95329
1388 v = 1 - v;
never executed: v = 1 - v;
0
1389 for (int ii = 0; ii < actions.count()
ii < actions.count()Description
TRUEevaluated 111420 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
FALSEevaluated 95329 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
; ++ii) {
95329-111420
1390 QQuickStateAction &action = actions[ii];-
1391-
1392 if (v == 1.
v == 1.Description
TRUEevaluated 31396 times by 9 tests
Evaluated by:
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
FALSEevaluated 80024 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
) {
31396-80024
1393 QQmlPropertyPrivate::write(action.property, action.toValue, QQmlPropertyData::BypassInterceptor | QQmlPropertyData::DontRemoveBinding);-
1394 }
executed 31396 times by 9 tests: end of block
Executed by:
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
else {
31396
1395 if (!fromSourced
!fromSourcedDescription
TRUEevaluated 33448 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
FALSEevaluated 46576 times by 10 tests
Evaluated by:
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
&& !fromDefined
!fromDefinedDescription
TRUEevaluated 20972 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 12476 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
) {
12476-46576
1396 action.fromValue = action.property.read();-
1397 if (interpolatorType
interpolatorTypeDescription
TRUEevaluated 20950 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
) {
22-20950
1398 QQuickPropertyAnimationPrivate::convertVariant(action.fromValue, interpolatorType);-
1399 }
executed 20950 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
20950
1400 }
executed 20972 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
20972
1401 if (!interpolatorType
!interpolatorTypeDescription
TRUEevaluated 2968 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
FALSEevaluated 77056 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
) {
2968-77056
1402 int propType = action.property.propertyType();-
1403 if (!prevInterpolatorType
!prevInterpolatorTypeDescription
TRUEevaluated 2028 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
FALSEevaluated 940 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
|| prevInterpolatorType != propType
prevInterpolat...pe != propTypeDescription
TRUEevaluated 244 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 696 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
) {
244-2028
1404 prevInterpolatorType = propType;-
1405 interpolator = QVariantAnimationPrivate::getInterpolator(prevInterpolatorType);-
1406 }
executed 2272 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
2272
1407 }
executed 2968 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
2968
1408 if (interpolator
interpolatorDescription
TRUEevaluated 80024 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
FALSEnever evaluated
)
0-80024
1409 QQmlPropertyPrivate::write(action.property, interpolator(action.fromValue.constData(), action.toValue.constData(), v), QQmlPropertyData::BypassInterceptor | QQmlPropertyData::DontRemoveBinding);
executed 80024 times by 11 tests: QQmlPropertyPrivate::write(action.property, interpolator(action.fromValue.constData(), action.toValue.constData(), v), QQmlPropertyData::BypassInterceptor | QQmlPropertyData::DontRemoveBinding);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
80024
1410 }
executed 80024 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
80024
1411 if (deleted
deletedDescription
TRUEnever evaluated
FALSEevaluated 111420 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
)
0-111420
1412 return;
never executed: return;
0
1413 }
executed 111420 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
111420
1414 wasDeleted = nullptr;-
1415 fromSourced = true;-
1416}
executed 95329 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
95329
1417-
1418void QQuickAnimationPropertyUpdater::debugUpdater(QDebug d, int indentLevel) const-
1419{-
1420 QByteArray ind(indentLevel, ' ');-
1421 for (int i = 0; i < actions.count()
i < actions.count()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1422 const QQuickStateAction &action = actions.at(i);-
1423 d << "\n" << ind.constData() << "target:" << action.property.object() << "property:" << action.property.name()-
1424 << "from:" << action.fromValue << "to:" << action.toValue;-
1425 }
never executed: end of block
0
1426}
never executed: end of block
0
1427-
1428QQuickStateActions QQuickPropertyAnimation::createTransitionActions(QQuickStateActions &actions,-
1429 QQmlProperties &modified,-
1430 QObject *defaultTarget)-
1431{-
1432 QQuickPropertyAnimationPrivate * const d = d_func();-
1433 QQuickStateActions newActions;-
1434-
1435 QStringList props = d->properties.isEmpty()
d->properties.isEmpty()Description
TRUEevaluated 7203 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 27418 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
? QStringList() : d->properties.split(QLatin1Char(','));
7203-27418
1436 for (int ii = 0; ii < props.count()
ii < props.count()Description
TRUEevaluated 34382 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 34621 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
; ++ii)
34382-34621
1437 props[ii] = props.at(ii).trimmed();
executed 34382 times by 8 tests: props[ii] = props.at(ii).trimmed();
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
34382
1438 if (!d->propertyName.isEmpty()
!d->propertyName.isEmpty()Description
TRUEevaluated 228 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 34393 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
)
228-34393
1439 props << d->propertyName;
executed 228 times by 11 tests: props << d->propertyName;
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
228
1440-
1441 QList<QObject*> targets = d->targets;-
1442 if (d->target
d->targetDescription
TRUEevaluated 220 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 34401 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
)
220-34401
1443 targets.append(d->target);
executed 220 times by 11 tests: targets.append(d->target);
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
220
1444-
1445 bool hasSelectors = !props.isEmpty()
!props.isEmpty()Description
TRUEevaluated 27646 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 6975 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
|| !targets.isEmpty()
!targets.isEmpty()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 6965 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
|| !d->exclude.isEmpty()
!d->exclude.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 6965 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
;
0-27646
1446 bool useType = (props.isEmpty()
props.isEmpty()Description
TRUEevaluated 6975 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
FALSEevaluated 27646 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
&& d->defaultToInterpolatorType
d->defaultToInterpolatorTypeDescription
TRUEevaluated 168 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickbehaviors
FALSEevaluated 6807 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
) ? true : false;
168-27646
1447-
1448 if (d->defaultProperty.isValid()
d->defaultProperty.isValid()Description
TRUEevaluated 6981 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
FALSEevaluated 27640 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
&& !hasSelectors
!hasSelectorsDescription
TRUEevaluated 6963 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
FALSEevaluated 18 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickloader
) {
18-27640
1449 props << d->defaultProperty.name();-
1450 targets << d->defaultProperty.object();-
1451 }
executed 6963 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
6963
1452-
1453 if (defaultTarget
defaultTargetDescription
TRUEevaluated 27384 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
FALSEevaluated 7237 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
&& targets.isEmpty()
targets.isEmpty()Description
TRUEevaluated 27384 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
FALSEnever evaluated
)
0-27384
1454 targets << defaultTarget;
executed 27384 times by 4 tests: targets << defaultTarget;
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
27384
1455-
1456 bool usingDefaultProperties = false;-
1457 if (props.isEmpty()
props.isEmpty()Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicksmoothedanimation
FALSEevaluated 34609 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
&& !d->defaultProperties.isEmpty()
!d->defaultPro...ties.isEmpty()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicksmoothedanimation
) {
2-34609
1458 props << d->defaultProperties.split(QLatin1Char(','));-
1459 usingDefaultProperties = true;-
1460 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
10
1461-
1462 bool hasExplicit = false;-
1463-
1464 if (d->toIsDefined
d->toIsDefinedDescription
TRUEevaluated 20447 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 14174 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
) {
14174-20447
1465 QVector<QString> errorMessages;-
1466 bool successfullyCreatedDefaultProperty = false;-
1467-
1468 for (int i = 0; i < props.count()
i < props.count()Description
TRUEevaluated 20451 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 20447 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
; ++i) {
20447-20451
1469 for (int j = 0; j < targets.count()
j < targets.count()Description
TRUEevaluated 20447 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 20451 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
; ++j) {
20447-20451
1470 QQuickStateAction myAction;-
1471 QString errorMessage;-
1472 const QString propertyName = props.at(i);-
1473 myAction.property = d->createProperty(targets.at(j), propertyName, this, &errorMessage);-
1474 if (myAction.property.isValid()
myAction.property.isValid()Description
TRUEevaluated 20441 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanimations
) {
6-20441
1475 if (usingDefaultProperties
usingDefaultPropertiesDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 20439 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
)
2-20439
1476 successfullyCreatedDefaultProperty = true;
executed 2 times by 1 test: successfullyCreatedDefaultProperty = true;
Executed by:
  • tst_qquickanimations
2
1477-
1478 if (d->fromIsDefined
d->fromIsDefinedDescription
TRUEevaluated 7712 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 12729 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
) {
7712-12729
1479 myAction.fromValue = d->from;-
1480 d->convertVariant(myAction.fromValue, d->interpolatorType ? d->interpolatorType : myAction.property.propertyType());-
1481 }
executed 7712 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickspringanimation
  • tst_scenegraph
7712
1482 myAction.toValue = d->to;-
1483 d->convertVariant(myAction.toValue, d->interpolatorType ? d->interpolatorType : myAction.property.propertyType());-
1484 newActions << myAction;-
1485 hasExplicit = true;-
1486 for (int ii = 0; ii < actions.count()
ii < actions.count()Description
TRUEevaluated 20222 times by 6 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickspringanimation
FALSEevaluated 6973 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
; ++ii) {
6973-20222
1487 QQuickStateAction &action = actions[ii];-
1488 if (action.property.object() == myAction.property.object()
action.propert...perty.object()Description
TRUEevaluated 20222 times by 6 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickspringanimation
FALSEnever evaluated
&&
0-20222
1489 myAction.property.name() == action.property.name()
myAction.prope...roperty.name()Description
TRUEevaluated 13468 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
FALSEevaluated 6754 times by 5 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
) {
6754-13468
1490 modified << action.property;-
1491 break;
executed 13468 times by 4 tests: break;
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
13468
1492 }-
1493 }
executed 6754 times by 5 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
6754
1494 }
executed 20441 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
else {
20441
1495 errorMessages.append(errorMessage);-
1496 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
6
1497 }-
1498 }
executed 20451 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
20451
1499-
1500 if (!successfullyCreatedDefaultProperty
!successfullyC...efaultPropertyDescription
TRUEevaluated 20445 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
) {
2-20445
1501 for (const QString &errorMessage : qAsConst(errorMessages))-
1502 qmlWarning(this) << errorMessage;
executed 4 times by 1 test: qmlWarning(this) << errorMessage;
Executed by:
  • tst_qquickanimations
4
1503 }
executed 20445 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
20445
1504 }
executed 20447 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
20447
1505-
1506 if (!hasExplicit
!hasExplicitDescription
TRUEevaluated 14182 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
FALSEevaluated 20439 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
)
14182-20439
1507 for (int ii = 0; ii < actions.count()
ii < actions.count()Description
TRUEevaluated 28130 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
FALSEevaluated 14182 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
; ++ii) {
14182-28130
1508 QQuickStateAction &action = actions[ii];-
1509-
1510 QObject *obj = action.property.object();-
1511 QString propertyName = action.property.name();-
1512 QObject *sObj = action.specifiedObject;-
1513 QString sPropertyName = action.specifiedProperty;-
1514 bool same = (obj == sObj);-
1515-
1516 if ((targets.isEmpty()
targets.isEmpty()Description
TRUEevaluated 54 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEevaluated 28076 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
|| targets.contains(obj)
targets.contains(obj)Description
TRUEevaluated 28048 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquickanimations
|| (!same
!sameDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquickanimations
&& targets.contains(sObj)
targets.contains(sObj)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
)) &&
0-28076
1517 (
(!d->exclude.contains(obj))Description
TRUEevaluated 28106 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
FALSEnever evaluated
!d->exclude.contains(obj))
(!d->exclude.contains(obj))Description
TRUEevaluated 28106 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
FALSEnever evaluated
&& (same
sameDescription
TRUEevaluated 27888 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 218 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
|| (
(!d->exclude.contains(sObj))Description
TRUEevaluated 218 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
FALSEnever evaluated
!d->exclude.contains(sObj))
(!d->exclude.contains(sObj))Description
TRUEevaluated 218 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
FALSEnever evaluated
) &&
0-28106
1518 (props.contains(propertyName)
props.contains(propertyName)Description
TRUEevaluated 21126 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
FALSEevaluated 6980 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
|| (!same
!sameDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
FALSEevaluated 6972 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
&& props.contains(sPropertyName)
props.contains(sPropertyName)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
)
2-21126
1519 || (useType
useTypeDescription
TRUEnever evaluated
FALSEevaluated 6978 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
&& action.property.propertyType() == d->interpolatorType
action.propert...terpolatorTypeDescription
TRUEnever evaluated
FALSEnever evaluated
))) {
0-6978
1520 QQuickStateAction myAction = action;-
1521-
1522 if (d->fromIsDefined
d->fromIsDefinedDescription
TRUEevaluated 6894 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 14234 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
)
6894-14234
1523 myAction.fromValue = d->from;
executed 6894 times by 4 tests: myAction.fromValue = d->from;
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
6894
1524 else-
1525 myAction.fromValue = QVariant();
executed 14234 times by 9 tests: myAction.fromValue = QVariant();
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
14234
1526 if (d->toIsDefined
d->toIsDefinedDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 21126 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
)
2-21126
1527 myAction.toValue = d->to;
executed 2 times by 1 test: myAction.toValue = d->to;
Executed by:
  • tst_qquickanimations
2
1528-
1529 d->convertVariant(myAction.fromValue, d->interpolatorType ? d->interpolatorType : myAction.property.propertyType());-
1530 d->convertVariant(myAction.toValue, d->interpolatorType ? d->interpolatorType : myAction.property.propertyType());-
1531-
1532 modified << action.property;-
1533-
1534 newActions << myAction;-
1535 action.fromValue = myAction.toValue;-
1536 }
executed 21128 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
21128
1537 }
executed 28130 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
28130
1538 return
executed 34621 times by 14 tests: return newActions;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
newActions;
executed 34621 times by 14 tests: return newActions;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_scenegraph
34621
1539}-
1540-
1541QAbstractAnimationJob* QQuickPropertyAnimation::transition(QQuickStateActions &actions,-
1542 QQmlProperties &modified,-
1543 TransitionDirection direction,-
1544 QObject *defaultTarget)-
1545{-
1546 QQuickPropertyAnimationPrivate * const d = d_func();-
1547-
1548 QQuickStateActions dataActions = createTransitionActions(actions, modified, defaultTarget);-
1549-
1550 QQuickBulkValueAnimator *animator = new QQuickBulkValueAnimator;-
1551 animator->setDuration(d->duration);-
1552 animator->setEasingCurve(d->easing);-
1553-
1554 if (!dataActions.isEmpty()
!dataActions.isEmpty()Description
TRUEevaluated 34488 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
) {
12-34488
1555 QQuickAnimationPropertyUpdater *data = new QQuickAnimationPropertyUpdater;-
1556 data->interpolatorType = d->interpolatorType;-
1557 data->interpolator = d->interpolator;-
1558 data->reverse = direction == Backward
direction == BackwardDescription
TRUEnever evaluated
FALSEevaluated 34488 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
? true : false;
0-34488
1559 data->fromSourced = false;-
1560 data->fromDefined = d->fromIsDefined;-
1561 data->actions = dataActions;-
1562 animator->setAnimValue(data);-
1563 animator->setFromSourcedValue(&data->fromSourced);-
1564 d->actions = &data->actions;-
1565 }
executed 34488 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
34488
1566-
1567 return
executed 34500 times by 12 tests: return initInstance(animator);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
initInstance(animator);
executed 34500 times by 12 tests: return initInstance(animator);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
34500
1568}-
1569-
1570QQuickAnimationPropertyUpdater::~QQuickAnimationPropertyUpdater()-
1571{-
1572 if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 34450 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
) *
never executed: *wasDeleted = true;
wasDeleted = true;
never executed: *wasDeleted = true;
0-34450
1573}
executed 34450 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_scenegraph
34450
1574-
1575-
1576-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0