OpenCoverage

qquicktransitionmanager.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquicktransitionmanager.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtQuick module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qquicktransitionmanager_p_p.h"-
41-
42#include "qquicktransition_p.h"-
43#include "qquickstate_p_p.h"-
44-
45#include <private/qqmlbinding_p.h>-
46#include <private/qqmlglobal_p.h>-
47#include <private/qqmlproperty_p.h>-
48-
49#include <QtCore/qdebug.h>-
50-
51QT_BEGIN_NAMESPACE-
52-
53DEFINE_BOOL_CONFIG_OPTION(stateChangeDebug, STATECHANGE_DEBUG);
never executed: status = Yes;
never executed: end of block
executed 46 times by 23 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
executed 11144 times by 23 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
status == UnknownDescription
TRUEevaluated 46 times by 23 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
FALSEevaluated 11098 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
__builtin_expe...BUG")), false)Description
TRUEnever evaluated
FALSEevaluated 46 times by 23 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
v != "0"Description
TRUEnever evaluated
FALSEnever evaluated
v != "false"Description
TRUEnever evaluated
FALSEnever evaluated
0-11144
54-
55class QQuickTransitionManagerPrivate-
56{-
57public:-
58 QQuickTransitionManagerPrivate()-
59 : state(nullptr), transitionInstance(nullptr) {}
executed 11942 times by 24 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_qquickflickable
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
11942
60-
61 void applyBindings();-
62 typedef QList<QQuickSimpleAction> SimpleActionList;-
63 QQuickState *state;-
64 QQuickTransitionInstance *transitionInstance;-
65 QQuickStateOperation::ActionList bindingsList;-
66 SimpleActionList completeList;-
67};-
68-
69QQuickTransitionManager::QQuickTransitionManager()-
70: d(new QQuickTransitionManagerPrivate)-
71{-
72}
executed 11942 times by 24 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_qquickflickable
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
11942
73-
74void QQuickTransitionManager::setState(QQuickState *s)-
75{-
76 d->state = s;-
77}
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
78-
79QQuickTransitionManager::~QQuickTransitionManager()-
80{-
81 delete d->transitionInstance;-
82 delete d; d = nullptr;-
83}
executed 11710 times by 24 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_qquickflickable
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
11710
84-
85bool QQuickTransitionManager::isRunning() const-
86{-
87 return d->transitionInstance && d->transitionInstance->isRunning();
executed 9384 times by 5 tests: return d->transitionInstance && d->transitionInstance->isRunning();
Executed by:
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
9384
88}-
89-
90void QQuickTransitionManager::complete()-
91{-
92 d->applyBindings();-
93-
94 for (int ii = 0; ii < d->completeList.count(); ++ii) {
ii < d->completeList.count()Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 9406 times by 22 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
12-9406
95 const QQmlProperty &prop = d->completeList.at(ii).property();-
96 prop.write(d->completeList.at(ii).value());-
97 }
executed 12 times by 3 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
12
98-
99 d->completeList.clear();-
100-
101 if (d->state)
d->stateDescription
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
FALSEevaluated 8832 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
574-8832
102 static_cast<QQuickStatePrivate*>(QObjectPrivate::get(d->state))->complete();
executed 574 times by 19 tests: static_cast<QQuickStatePrivate*>(QObjectPrivate::get(d->state))->complete();
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
103-
104 finished();-
105}
executed 9406 times by 22 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
9406
106-
107void QQuickTransitionManagerPrivate::applyBindings()-
108{-
109 for (const QQuickStateAction &action : qAsConst(bindingsList)) {-
110 if (action.toBinding) {
action.toBindingDescription
TRUEevaluated 104 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 60 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
60-104
111 QQmlPropertyPrivate::setBinding(action.toBinding.data());-
112 } else if (action.event) {
executed 104 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickstates
action.eventDescription
TRUEevaluated 60 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEnever evaluated
0-104
113 if (action.reverseEvent)
action.reverseEventDescription
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 38 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
22-38
114 action.event->reverse();
executed 22 times by 3 tests: action.event->reverse();
Executed by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
22
115 else-
116 action.event->execute();
executed 38 times by 4 tests: action.event->execute();
Executed by:
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
38
117 }-
118-
119 }
executed 164 times by 14 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_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
164
120-
121 bindingsList.clear();-
122}
executed 9406 times by 22 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
9406
123-
124void QQuickTransitionManager::finished()-
125{-
126}-
127-
128void QQuickTransitionManager::transition(const QList<QQuickStateAction> &list,-
129 QQuickTransition *transition,-
130 QObject *defaultTarget)-
131{-
132 cancel();-
133-
134 QQuickStateOperation::ActionList applyList = list;-
135 // Determine which actions are binding changes and disable any current bindings-
136 for (const QQuickStateAction &action : qAsConst(applyList)) {-
137 if (action.toBinding)
action.toBindingDescription
TRUEevaluated 104 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 22094 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
104-22094
138 d->bindingsList << action;
executed 104 times by 12 tests: d->bindingsList << action;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickstates
104
139 if (action.fromBinding)
action.fromBindingDescription
TRUEevaluated 32 times by 6 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickstates
FALSEevaluated 22166 times by 21 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
32-22166
140 QQmlPropertyPrivate::removeBinding(action.property); // Disable current binding
executed 32 times by 6 tests: QQmlPropertyPrivate::removeBinding(action.property);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickstates
32
141 if (action.event && action.event->changesBindings()) { //### assume isReversable()?
action.eventDescription
TRUEevaluated 238 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 21960 times by 21 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
action.event->...ngesBindings()Description
TRUEevaluated 62 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 176 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
62-21960
142 d->bindingsList << action;-
143 action.event->clearBindings();-
144 }
executed 62 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
62
145 }
executed 22198 times by 21 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
22198
146-
147 // Animated transitions need both the start and the end value for-
148 // each property change. In the presence of bindings, the end values-
149 // are non-trivial to calculate. As a "best effort" attempt, we first-
150 // apply all the property and binding changes, then read all the actual-
151 // final values, then roll back the changes and proceed as normal.-
152 //-
153 // This doesn't catch everything, and it might be a little fragile in-
154 // some cases - but whatcha going to do?-
155-
156 if (transition && !d->bindingsList.isEmpty()) {
transitionDescription
TRUEevaluated 10628 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
FALSEevaluated 516 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
!d->bindingsList.isEmpty()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEevaluated 10618 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
10-10628
157-
158 // Apply all the property and binding changes-
159 for (int ii = 0; ii < applyList.size(); ++ii) {
ii < applyList.size()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
10
160 const QQuickStateAction &action = applyList.at(ii);-
161 if (action.toBinding) {
action.toBindingDescription
TRUEnever evaluated
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
0-10
162 QQmlPropertyPrivate::setBinding(action.toBinding.data(), QQmlPropertyPrivate::None, QQmlPropertyData::BypassInterceptor | QQmlPropertyData::DontRemoveBinding);-
163 } else if (!action.event) {
never executed: end of block
!action.eventDescription
TRUEnever evaluated
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
0-10
164 QQmlPropertyPrivate::write(action.property, action.toValue, QQmlPropertyData::BypassInterceptor | QQmlPropertyData::DontRemoveBinding);-
165 } else if (action.event->isReversable()) {
never executed: end of block
action.event->isReversable()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEnever evaluated
0-10
166 if (action.reverseEvent)
action.reverseEventDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
2-8
167 action.event->reverse();
executed 2 times by 1 test: action.event->reverse();
Executed by:
  • tst_qquickanimations
2
168 else-
169 action.event->execute();
executed 8 times by 2 tests: action.event->execute();
Executed by:
  • tst_examples
  • tst_qquickanimations
8
170 }-
171 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
10
172-
173 // Read all the end values for binding changes-
174 for (int ii = 0; ii < applyList.size(); ++ii) {
ii < applyList.size()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
10
175 QQuickStateAction *action = &applyList[ii];-
176 if (action->event) {
action->eventDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEnever evaluated
0-10
177 action->event->saveTargetValues();-
178 continue;
executed 10 times by 2 tests: continue;
Executed by:
  • tst_examples
  • tst_qquickanimations
10
179 }-
180 const QQmlProperty &prop = action->property;-
181 if (action->toBinding || !action->toValue.isValid()) {
action->toBindingDescription
TRUEnever evaluated
FALSEnever evaluated
!action->toValue.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
0
182 action->toValue = prop.read();-
183 }
never executed: end of block
0
184 }
never executed: end of block
0
185-
186 // Revert back to the original values-
187 for (const QQuickStateAction &action : qAsConst(applyList)) {-
188 if (action.event) {
action.eventDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEnever evaluated
0-10
189 if (action.event->isReversable()) {
action.event->isReversable()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEnever evaluated
0-10
190 action.event->clearBindings();-
191 action.event->rewind();-
192 action.event->clearBindings(); //### shouldn't be needed-
193 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
10
194 continue;
executed 10 times by 2 tests: continue;
Executed by:
  • tst_examples
  • tst_qquickanimations
10
195 }-
196-
197 if (action.toBinding)
action.toBindingDescription
TRUEnever evaluated
FALSEnever evaluated
0
198 QQmlPropertyPrivate::removeBinding(action.property); // Make sure this is disabled during the transition
never executed: QQmlPropertyPrivate::removeBinding(action.property);
0
199-
200 QQmlPropertyPrivate::write(action.property, action.fromValue, QQmlPropertyData::BypassInterceptor | QQmlPropertyData::DontRemoveBinding);-
201 }
never executed: end of block
0
202 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
10
203-
204 if (transition) {
transitionDescription
TRUEevaluated 10628 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
FALSEevaluated 516 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
516-10628
205 QList<QQmlProperty> touched;-
206 QQuickTransitionInstance *oldInstance = d->transitionInstance;-
207 d->transitionInstance = transition->prepare(applyList, touched, this, defaultTarget);-
208 d->transitionInstance->start();-
209 if (oldInstance && oldInstance != d->transitionInstance)
oldInstanceDescription
TRUEevaluated 154 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 10474 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
oldInstance !=...sitionInstanceDescription
TRUEevaluated 154 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEnever evaluated
0-10474
210 delete oldInstance;
executed 154 times by 4 tests: delete oldInstance;
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
154
211-
212 // Modify the action list to remove actions handled in the transition-
213 for (int ii = 0; ii < applyList.count(); ++ii) {
ii < applyList.count()Description
TRUEevaluated 21210 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
FALSEevaluated 10628 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
10628-21210
214 const QQuickStateAction &action = applyList.at(ii);-
215-
216 if (action.event) {
action.eventDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEevaluated 21196 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
14-21196
217-
218 if (action.actionDone) {
action.actionDoneDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
2-12
219 applyList.removeAt(ii);-
220 --ii;-
221 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickanimations
2
222-
223 } else {
executed 14 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
14
224-
225 if (touched.contains(action.property)) {
touched.contai...tion.property)Description
TRUEevaluated 21106 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
FALSEevaluated 90 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
90-21106
226 if (action.toValue != action.fromValue)
action.toValue...tion.fromValueDescription
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 21094 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
12-21094
227 d->completeList <<
executed 12 times by 3 tests: d->completeList << QQuickSimpleAction(action, QQuickSimpleAction::EndState);
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
12
228 QQuickSimpleAction(action, QQuickSimpleAction::EndState);
executed 12 times by 3 tests: d->completeList << QQuickSimpleAction(action, QQuickSimpleAction::EndState);
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
12
229-
230 applyList.removeAt(ii);-
231 --ii;-
232 }
executed 21106 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
21106
233-
234 }
executed 21196 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
21196
235 }-
236 }
executed 10628 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
10628
237-
238 // Any actions remaining have not been handled by the transition and should-
239 // be applied immediately. We skip applying bindings, as they are all-
240 // applied at the end in applyBindings() to avoid any nastiness mid-
241 // transition-
242 for (const QQuickStateAction &action : qAsConst(applyList)) {-
243 if (action.event && !action.event->changesBindings()) {
action.eventDescription
TRUEevaluated 236 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 854 times by 19 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_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
!action.event-...ngesBindings()Description
TRUEevaluated 174 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 62 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
62-854
244 if (action.event->isReversable() && action.reverseEvent)
action.event->isReversable()Description
TRUEevaluated 166 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickstates
action.reverseEventDescription
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 148 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
8-166
245 action.event->reverse();
executed 18 times by 2 tests: action.event->reverse();
Executed by:
  • tst_qquicklistview
  • tst_qquickstates
18
246 else-
247 action.event->execute();
executed 156 times by 5 tests: action.event->execute();
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
156
248 } else if (!action.event && !action.toBinding) {
!action.eventDescription
TRUEevaluated 854 times by 19 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_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
FALSEevaluated 62 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
!action.toBindingDescription
TRUEevaluated 750 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
FALSEevaluated 104 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickstates
62-854
249 action.property.write(action.toValue);-
250 }
executed 750 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
750
251 }
executed 1090 times by 19 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_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
1090
252#ifndef QT_NO_DEBUG_STREAM-
253 if (stateChangeDebug()) {
stateChangeDebug()Description
TRUEnever evaluated
FALSEevaluated 11144 times by 23 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
0-11144
254 for (const QQuickStateAction &action : qAsConst(applyList)) {-
255 if (action.event)
action.eventDescription
TRUEnever evaluated
FALSEnever evaluated
0
256 qWarning() << " No transition for event:" << action.event->type();
never executed: QMessageLogger(__FILE__, 256, __PRETTY_FUNCTION__).warning() << " No transition for event:" << action.event->type();
0
257 else-
258 qWarning() << " No transition for:" << action.property.object()
never executed: QMessageLogger(__FILE__, 258, __PRETTY_FUNCTION__).warning() << " No transition for:" << action.property.object() << action.property.name() << "From:" << action.fromValue << "To:" << action.toValue;
0
259 << action.property.name() << "From:" << action.fromValue
never executed: QMessageLogger(__FILE__, 258, __PRETTY_FUNCTION__).warning() << " No transition for:" << action.property.object() << action.property.name() << "From:" << action.fromValue << "To:" << action.toValue;
0
260 << "To:" << action.toValue;
never executed: QMessageLogger(__FILE__, 258, __PRETTY_FUNCTION__).warning() << " No transition for:" << action.property.object() << action.property.name() << "From:" << action.fromValue << "To:" << action.toValue;
0
261 }-
262 }
never executed: end of block
0
263#endif-
264 if (!transition)
!transitionDescription
TRUEevaluated 516 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
FALSEevaluated 10628 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
516-10628
265 complete();
executed 516 times by 19 tests: complete();
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
516
266}
executed 11144 times by 23 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
11144
267-
268void QQuickTransitionManager::cancel()-
269{-
270 if (d->transitionInstance && d->transitionInstance->isRunning())
d->transitionInstanceDescription
TRUEevaluated 518 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 12138 times by 23 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
d->transitionI...e->isRunning()Description
TRUEevaluated 276 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 242 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
242-12138
271 d->transitionInstance->stop();
executed 276 times by 4 tests: d->transitionInstance->stop();
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
276
272-
273 for(int i = 0; i < d->bindingsList.count(); ++i) {
i < d->bindingsList.count()Description
TRUEnever evaluated
FALSEevaluated 12656 times by 23 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
0-12656
274 QQuickStateAction action = d->bindingsList[i];-
275 if (action.toBinding && action.deletableToBinding) {
action.toBindingDescription
TRUEnever evaluated
FALSEnever evaluated
action.deletableToBindingDescription
TRUEnever evaluated
FALSEnever evaluated
0
276 QQmlPropertyPrivate::removeBinding(action.property);-
277 action.toBinding = nullptr;-
278 action.deletableToBinding = false;-
279 } else if (action.event) {
never executed: end of block
action.eventDescription
TRUEnever evaluated
FALSEnever evaluated
0
280 //### what do we do here?-
281 }
never executed: end of block
0
282-
283 }
never executed: end of block
0
284 d->bindingsList.clear();-
285 d->completeList.clear();-
286}
executed 12656 times by 23 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_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
12656
287-
288QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0