OpenCoverage

qquickstate.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickstate.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8static bool stateChangeDebug() { static enum { Yes, No, Unknown } status = Unknown; if (status == Unknown
status == UnknownDescription
TRUEevaluated 40 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 548 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
) { status = No; if (__builtin_expect(!!(!qEnvironmentVariableIsEmpty("STATECHANGE_DEBUG")), false)
__builtin_expe...BUG")), false)Description
TRUEnever evaluated
FALSEevaluated 40 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
) { const QByteArray v = qgetenv("STATECHANGE_DEBUG"); if (v != "0"
v != "0"Description
TRUEnever evaluated
FALSEnever evaluated
&& v != "false"
v != "false"Description
TRUEnever evaluated
FALSEnever evaluated
) status = Yes;
never executed: status = Yes;
}
never executed: end of block
}
executed 40 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
return
executed 588 times by 20 tests: return status == Yes;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
status == Yes;
executed 588 times by 20 tests: return status == Yes;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
};
0-588
9-
10QQuickStateAction::QQuickStateAction()-
11: restore(true), actionDone(false), reverseEvent(false), deletableToBinding(false), fromBinding(nullptr), event(nullptr),-
12 specifiedObject(nullptr)-
13{-
14}
executed 22093 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • ...
22093
15-
16QQuickStateAction::QQuickStateAction(QObject *target, const QString &propertyName,-
17 const QVariant &value)-
18: restore(true), actionDone(false), reverseEvent(false), deletableToBinding(false),-
19 property(target, propertyName, qmlEngine(target)), toValue(value),-
20 fromBinding(nullptr), event(nullptr),-
21 specifiedObject(target), specifiedProperty(propertyName)-
22{-
23 if (property.isValid()
property.isValid()Description
TRUEevaluated 21298 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
FALSEnever evaluated
)
0-21298
24 fromValue = property.read();
executed 21298 times by 8 tests: fromValue = property.read();
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
21298
25}
executed 21298 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
21298
26-
27QQuickStateAction::QQuickStateAction(QObject *target, const QQmlProperty &property, const QString &propertyName, const QVariant &value)-
28: restore(true), actionDone(false), reverseEvent(false), deletableToBinding(false),-
29 property(property), toValue(value),-
30 fromBinding(nullptr), event(nullptr),-
31 specifiedObject(target), specifiedProperty(propertyName)-
32{-
33 if (property.isValid()
property.isValid()Description
TRUEevaluated 480 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickstates
)
6-480
34 fromValue = property.read();
executed 480 times by 10 tests: fromValue = property.read();
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickstates
480
35}
executed 486 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickstates
486
36-
37-
38QQuickStateActionEvent::~QQuickStateActionEvent()-
39{-
40}-
41-
42void QQuickStateActionEvent::execute()-
43{-
44}-
45-
46bool QQuickStateActionEvent::isReversable()-
47{-
48 return
executed 16 times by 2 tests: return false;
Executed by:
  • tst_qquickanimations
  • tst_qquickstates
false;
executed 16 times by 2 tests: return false;
Executed by:
  • tst_qquickanimations
  • tst_qquickstates
16
49}-
50-
51void QQuickStateActionEvent::reverse()-
52{-
53}-
54-
55bool QQuickStateActionEvent::changesBindings()-
56{-
57 return
executed 350 times by 5 tests: return false;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
false;
executed 350 times by 5 tests: return false;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
350
58}-
59-
60void QQuickStateActionEvent::clearBindings()-
61{-
62}-
63-
64bool QQuickStateActionEvent::mayOverride(QQuickStateActionEvent *other)-
65{-
66 (void)other;;-
67 return
never executed: return false;
false;
never executed: return false;
0
68}-
69-
70QQuickStateOperation::QQuickStateOperation(QObjectPrivate &dd, QObject *parent)-
71 : QObject(dd, parent)-
72{-
73}
executed 624 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
624
74QQuickState::QQuickState(QObject *parent)-
75: QObject(*(new QQuickStatePrivate), parent)-
76{-
77 QQuickStatePrivate * const d = d_func();-
78 d->transitionManager.setState(this);-
79}
executed 1522 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
1522
80-
81QQuickState::~QQuickState()-
82{-
83 QQuickStatePrivate * const d = d_func();-
84 if (d->group
d->groupDescription
TRUEevaluated 244 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 1046 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
)
244-1046
85 d->group->removeState(this);
executed 244 times by 20 tests: d->group->removeState(this);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
244
86}
executed 1290 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
1290
87-
88-
89-
90-
91-
92-
93-
94QString QQuickState::name() const-
95{-
96 const QQuickStatePrivate * const d = d_func();-
97 return
executed 1784 times by 19 tests: return d->name;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
d->name;
executed 1784 times by 19 tests: return d->name;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
1784
98}-
99-
100void QQuickState::setName(const QString &n)-
101{-
102 QQuickStatePrivate * const d = d_func();-
103 d->name = n;-
104 d->named = true;-
105}
executed 1172 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
1172
106-
107bool QQuickState::isNamed() const-
108{-
109 const QQuickStatePrivate * const d = d_func();-
110 return
executed 1796 times by 18 tests: return d->named;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
d->named;
executed 1796 times by 18 tests: return d->named;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
1796
111}-
112-
113bool QQuickState::isWhenKnown() const-
114{-
115 const QQuickStatePrivate * const d = d_func();-
116 return
executed 1224 times by 18 tests: return d->when != nullptr;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
d->when != nullptr;
executed 1224 times by 18 tests: return d->when != nullptr;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
1224
117}-
118QQmlBinding *QQuickState::when() const-
119{-
120 const QQuickStatePrivate * const d = d_func();-
121 return
executed 1260 times by 8 tests: return d->when.data();
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
d->when.data();
executed 1260 times by 8 tests: return d->when.data();
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
1260
122}-
123-
124void QQuickState::setWhen(QQmlBinding *when)-
125{-
126 QQuickStatePrivate * const d = d_func();-
127 d->when = when;-
128 if (d->group
d->groupDescription
TRUEevaluated 624 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEnever evaluated
)
0-624
129 d->group->updateAutoState();
executed 624 times by 8 tests: d->group->updateAutoState();
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
624
130}
executed 624 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
624
131QString QQuickState::extends() const-
132{-
133 const QQuickStatePrivate * const d = d_func();-
134 return
executed 4 times by 1 test: return d->extends;
Executed by:
  • tst_qqmlenginedebugservice
d->extends;
executed 4 times by 1 test: return d->extends;
Executed by:
  • tst_qqmlenginedebugservice
4
135}-
136-
137void QQuickState::setExtends(const QString &extends)-
138{-
139 QQuickStatePrivate * const d = d_func();-
140 d->extends = extends;-
141}
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquickstates
8
142QQmlListProperty<QQuickStateOperation> QQuickState::changes()-
143{-
144 QQuickStatePrivate * const d = d_func();-
145 return
executed 370 times by 18 tests: return QQmlListProperty<QQuickStateOperation>(this, &d->operations, QQuickStatePrivate::operations_append, QQuickStatePrivate::operations_count, QQuickStatePrivate::operations_at, QQuickStatePrivate::operations_clear);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
QQmlListProperty<QQuickStateOperation>(this, &d->operations, QQuickStatePrivate::operations_append,
executed 370 times by 18 tests: return QQmlListProperty<QQuickStateOperation>(this, &d->operations, QQuickStatePrivate::operations_append, QQuickStatePrivate::operations_count, QQuickStatePrivate::operations_at, QQuickStatePrivate::operations_clear);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
370
146 QQuickStatePrivate::operations_count, QQuickStatePrivate::operations_at,
executed 370 times by 18 tests: return QQmlListProperty<QQuickStateOperation>(this, &d->operations, QQuickStatePrivate::operations_append, QQuickStatePrivate::operations_count, QQuickStatePrivate::operations_at, QQuickStatePrivate::operations_clear);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
370
147 QQuickStatePrivate::operations_clear);
executed 370 times by 18 tests: return QQmlListProperty<QQuickStateOperation>(this, &d->operations, QQuickStatePrivate::operations_append, QQuickStatePrivate::operations_count, QQuickStatePrivate::operations_at, QQuickStatePrivate::operations_clear);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
370
148}-
149-
150int QQuickState::operationCount() const-
151{-
152 const QQuickStatePrivate * const d = d_func();-
153 return
executed 6 times by 2 tests: return d->operations.count();
Executed by:
  • tst_qquickdesignersupport
  • tst_qquickstates
d->operations.count();
executed 6 times by 2 tests: return d->operations.count();
Executed by:
  • tst_qquickdesignersupport
  • tst_qquickstates
6
154}-
155-
156QQuickStateOperation *QQuickState::operationAt(int index) const-
157{-
158 const QQuickStatePrivate * const d = d_func();-
159 return
executed 18 times by 1 test: return d->operations.at(index);
Executed by:
  • tst_qquickstates
d->operations.at(index);
executed 18 times by 1 test: return d->operations.at(index);
Executed by:
  • tst_qquickstates
18
160}-
161-
162QQuickState &QQuickState::operator<<(QQuickStateOperation *op)-
163{-
164 QQuickStatePrivate * const d = d_func();-
165 d->operations.append(QQuickStatePrivate::OperationGuard(op, &d->operations));-
166 return
never executed: return *this;
*this;
never executed: return *this;
0
167}-
168-
169void QQuickStatePrivate::complete()-
170{-
171 QQuickState * const q = q_func();-
172-
173 for (int ii = 0; ii < reverting.count()
ii < reverting.count()Description
TRUEevaluated 162 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 574 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
; ++ii) {
162-574
174 for (int jj = 0; jj < revertList.count()
jj < revertList.count()Description
TRUEevaluated 164 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEnever evaluated
; ++jj) {
0-164
175 const QQuickRevertAction &revert = reverting.at(ii);-
176 const QQuickSimpleAction &simple = revertList.at(jj);-
177 if ((revert.event
revert.eventDescription
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 124 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickmousearea
  • tst_qquickstates
&& simple.event() == revert.event
simple.event() == revert.eventDescription
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEnever evaluated
) ||
0-124
178 simple.property() == revert.property
simple.propert...evert.propertyDescription
TRUEevaluated 122 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickstates
) {
2-122
179 revertList.removeAt(jj);-
180 break;
executed 162 times by 12 tests: break;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
162
181 }-
182 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickstates
2
183 }
executed 162 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
162
184 reverting.clear();-
185-
186 if (group
groupDescription
TRUEevaluated 574 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
FALSEnever evaluated
)
0-574
187 group->stateAboutToComplete();
executed 574 times by 19 tests: group->stateAboutToComplete();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
574
188 q->completed();-
189}
executed 574 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
574
190-
191-
192-
193QQuickStateOperation::ActionList-
194QQuickStatePrivate::generateActionList() const-
195{-
196 QQuickStateOperation::ActionList applyList;-
197 if (inState
inStateDescription
TRUEnever evaluated
FALSEevaluated 602 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
)
0-602
198 return
never executed: return applyList;
applyList;
never executed: return applyList;
0
199-
200-
201 inState = true;-
202-
203 if (!extends.isEmpty()
!extends.isEmpty()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 588 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
) {
14-588
204 QList<QQuickState *> states = group
groupDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEnever evaluated
? group->states() : QList<QQuickState *>();
0-14
205 for (int ii = 0; ii < states.count()
ii < states.count()Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquickstates
; ++ii)
14-28
206 if (states.at(ii)->name() == extends
states.at(ii)-...e() == extendsDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquickstates
) {
14
207 qmlExecuteDeferred(states.at(ii));-
208 applyList = static_cast<QQuickStatePrivate*>(states.at(ii)->d_func())->generateActionList();-
209 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_qquickstates
14
210 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_qquickstates
14
211-
212 for (QQuickStateOperation *op : operations)-
213 applyList << op->actions();
executed 710 times by 18 tests: applyList << op->actions();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
710
214-
215 inState = false;-
216 return
executed 602 times by 20 tests: return applyList;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
applyList;
executed 602 times by 20 tests: return applyList;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
602
217}-
218-
219QQuickStateGroup *QQuickState::stateGroup() const-
220{-
221 const QQuickStatePrivate * const d = d_func();-
222 return
executed 174 times by 3 tests: return d->group;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickstates
d->group;
executed 174 times by 3 tests: return d->group;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickstates
174
223}-
224-
225void QQuickState::setStateGroup(QQuickStateGroup *group)-
226{-
227 QQuickStatePrivate * const d = d_func();-
228 d->group = group;-
229}
executed 2556 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
2556
230-
231void QQuickState::cancel()-
232{-
233 QQuickStatePrivate * const d = d_func();-
234 d->transitionManager.cancel();-
235}
executed 1176 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
1176
236-
237void QQuickStateAction::deleteFromBinding()-
238{-
239 if (fromBinding
fromBindingDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
) {
4-6
240 QQmlPropertyPrivate::removeBinding(property);-
241 fromBinding = nullptr;-
242 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickstates
4
243}
executed 10 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickstates
10
244-
245bool QQuickState::containsPropertyInRevertList(QObject *target, const QString &name) const-
246{-
247 const QQuickStatePrivate * const d = d_func();-
248-
249 if (isStateActive()
isStateActive()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
FALSEnever evaluated
) {
0-8
250 QListIterator<QQuickSimpleAction> revertListIterator(d->revertList);-
251-
252 while (revertListIterator.hasNext()
revertListIterator.hasNext()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
) {
4-6
253 const QQuickSimpleAction &simpleAction = revertListIterator.next();-
254 if (simpleAction.specifiedObject() == target
simpleAction.s...ct() == targetDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
FALSEnever evaluated
&& simpleAction.specifiedProperty() == name
simpleAction.s...erty() == nameDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlenginedebugservice
)
0-6
255 return
executed 4 times by 2 tests: return true;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
true;
executed 4 times by 2 tests: return true;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
4
256 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlenginedebugservice
2
257 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
4
258-
259 return
executed 4 times by 2 tests: return false;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
false;
executed 4 times by 2 tests: return false;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
4
260}-
261-
262bool QQuickState::changeValueInRevertList(QObject *target, const QString &name, const QVariant &revertValue)-
263{-
264 QQuickStatePrivate * const d = d_func();-
265-
266 if (isStateActive()
isStateActive()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdesignersupport
FALSEnever evaluated
) {
0-2
267 QMutableListIterator<QQuickSimpleAction> revertListIterator(d->revertList);-
268-
269 while (revertListIterator.hasNext()
revertListIterator.hasNext()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdesignersupport
FALSEnever evaluated
) {
0-2
270 QQuickSimpleAction &simpleAction = revertListIterator.next();-
271 if (simpleAction.specifiedObject() == target
simpleAction.s...ct() == targetDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdesignersupport
FALSEnever evaluated
&& simpleAction.specifiedProperty() == name
simpleAction.s...erty() == nameDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdesignersupport
FALSEnever evaluated
) {
0-2
272 simpleAction.setValue(revertValue);-
273 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_qquickdesignersupport
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_qquickdesignersupport
2
274 }-
275 }
never executed: end of block
0
276 }
never executed: end of block
0
277-
278 return
never executed: return false;
false;
never executed: return false;
0
279}-
280-
281bool QQuickState::changeBindingInRevertList(QObject *target, const QString &name, QQmlAbstractBinding *binding)-
282{-
283 QQuickStatePrivate * const d = d_func();-
284-
285 if (isStateActive()
isStateActive()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlenginedebugservice
FALSEnever evaluated
) {
0-2
286 QMutableListIterator<QQuickSimpleAction> revertListIterator(d->revertList);-
287-
288 while (revertListIterator.hasNext()
revertListIterator.hasNext()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlenginedebugservice
FALSEnever evaluated
) {
0-2
289 QQuickSimpleAction &simpleAction = revertListIterator.next();-
290 if (simpleAction.specifiedObject() == target
simpleAction.s...ct() == targetDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlenginedebugservice
FALSEnever evaluated
&& simpleAction.specifiedProperty() == name
simpleAction.s...erty() == nameDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlenginedebugservice
FALSEnever evaluated
) {
0-2
291 simpleAction.setBinding(binding);-
292 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlenginedebugservice
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlenginedebugservice
2
293 }-
294 }
never executed: end of block
0
295 }
never executed: end of block
0
296-
297 return
never executed: return false;
false;
never executed: return false;
0
298}-
299-
300bool QQuickState::removeEntryFromRevertList(QObject *target, const QString &name)-
301{-
302 QQuickStatePrivate * const d = d_func();-
303-
304 if (isStateActive()
isStateActive()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickdesignersupport
  • tst_qquickstates
) {
4-6
305 QMutableListIterator<QQuickSimpleAction> revertListIterator(d->revertList);-
306-
307 while (revertListIterator.hasNext()
revertListIterator.hasNext()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
FALSEnever evaluated
) {
0-6
308 QQuickSimpleAction &simpleAction = revertListIterator.next();-
309 if (simpleAction.property().object() == target
simpleAction.p...ct() == targetDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
FALSEnever evaluated
&& simpleAction.property().name() == name
simpleAction.p...name() == nameDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
FALSEnever evaluated
) {
0-6
310 QQmlPropertyPrivate::removeBinding(simpleAction.property());-
311-
312 simpleAction.property().write(simpleAction.value());-
313 if (simpleAction.binding()
simpleAction.binding()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickstates
)
2-4
314 QQmlPropertyPrivate::setBinding(simpleAction.binding());
executed 4 times by 2 tests: QQmlPropertyPrivate::setBinding(simpleAction.binding());
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
4
315-
316 revertListIterator.remove();-
317 return
executed 6 times by 2 tests: return true;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
true;
executed 6 times by 2 tests: return true;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
6
318 }-
319 }
never executed: end of block
0
320 }
never executed: end of block
0
321-
322 return
executed 4 times by 2 tests: return false;
Executed by:
  • tst_qquickdesignersupport
  • tst_qquickstates
false;
executed 4 times by 2 tests: return false;
Executed by:
  • tst_qquickdesignersupport
  • tst_qquickstates
4
323}-
324-
325void QQuickState::addEntryToRevertList(const QQuickStateAction &action)-
326{-
327 QQuickStatePrivate * const d = d_func();-
328-
329 QQuickSimpleAction simpleAction(action);-
330-
331 d->revertList.append(simpleAction);-
332}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlenginedebugservice
2
333-
334void QQuickState::removeAllEntriesFromRevertList(QObject *target)-
335{-
336 QQuickStatePrivate * const d = d_func();-
337-
338 if (isStateActive()
isStateActive()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
339 QMutableListIterator<QQuickSimpleAction> revertListIterator(d->revertList);-
340-
341 while (revertListIterator.hasNext()
revertListIterator.hasNext()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
342 QQuickSimpleAction &simpleAction = revertListIterator.next();-
343 if (simpleAction.property().object() == target
simpleAction.p...ct() == targetDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
344 QQmlPropertyPrivate::removeBinding(simpleAction.property());-
345-
346 simpleAction.property().write(simpleAction.value());-
347 if (simpleAction.binding()
simpleAction.binding()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
348 QQmlPropertyPrivate::setBinding(simpleAction.binding());
never executed: QQmlPropertyPrivate::setBinding(simpleAction.binding());
0
349-
350 revertListIterator.remove();-
351 }
never executed: end of block
0
352 }
never executed: end of block
0
353 }
never executed: end of block
0
354}
never executed: end of block
0
355-
356void QQuickState::addEntriesToRevertList(const QList<QQuickStateAction> &actionList)-
357{-
358 QQuickStatePrivate * const d = d_func();-
359 if (isStateActive()
isStateActive()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdesignersupport
) {
0-2
360 QList<QQuickSimpleAction> simpleActionList;-
361 simpleActionList.reserve(actionList.count());-
362-
363 QListIterator<QQuickStateAction> actionListIterator(actionList);-
364 while(actionListIterator.hasNext()
actionListIterator.hasNext()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
365 const QQuickStateAction &action = actionListIterator.next();-
366 QQuickSimpleAction simpleAction(action);-
367 action.property.write(action.toValue);-
368 if (action.toBinding
action.toBindingDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
369 QQmlPropertyPrivate::setBinding(action.toBinding.data());
never executed: QQmlPropertyPrivate::setBinding(action.toBinding.data());
0
370-
371 simpleActionList.append(simpleAction);-
372 }
never executed: end of block
0
373-
374 d->revertList.append(simpleActionList);-
375 }
never executed: end of block
0
376}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickdesignersupport
2
377-
378QVariant QQuickState::valueInRevertList(QObject *target, const QString &name) const-
379{-
380 const QQuickStatePrivate * const d = d_func();-
381-
382 if (isStateActive()
isStateActive()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
383 QListIterator<QQuickSimpleAction> revertListIterator(d->revertList);-
384-
385 while (revertListIterator.hasNext()
revertListIterator.hasNext()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
386 const QQuickSimpleAction &simpleAction = revertListIterator.next();-
387 if (simpleAction.specifiedObject() == target
simpleAction.s...ct() == targetDescription
TRUEnever evaluated
FALSEnever evaluated
&& simpleAction.specifiedProperty() == name
simpleAction.s...erty() == nameDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
388 return
never executed: return simpleAction.value();
simpleAction.value();
never executed: return simpleAction.value();
0
389 }
never executed: end of block
0
390 }
never executed: end of block
0
391-
392 return
never executed: return QVariant();
QVariant();
never executed: return QVariant();
0
393}-
394-
395QQmlAbstractBinding *QQuickState::bindingInRevertList(QObject *target, const QString &name) const-
396{-
397 const QQuickStatePrivate * const d = d_func();-
398-
399 if (isStateActive()
isStateActive()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEnever evaluated
) {
0-12
400 QListIterator<QQuickSimpleAction> revertListIterator(d->revertList);-
401-
402 while (revertListIterator.hasNext()
revertListIterator.hasNext()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickstates
) {
2-16
403 const QQuickSimpleAction &simpleAction = revertListIterator.next();-
404 if (simpleAction.specifiedObject() == target
simpleAction.s...ct() == targetDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEnever evaluated
&& simpleAction.specifiedProperty() == name
simpleAction.s...erty() == nameDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickstates
)
0-16
405 return
executed 10 times by 1 test: return simpleAction.binding();
Executed by:
  • tst_qquickstates
simpleAction.binding();
executed 10 times by 1 test: return simpleAction.binding();
Executed by:
  • tst_qquickstates
10
406 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickstates
6
407 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickstates
2
408-
409 return
executed 2 times by 1 test: return nullptr;
Executed by:
  • tst_qquickstates
nullptr;
executed 2 times by 1 test: return nullptr;
Executed by:
  • tst_qquickstates
2
410}-
411-
412bool QQuickState::isStateActive() const-
413{-
414 return
executed 68 times by 3 tests: return stateGroup() && stateGroup()->state() == name();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickstates
stateGroup() && stateGroup()->state() == name();
executed 68 times by 3 tests: return stateGroup() && stateGroup()->state() == name();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickstates
68
415}-
416-
417void QQuickState::apply(QQuickTransition *trans, QQuickState *revert)-
418{-
419 QQuickStatePrivate * const d = d_func();-
420-
421 qmlExecuteDeferred(this);-
422-
423 cancel();-
424 if (revert
revertDescription
TRUEevaluated 588 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
FALSEnever evaluated
)
0-588
425 revert->cancel();
executed 588 times by 20 tests: revert->cancel();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
588
426 d->revertList.clear();-
427 d->reverting.clear();-
428-
429 if (revert
revertDescription
TRUEevaluated 588 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
FALSEnever evaluated
) {
0-588
430 QQuickStatePrivate *revertPrivate =-
431 static_cast<QQuickStatePrivate*>(revert->d_func());-
432 d->revertList = revertPrivate->revertList;-
433 revertPrivate->revertList.clear();-
434 }
executed 588 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
588
435-
436-
437 QQuickStateOperation::ActionList applyList = d->generateActionList();-
438-
439-
440 QQuickStatePrivate::SimpleActionList additionalReverts;-
441-
442 for (int ii = 0; ii < applyList.count()
ii < applyList.count()Description
TRUEevaluated 924 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 588 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
; ++ii) {
588-924
443 QQuickStateAction &action = applyList[ii];-
444-
445 if (action.event
action.eventDescription
TRUEevaluated 198 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 726 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
) {
198-726
446 if (!action.event->isReversable()
!action.event->isReversable()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
FALSEevaluated 190 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
)
8-190
447 continue;
executed 8 times by 2 tests: continue;
Executed by:
  • tst_qquickanimations
  • tst_qquickstates
8
448 bool found = false;-
449 for (int jj = 0; jj < d->revertList.count()
jj < d->revertList.count()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
FALSEevaluated 176 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
; ++jj) {
18-176
450 QQuickStateActionEvent *event = d->revertList.at(jj).event();-
451 if (event
eventDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickstates
&& event->type() == action.event->type()
event->type() ....event->type()Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
FALSEnever evaluated
) {
0-14
452 if (action.event->mayOverride(event)
action.event->...verride(event)Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
FALSEnever evaluated
) {
0-14
453 found = true;-
454-
455 if (action.event != d->revertList.at(jj).event()
action.event !...at(jj).event()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickstates
&& action.event->needsCopy()
action.event->needsCopy()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
FALSEnever evaluated
) {
0-10
456 action.event->copyOriginals(d->revertList.at(jj).event());-
457-
458 QQuickSimpleAction r(action);-
459 additionalReverts << r;-
460 d->revertList.removeAt(jj);-
461 --jj;-
462 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickstates
else if (action.event->isRewindable()
action.event->isRewindable()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEnever evaluated
)
0-10
463 action.event->saveCurrentValues();
executed 4 times by 1 test: action.event->saveCurrentValues();
Executed by:
  • tst_qquickstates
4
464-
465 break;
executed 14 times by 2 tests: break;
Executed by:
  • tst_qquickanimations
  • tst_qquickstates
14
466 }-
467 }
never executed: end of block
0
468 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickstates
4
469 if (!found
!foundDescription
TRUEevaluated 176 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
) {
14-176
470 action.event->saveOriginals();-
471-
472-
473 QQuickSimpleAction r(action);-
474 additionalReverts << r;-
475 }
executed 176 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
176
476 }
executed 190 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
else {
190
477 bool found = false;-
478 action.fromBinding = QQmlPropertyPrivate::binding(action.property);-
479-
480 for (int jj = 0; jj < d->revertList.count()
jj < d->revertList.count()Description
TRUEevaluated 44 times by 2 tests
Evaluated by:
  • tst_qquickfontloader
  • tst_qquickstates
FALSEevaluated 692 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
; ++jj) {
44-692
481 if (d->revertList.at(jj).property() == action.property
d->revertList....ction.propertyDescription
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickfontloader
  • tst_qquickstates
) {
10-34
482 found = true;-
483 if (d->revertList.at(jj).binding() != action.fromBinding.data()
d->revertList....Binding.data()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquickstates
) {
6-28
484 action.deleteFromBinding();-
485 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickstates
6
486 break;
executed 34 times by 1 test: break;
Executed by:
  • tst_qquickstates
34
487 }-
488 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_qquickfontloader
  • tst_qquickstates
10
489-
490 if (!found
!foundDescription
TRUEevaluated 692 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_qquickstates
) {
34-692
491 if (!action.restore
!action.restoreDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
FALSEevaluated 688 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
) {
4-688
492 action.deleteFromBinding();;-
493 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickstates
else {
4
494-
495-
496 QQuickSimpleAction r(action);-
497 additionalReverts << r;-
498 }
executed 688 times by 17 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
688
499 }-
500 }
executed 726 times by 17 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
726
501 }-
502-
503-
504-
505 for (int ii = 0; ii < d->revertList.count()
ii < d->revertList.count()Description
TRUEevaluated 194 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 588 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
; ++ii) {
194-588
506 bool found = false;-
507 if (d->revertList.at(ii).event()
d->revertList.at(ii).event()Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 150 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickmousearea
  • tst_qquickstates
) {
44-150
508 QQuickStateActionEvent *event = d->revertList.at(ii).event();-
509 if (!event->isReversable()
!event->isReversable()Description
TRUEnever evaluated
FALSEevaluated 44 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
)
0-44
510 continue;
never executed: continue;
0
511 for (int jj = 0; !found
!foundDescription
TRUEevaluated 56 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickstates
&& jj < applyList.count()
jj < applyList.count()Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
; ++jj) {
4-56
512 const QQuickStateAction &action = applyList.at(jj);-
513 if (action.event
action.eventDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickstates
&& action.event->type() == event->type()
action.event->... event->type()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicklistview
) {
4-8
514 if (action.event->mayOverride(event)
action.event->...verride(event)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEnever evaluated
)
0-4
515 found = true;
executed 4 times by 1 test: found = true;
Executed by:
  • tst_qquickstates
4
516 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickstates
4
517 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickstates
16
518 }
executed 44 times by 3 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
else {
44
519 for (int jj = 0; !found
!foundDescription
TRUEevaluated 186 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquickstates
&& jj < applyList.count()
jj < applyList.count()Description
TRUEevaluated 64 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickstates
FALSEevaluated 122 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickmousearea
  • tst_qquickstates
; ++jj) {
28-186
520 const QQuickStateAction &action = applyList.at(jj);-
521 if (action.property == d->revertList.at(ii).property()
action.propert...ii).property()Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 36 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickstates
)
28-36
522 found = true;
executed 28 times by 1 test: found = true;
Executed by:
  • tst_qquickstates
28
523 }
executed 64 times by 4 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickstates
64
524 }
executed 150 times by 11 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickmousearea
  • tst_qquickstates
150
525 if (!found
!foundDescription
TRUEevaluated 162 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquickstates
) {
32-162
526 QVariant cur = d->revertList.at(ii).property().read();-
527 QQmlPropertyPrivate::removeBinding(d->revertList.at(ii).property());-
528-
529 QQuickStateAction a;-
530 a.property = d->revertList.at(ii).property();-
531 a.fromValue = cur;-
532 a.toValue = d->revertList.at(ii).value();-
533 a.toBinding = d->revertList.at(ii).binding();-
534 a.specifiedObject = d->revertList.at(ii).specifiedObject();-
535 a.specifiedProperty = d->revertList.at(ii).specifiedProperty();-
536 a.event = d->revertList.at(ii).event();-
537 a.reverseEvent = d->revertList.at(ii).reverseEvent();-
538 if (a.event
a.eventDescription
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 122 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickmousearea
  • tst_qquickstates
&& a.event->isRewindable()
a.event->isRewindable()Description
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEnever evaluated
)
0-122
539 a.event->saveCurrentValues();
executed 40 times by 3 tests: a.event->saveCurrentValues();
Executed by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
40
540 applyList << a;-
541-
542 if (a.event
a.eventDescription
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 122 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickmousearea
  • tst_qquickstates
)
40-122
543 d->reverting << a.event;
executed 40 times by 3 tests: d->reverting << a.event;
Executed by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
40
544 else-
545 d->reverting << a.property;
executed 122 times by 11 tests: d->reverting << a.property;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickmousearea
  • tst_qquickstates
122
546 }-
547 }
executed 194 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
194
548-
549 d->revertList << additionalReverts;-
550-
551-
552-
553 if (stateChangeDebug()
stateChangeDebug()Description
TRUEnever evaluated
FALSEevaluated 588 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
) {
0-588
554 for (const QQuickStateAction &action : qAsConst(applyList)) {-
555 if (action.event
action.eventDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
556 QMessageLogger(__FILE__, 680, __PRETTY_FUNCTION__).warning() << " QQuickStateAction event:" << action.event->type();
never executed: QMessageLogger(__FILE__, 680, __PRETTY_FUNCTION__).warning() << " QQuickStateAction event:" << action.event->type();
0
557 else-
558 QMessageLogger(__FILE__, 682, __PRETTY_FUNCTION__).warning() << " QQuickStateAction:" << action.property.object()
never executed: QMessageLogger(__FILE__, 682, __PRETTY_FUNCTION__).warning() << " QQuickStateAction:" << action.property.object() << action.property.name() << "From:" << action.fromValue << "To:" << action.toValue;
0
559 << action.property.name() << "From:" << action.fromValue
never executed: QMessageLogger(__FILE__, 682, __PRETTY_FUNCTION__).warning() << " QQuickStateAction:" << action.property.object() << action.property.name() << "From:" << action.fromValue << "To:" << action.toValue;
0
560 << "To:" << action.toValue;
never executed: QMessageLogger(__FILE__, 682, __PRETTY_FUNCTION__).warning() << " QQuickStateAction:" << action.property.object() << action.property.name() << "From:" << action.fromValue << "To:" << action.toValue;
0
561 }-
562 }
never executed: end of block
0
563-
564-
565 d->transitionManager.transition(applyList, trans);-
566}
executed 588 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
588
567-
568QQuickStateOperation::ActionList QQuickStateOperation::actions()-
569{-
570 return
never executed: return ActionList();
ActionList();
never executed: return ActionList();
0
571}-
572-
573QQuickState *QQuickStateOperation::state() const-
574{-
575 const QQuickStateOperationPrivate * const d = d_func();-
576 return
executed 60 times by 3 tests: return d->m_state;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickstates
d->m_state;
executed 60 times by 3 tests: return d->m_state;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickstates
60
577}-
578-
579void QQuickStateOperation::setState(QQuickState *state)-
580{-
581 QQuickStateOperationPrivate * const d = d_func();-
582 d->m_state = state;-
583}
executed 622 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
622
584-
585-
586-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0