OpenCoverage

qquickstategroup.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickstategroup.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 594 times by 18 tests
Evaluated by:
  • tst_examples
  • 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_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 634 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 634 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-634
9-
10class QQuickStateGroupPrivate : public QObjectPrivate-
11{-
12 inline QQuickStateGroup* q_func() { return static_cast<QQuickStateGroup *>(q_ptr); } inline const QQuickStateGroup* q_func() const { return static_cast<const QQuickStateGroup *>(q_ptr); } friend class QQuickStateGroup;-
13public:-
14 QQuickStateGroupPrivate()-
15 : nullState(nullptr), componentComplete(true),-
16 ignoreTrans(false), applyingState(false), unnamedCount(0) {}
executed 1070 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1070
17-
18 QString currentState;-
19 QQuickState *nullState;-
20-
21 static void append_state(QQmlListProperty<QQuickState> *list, QQuickState *state);-
22 static int count_state(QQmlListProperty<QQuickState> *list);-
23 static QQuickState *at_state(QQmlListProperty<QQuickState> *list, int index);-
24 static void clear_states(QQmlListProperty<QQuickState> *list);-
25-
26 static void append_transition(QQmlListProperty<QQuickTransition> *list, QQuickTransition *state);-
27 static int count_transitions(QQmlListProperty<QQuickTransition> *list);-
28 static QQuickTransition *at_transition(QQmlListProperty<QQuickTransition> *list, int index);-
29 static void clear_transitions(QQmlListProperty<QQuickTransition> *list);-
30-
31 QList<QQuickState *> states;-
32 QList<QQuickTransition *> transitions;-
33-
34 bool componentComplete;-
35 bool ignoreTrans;-
36 bool applyingState;-
37 int unnamedCount;-
38-
39 QQuickTransition *findTransition(const QString &from, const QString &to);-
40 void setCurrentStateInternal(const QString &state, bool = false);-
41 bool updateAutoState();-
42};-
43QQuickStateGroup::QQuickStateGroup(QObject *parent)-
44 : QObject(*(new QQuickStateGroupPrivate), parent)-
45{-
46}
executed 1070 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1070
47-
48QQuickStateGroup::~QQuickStateGroup()-
49{-
50 const QQuickStateGroupPrivate * const d = d_func();-
51 for (int i = 0; i < d->states.count()
i < d->states.count()Description
TRUEevaluated 1040 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
FALSEevaluated 958 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
; ++i)
958-1040
52 d->states.at(i)->setStateGroup(nullptr);
executed 1040 times by 19 tests: d->states.at(i)->setStateGroup(nullptr);
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
1040
53}
executed 958 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
958
54-
55QList<QQuickState *> QQuickStateGroup::states() const-
56{-
57 const QQuickStateGroupPrivate * const d = d_func();-
58 return
executed 26 times by 2 tests: return d->states;
Executed by:
  • tst_qquickdesignersupport
  • tst_qquickstates
d->states;
executed 26 times by 2 tests: return d->states;
Executed by:
  • tst_qquickdesignersupport
  • tst_qquickstates
26
59}-
60QQmlListProperty<QQuickState> QQuickStateGroup::statesProperty()-
61{-
62 QQuickStateGroupPrivate * const d = d_func();-
63 return
executed 1208 times by 24 tests: return QQmlListProperty<QQuickState>(this, &d->states, &QQuickStateGroupPrivate::append_state, &QQuickStateGroupPrivate::count_state, &QQuickStateGroupPrivate::at_state, &QQuickStateGroupPrivate::clear_states);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
QQmlListProperty<QQuickState>(this, &d->states, &QQuickStateGroupPrivate::append_state,
executed 1208 times by 24 tests: return QQmlListProperty<QQuickState>(this, &d->states, &QQuickStateGroupPrivate::append_state, &QQuickStateGroupPrivate::count_state, &QQuickStateGroupPrivate::at_state, &QQuickStateGroupPrivate::clear_states);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1208
64 &QQuickStateGroupPrivate::count_state,
executed 1208 times by 24 tests: return QQmlListProperty<QQuickState>(this, &d->states, &QQuickStateGroupPrivate::append_state, &QQuickStateGroupPrivate::count_state, &QQuickStateGroupPrivate::at_state, &QQuickStateGroupPrivate::clear_states);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1208
65 &QQuickStateGroupPrivate::at_state,
executed 1208 times by 24 tests: return QQmlListProperty<QQuickState>(this, &d->states, &QQuickStateGroupPrivate::append_state, &QQuickStateGroupPrivate::count_state, &QQuickStateGroupPrivate::at_state, &QQuickStateGroupPrivate::clear_states);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1208
66 &QQuickStateGroupPrivate::clear_states);
executed 1208 times by 24 tests: return QQmlListProperty<QQuickState>(this, &d->states, &QQuickStateGroupPrivate::append_state, &QQuickStateGroupPrivate::count_state, &QQuickStateGroupPrivate::at_state, &QQuickStateGroupPrivate::clear_states);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1208
67}-
68-
69void QQuickStateGroupPrivate::append_state(QQmlListProperty<QQuickState> *list, QQuickState *state)-
70{-
71 QQuickStateGroup *_this = static_cast<QQuickStateGroup *>(list->object);-
72 if (state
stateDescription
TRUEevaluated 1170 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
FALSEnever evaluated
) {
0-1170
73 _this->d_func()->states.append(state);-
74 state->setStateGroup(_this);-
75 }
executed 1170 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
1170
76-
77}
executed 1170 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
1170
78-
79int QQuickStateGroupPrivate::count_state(QQmlListProperty<QQuickState> *list)-
80{-
81 QQuickStateGroup *_this = static_cast<QQuickStateGroup *>(list->object);-
82 return
executed 10 times by 3 tests: return _this->d_func()->states.count();
Executed by:
  • tst_examples
  • tst_qqmllistreference
  • tst_qquickdesignersupport
_this->d_func()->states.count();
executed 10 times by 3 tests: return _this->d_func()->states.count();
Executed by:
  • tst_examples
  • tst_qqmllistreference
  • tst_qquickdesignersupport
10
83}-
84-
85QQuickState *QQuickStateGroupPrivate::at_state(QQmlListProperty<QQuickState> *list, int index)-
86{-
87 QQuickStateGroup *_this = static_cast<QQuickStateGroup *>(list->object);-
88 return
executed 22 times by 3 tests: return _this->d_func()->states.at(index);
Executed by:
  • tst_examples
  • tst_qqmllistreference
  • tst_qquickstates
_this->d_func()->states.at(index);
executed 22 times by 3 tests: return _this->d_func()->states.at(index);
Executed by:
  • tst_examples
  • tst_qqmllistreference
  • tst_qquickstates
22
89}-
90-
91void QQuickStateGroupPrivate::clear_states(QQmlListProperty<QQuickState> *list)-
92{-
93 QQuickStateGroup *_this = static_cast<QQuickStateGroup *>(list->object);-
94 _this->d_func()->setCurrentStateInternal(QString(), true);-
95 for (int i = 0; i < _this->d_func()->states.count()
i < _this->d_f...states.count()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
96 _this->d_func()->states.at(i)->setStateGroup(nullptr);-
97 }
never executed: end of block
0
98 _this->d_func()->states.clear();-
99}
never executed: end of block
0
100QQmlListProperty<QQuickTransition> QQuickStateGroup::transitionsProperty()-
101{-
102 QQuickStateGroupPrivate * const d = d_func();-
103 return
executed 598 times by 10 tests: return QQmlListProperty<QQuickTransition>(this, &d->transitions, &QQuickStateGroupPrivate::append_transition, &QQuickStateGroupPrivate::count_transitions, &QQuickStateGroupPrivate::at_transition, &QQuickStateGroupPrivate::clear_transitions);
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
QQmlListProperty<QQuickTransition>(this, &d->transitions, &QQuickStateGroupPrivate::append_transition,
executed 598 times by 10 tests: return QQmlListProperty<QQuickTransition>(this, &d->transitions, &QQuickStateGroupPrivate::append_transition, &QQuickStateGroupPrivate::count_transitions, &QQuickStateGroupPrivate::at_transition, &QQuickStateGroupPrivate::clear_transitions);
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
598
104 &QQuickStateGroupPrivate::count_transitions,
executed 598 times by 10 tests: return QQmlListProperty<QQuickTransition>(this, &d->transitions, &QQuickStateGroupPrivate::append_transition, &QQuickStateGroupPrivate::count_transitions, &QQuickStateGroupPrivate::at_transition, &QQuickStateGroupPrivate::clear_transitions);
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
598
105 &QQuickStateGroupPrivate::at_transition,
executed 598 times by 10 tests: return QQmlListProperty<QQuickTransition>(this, &d->transitions, &QQuickStateGroupPrivate::append_transition, &QQuickStateGroupPrivate::count_transitions, &QQuickStateGroupPrivate::at_transition, &QQuickStateGroupPrivate::clear_transitions);
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
598
106 &QQuickStateGroupPrivate::clear_transitions);
executed 598 times by 10 tests: return QQmlListProperty<QQuickTransition>(this, &d->transitions, &QQuickStateGroupPrivate::append_transition, &QQuickStateGroupPrivate::count_transitions, &QQuickStateGroupPrivate::at_transition, &QQuickStateGroupPrivate::clear_transitions);
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
598
107}-
108-
109void QQuickStateGroupPrivate::append_transition(QQmlListProperty<QQuickTransition> *list, QQuickTransition *trans)-
110{-
111 QQuickStateGroup *_this = static_cast<QQuickStateGroup *>(list->object);-
112 if (trans
transDescription
TRUEevaluated 426 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickflipable
FALSEnever evaluated
)
0-426
113 _this->d_func()->transitions.append(trans);
executed 426 times by 4 tests: _this->d_func()->transitions.append(trans);
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickflipable
426
114}
executed 426 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickflipable
426
115-
116int QQuickStateGroupPrivate::count_transitions(QQmlListProperty<QQuickTransition> *list)-
117{-
118 QQuickStateGroup *_this = static_cast<QQuickStateGroup *>(list->object);-
119 return
executed 10 times by 2 tests: return _this->d_func()->transitions.count();
Executed by:
  • tst_qquickanimations
  • tst_qquickdesignersupport
_this->d_func()->transitions.count();
executed 10 times by 2 tests: return _this->d_func()->transitions.count();
Executed by:
  • tst_qquickanimations
  • tst_qquickdesignersupport
10
120}-
121-
122QQuickTransition *QQuickStateGroupPrivate::at_transition(QQmlListProperty<QQuickTransition> *list, int index)-
123{-
124 QQuickStateGroup *_this = static_cast<QQuickStateGroup *>(list->object);-
125 return
executed 2 times by 1 test: return _this->d_func()->transitions.at(index);
Executed by:
  • tst_qquickanimations
_this->d_func()->transitions.at(index);
executed 2 times by 1 test: return _this->d_func()->transitions.at(index);
Executed by:
  • tst_qquickanimations
2
126}-
127-
128void QQuickStateGroupPrivate::clear_transitions(QQmlListProperty<QQuickTransition> *list)-
129{-
130 QQuickStateGroup *_this = static_cast<QQuickStateGroup *>(list->object);-
131 _this->d_func()->transitions.clear();-
132}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
4
133QString QQuickStateGroup::state() const-
134{-
135 const QQuickStateGroupPrivate * const d = d_func();-
136 return
executed 360 times by 14 tests: return d->currentState;
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
d->currentState;
executed 360 times by 14 tests: return d->currentState;
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickstates
  • tst_quicktestmainwithsetup
  • tst_testfiltering
360
137}-
138-
139void QQuickStateGroup::setState(const QString &state)-
140{-
141 QQuickStateGroupPrivate * const d = d_func();-
142 if (d->currentState == state
d->currentState == stateDescription
TRUEnever evaluated
FALSEevaluated 590 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-590
143 return;
never executed: return;
0
144-
145 d->setCurrentStateInternal(state);-
146}
executed 590 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
590
147-
148void QQuickStateGroup::classBegin()-
149{-
150 QQuickStateGroupPrivate * const d = d_func();-
151 d->componentComplete = false;-
152}
executed 1016 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
1016
153-
154void QQuickStateGroup::componentComplete()-
155{-
156 QQuickStateGroupPrivate * const d = d_func();-
157 d->componentComplete = true;-
158-
159 for (int ii = 0; ii < d->states.count()
ii < d->states.count()Description
TRUEevaluated 1166 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 1014 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
; ++ii) {
1014-1166
160 QQuickState *state = d->states.at(ii);-
161 if (!state->isNamed()
!state->isNamed()Description
TRUEevaluated 352 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 814 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
)
352-814
162 state->setName(QLatin1String("anonymousState") + QString::number(++d->unnamedCount));
executed 352 times by 3 tests: state->setName(QLatin1String("anonymousState") + QString::number(++d->unnamedCount));
Executed by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquickstates
352
163 }
executed 1166 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
1166
164-
165 if (d->updateAutoState()
d->updateAutoState()Description
TRUEevaluated 8 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickfontloader
  • tst_qquickstates
FALSEevaluated 1006 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
) {
8-1006
166 return;
executed 8 times by 4 tests: return;
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickfontloader
  • tst_qquickstates
8
167 } else if (!d->currentState.isEmpty()
!d->currentState.isEmpty()Description
TRUEevaluated 118 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 888 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
) {
118-888
168 QString cs = d->currentState;-
169 d->currentState.clear();-
170 d->setCurrentStateInternal(cs, true);-
171 }
executed 118 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickpathview
  • tst_qquickstates
118
172}
executed 1006 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
1006
173-
174-
175-
176-
177bool QQuickStateGroup::updateAutoState()-
178{-
179 QQuickStateGroupPrivate * const d = d_func();-
180 return
executed 624 times by 8 tests: return d->updateAutoState();
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
d->updateAutoState();
executed 624 times by 8 tests: return d->updateAutoState();
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
624
181}-
182-
183bool QQuickStateGroupPrivate::updateAutoState()-
184{-
185 QQuickStateGroup * const q = q_func();-
186 if (!componentComplete
!componentCompleteDescription
TRUEevaluated 574 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 1064 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
)
574-1064
187 return
executed 574 times by 8 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
false;
executed 574 times by 8 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
574
188-
189 bool revert = false;-
190 for (int ii = 0; ii < states.count()
ii < states.count()Description
TRUEevaluated 1224 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 1018 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
; ++ii) {
1018-1224
191 QQuickState *state = states.at(ii);-
192 if (state->isWhenKnown()
state->isWhenKnown()Description
TRUEevaluated 630 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 594 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
) {
594-630
193 if (state->isNamed()
state->isNamed()Description
TRUEevaluated 630 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-630
194 if (state->when()
state->when()Description
TRUEevaluated 630 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEnever evaluated
&& state->when()->evaluate().toBool()
state->when()-...ate().toBool()Description
TRUEevaluated 46 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 584 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
) {
0-630
195 if (stateChangeDebug()
stateChangeDebug()Description
TRUEnever evaluated
FALSEevaluated 46 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
)
0-46
196 QMessageLogger(__FILE__, 342, __PRETTY_FUNCTION__).warning() << "Setting auto state due to:"
never executed: QMessageLogger(__FILE__, 342, __PRETTY_FUNCTION__).warning() << "Setting auto state due to:" << state->when()->expression();
0
197 << state->when()->expression();
never executed: QMessageLogger(__FILE__, 342, __PRETTY_FUNCTION__).warning() << "Setting auto state due to:" << state->when()->expression();
0
198 if (currentState != state->name()
currentState != state->name()Description
TRUEevaluated 36 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickstates
) {
10-36
199 q->setState(state->name());-
200 return
executed 36 times by 7 tests: return true;
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
true;
executed 36 times by 7 tests: return true;
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
36
201 } else {-
202 return
executed 10 times by 3 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickstates
false;
executed 10 times by 3 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickstates
10
203 }-
204 } else if (state->name() == currentState
state->name() == currentStateDescription
TRUEevaluated 18 times by 4 tests
Evaluated by:
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 566 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
) {
18-566
205 revert = true;-
206 }
executed 18 times by 4 tests: end of block
Executed by:
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
18
207 }
executed 584 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
584
208 }
executed 584 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
584
209 }
executed 1178 times by 17 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
1178
210 if (revert
revertDescription
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 1004 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
) {
14-1004
211 bool rv = !currentState.isEmpty();-
212 q->setState(QString());-
213 return
executed 14 times by 3 tests: return rv;
Executed by:
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
rv;
executed 14 times by 3 tests: return rv;
Executed by:
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
14
214 } else {-
215 return
executed 1004 times by 16 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
false;
executed 1004 times by 16 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
1004
216 }-
217}-
218-
219QQuickTransition *QQuickStateGroupPrivate::findTransition(const QString &from, const QString &to)-
220{-
221 QQuickTransition *highest = nullptr;-
222 int score = 0;-
223 bool reversed = false;-
224 bool done = false;-
225-
226 for (int ii = 0; !done
!doneDescription
TRUEevaluated 552 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_qquickloader
  • tst_qquickmousearea
  • tst_qquickstates
FALSEnever evaluated
&& ii < transitions.count()
ii < transitions.count()Description
TRUEevaluated 82 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
FALSEevaluated 470 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_qquickloader
  • tst_qquickmousearea
  • tst_qquickstates
; ++ii) {
0-552
227 QQuickTransition *t = transitions.at(ii);-
228 if (!t->enabled()
!t->enabled()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 80 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
)
2-80
229 continue;
executed 2 times by 1 test: continue;
Executed by:
  • tst_qquickanimations
2
230 for (int ii = 0; ii < 2
ii < 2Description
TRUEevaluated 160 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanimations
; ++ii)
6-160
231 {-
232 if (ii
iiDescription
TRUEevaluated 80 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
FALSEevaluated 80 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
&& (!t->reversible()
!t->reversible()Description
TRUEevaluated 74 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanimations
||
6-80
233 (t->fromState() == QLatin1String("*")
t->fromState()...in1String("*")Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
&&
0-6
234 t->toState() == QLatin1String("*")
t->toState() =...in1String("*")Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanimations
)))
0-6
235 break;
executed 74 times by 3 tests: break;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
74
236 const QString fromStateStr = t->fromState();-
237 const QString toStateStr = t->toState();-
238-
239 QVector<QStringRef> fromState = fromStateStr.splitRef(QLatin1Char(','));-
240 for (int jj = 0; jj < fromState.count()
jj < fromState.count()Description
TRUEevaluated 86 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
FALSEevaluated 86 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
; ++jj)
86
241 fromState[jj] = fromState.at(jj).trimmed();
executed 86 times by 3 tests: fromState[jj] = fromState.at(jj).trimmed();
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
86
242 QVector<QStringRef> toState = toStateStr.splitRef(QLatin1Char(','));-
243 for (int jj = 0; jj < toState.count()
jj < toState.count()Description
TRUEevaluated 86 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
FALSEevaluated 86 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
; ++jj)
86
244 toState[jj] = toState.at(jj).trimmed();
executed 86 times by 3 tests: toState[jj] = toState.at(jj).trimmed();
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
86
245 if (ii == 1
ii == 1Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 80 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
)
6-80
246 qSwap(fromState, toState);
executed 6 times by 1 test: qSwap(fromState, toState);
Executed by:
  • tst_qquickanimations
6
247 int tScore = 0;-
248 const QString asterisk = ([]() noexcept -> QString { enum { Size = sizeof(u"" "*")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "*" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());-
249 if (fromState.contains(QStringRef(&from))
fromState.cont...ingRef(&from))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 84 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
)
2-84
250 tScore += 2;
executed 2 times by 1 test: tScore += 2;
Executed by:
  • tst_qquickanimations
2
251 else if (fromState.contains(QStringRef(&asterisk))
fromState.cont...ef(&asterisk))Description
TRUEevaluated 80 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
)
4-80
252 tScore += 1;
executed 80 times by 3 tests: tScore += 1;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
80
253 else-
254 continue;
executed 4 times by 1 test: continue;
Executed by:
  • tst_qquickanimations
4
255-
256 if (toState.contains(QStringRef(&to))
toState.contai...tringRef(&to))Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 66 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
)
16-66
257 tScore += 2;
executed 16 times by 1 test: tScore += 2;
Executed by:
  • tst_qquickanimations
16
258 else if (toState.contains(QStringRef(&asterisk))
toState.contai...ef(&asterisk))Description
TRUEevaluated 56 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickanimations
)
10-56
259 tScore += 1;
executed 56 times by 3 tests: tScore += 1;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
56
260 else-
261 continue;
executed 10 times by 1 test: continue;
Executed by:
  • tst_qquickanimations
10
262-
263 if (ii == 1
ii == 1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
)
2-70
264 reversed = true;
executed 2 times by 1 test: reversed = true;
Executed by:
  • tst_qquickanimations
2
265 else-
266 reversed = false;
executed 70 times by 3 tests: reversed = false;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
70
267-
268 if (tScore == 4
tScore == 4Description
TRUEnever evaluated
FALSEevaluated 72 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
) {
0-72
269 highest = t;-
270 done = true;-
271 break;
never executed: break;
0
272 } else if (tScore > score
tScore > scoreDescription
TRUEevaluated 72 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
FALSEnever evaluated
) {
0-72
273 score = tScore;-
274 highest = t;-
275 }
executed 72 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
72
276 }
executed 72 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
72
277 }
executed 80 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
80
278-
279 if (highest
highestDescription
TRUEevaluated 72 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
FALSEevaluated 398 times by 17 tests
Evaluated by:
  • 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_qquickstates
)
72-398
280 highest->setReversed(reversed);
executed 72 times by 3 tests: highest->setReversed(reversed);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
72
281-
282 return
executed 470 times by 19 tests: return highest;
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_qquickstates
highest;
executed 470 times by 19 tests: return highest;
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_qquickstates
470
283}-
284-
285void QQuickStateGroupPrivate::setCurrentStateInternal(const QString &state,-
286 bool ignoreTrans)-
287{-
288 QQuickStateGroup * const q = q_func();-
289 if (!componentComplete
!componentCompleteDescription
TRUEevaluated 118 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 590 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
) {
118-590
290 currentState = state;-
291 return;
executed 118 times by 4 tests: return;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickpathview
  • tst_qquickstates
118
292 }-
293-
294 if (applyingState
applyingStateDescription
TRUEevaluated 2 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
) {
2-588
295 qmlWarning(q) << "Can't apply a state change as part of a state definition.";-
296 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickstates
2
297 }-
298-
299 applyingState = true;-
300-
301 QQuickTransition *transition = ignoreTrans
ignoreTransDescription
TRUEevaluated 118 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 470 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_qquickloader
  • tst_qquickmousearea
  • tst_qquickstates
? nullptr : findTransition(currentState, state);
118-470
302 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
303 QMessageLogger(__FILE__, 449, __PRETTY_FUNCTION__).warning() << this << "Changing state. From" << currentState << ". To" << state;-
304 if (transition
transitionDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
305 QMessageLogger(__FILE__, 451, __PRETTY_FUNCTION__).warning() << " using transition" << transition->fromState()
never executed: QMessageLogger(__FILE__, 451, __PRETTY_FUNCTION__).warning() << " using transition" << transition->fromState() << transition->toState();
0
306 << transition->toState();
never executed: QMessageLogger(__FILE__, 451, __PRETTY_FUNCTION__).warning() << " using transition" << transition->fromState() << transition->toState();
0
307 }
never executed: end of block
0
308-
309 QQuickState *oldState = nullptr;-
310 if (!currentState.isEmpty()
!currentState.isEmpty()Description
TRUEevaluated 186 times by 13 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 402 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
) {
186-402
311 for (int ii = 0; ii < states.count()
ii < states.count()Description
TRUEevaluated 224 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 2 times by 1 test
Evaluated by:
  • tst_qquickloader
; ++ii) {
2-224
312 if (states.at(ii)->name() == currentState
states.at(ii)-...= currentStateDescription
TRUEevaluated 184 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 40 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickstates
) {
40-184
313 oldState = states.at(ii);-
314 break;
executed 184 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
184
315 }-
316 }
executed 40 times by 3 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickstates
40
317 }
executed 186 times by 13 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_qquickloader
  • tst_qquickmousearea
  • tst_qquickstates
186
318-
319 currentState = state;-
320 q->stateChanged(currentState);-
321-
322 QQuickState *newState = nullptr;-
323 for (int ii = 0; ii < states.count()
ii < states.count()Description
TRUEevaluated 744 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
FALSEevaluated 138 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickstates
; ++ii) {
138-744
324 if (states.at(ii)->name() == currentState
states.at(ii)-...= currentStateDescription
TRUEevaluated 450 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
FALSEevaluated 294 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
) {
294-450
325 newState = states.at(ii);-
326 break;
executed 450 times by 19 tests: break;
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
450
327 }-
328 }
executed 294 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
294
329-
330 if (oldState == nullptr
oldState == nullptrDescription
TRUEevaluated 404 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 184 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
|| newState == nullptr
newState == nullptrDescription
TRUEevaluated 130 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 54 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickstates
) {
54-404
331 if (!nullState
!nullStateDescription
TRUEevaluated 346 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 188 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickstates
) {
188-346
332 nullState = new QQuickState;-
333 QQml_setParent_noEvent(nullState, q);-
334 nullState->setStateGroup(q);-
335 }
executed 346 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
346
336 if (!oldState
!oldStateDescription
TRUEevaluated 404 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 130 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
) oldState = nullState;
executed 404 times by 20 tests: oldState = nullState;
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
130-404
337 if (!newState
!newStateDescription
TRUEevaluated 138 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 396 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
) newState = nullState;
executed 138 times by 13 tests: newState = nullState;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickstates
138-396
338 }
executed 534 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
534
339-
340 newState->apply(transition, oldState);-
341 applyingState = false;-
342}
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
343-
344QQuickState *QQuickStateGroup::findState(const QString &name) const-
345{-
346 const QQuickStateGroupPrivate * const d = d_func();-
347 for (int i = 0; i < d->states.count()
i < d->states.count()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickstates
; ++i) {
2-8
348 QQuickState *state = d->states.at(i);-
349 if (state->name() == name
state->name() == nameDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickstates
)
2-6
350 return
executed 6 times by 1 test: return state;
Executed by:
  • tst_qquickstates
state;
executed 6 times by 1 test: return state;
Executed by:
  • tst_qquickstates
6
351 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickstates
2
352-
353 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
354}-
355-
356void QQuickStateGroup::removeState(QQuickState *state)-
357{-
358 QQuickStateGroupPrivate * const d = d_func();-
359 d->states.removeOne(state);-
360}
executed 244 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
244
361-
362void QQuickStateGroup::stateAboutToComplete()-
363{-
364 QQuickStateGroupPrivate * const d = d_func();-
365 d->applyingState = false;-
366}
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
367-
368-
369-
370-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0