OpenCoverage

qquickparticlegroup.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickparticlegroup.cpp
Switch to Source codePreprocessed file
LineSourceCount
1QQuickParticleGroup::QQuickParticleGroup(QObject* parent)-
2 : QQuickStochasticState(parent)-
3 , m_system(nullptr)-
4{-
5-
6}
executed 28 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickparticlegroup
28
7-
8void delayedRedirect(QQmlListProperty<QObject> *prop, QObject *value)-
9{-
10 QQuickParticleGroup* pg = qobject_cast<QQuickParticleGroup*>(prop->object);-
11 if (pg
pgDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
12 pg->delayRedirect(value);
never executed: pg->delayRedirect(value);
0
13}
never executed: end of block
0
14-
15QQmlListProperty<QObject> QQuickParticleGroup::particleChildren()-
16{-
17 QQuickParticleSystem* system = qobject_cast<QQuickParticleSystem*>(parent());-
18 if (system
systemDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
)
0-8
19 return
executed 8 times by 1 test: return QQmlListProperty<QObject>(this, nullptr, &QQuickParticleSystem::statePropertyRedirect, nullptr, nullptr, nullptr);
Executed by:
  • tst_examples
QQmlListProperty<QObject>(this, nullptr, &QQuickParticleSystem::statePropertyRedirect, nullptr, nullptr, nullptr);
executed 8 times by 1 test: return QQmlListProperty<QObject>(this, nullptr, &QQuickParticleSystem::statePropertyRedirect, nullptr, nullptr, nullptr);
Executed by:
  • tst_examples
8
20 else-
21 return
never executed: return QQmlListProperty<QObject>(this, nullptr, &delayedRedirect, nullptr, nullptr, nullptr);
QQmlListProperty<QObject>(this, nullptr, &delayedRedirect, nullptr, nullptr, nullptr);
never executed: return QQmlListProperty<QObject>(this, nullptr, &delayedRedirect, nullptr, nullptr, nullptr);
0
22}-
23-
24void QQuickParticleGroup::setSystem(QQuickParticleSystem* arg)-
25{-
26 if (m_system != arg
m_system != argDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickparticlegroup
FALSEnever evaluated
) {
0-14
27 m_system = arg;-
28 m_system->registerParticleGroup(this);-
29 performDelayedRedirects();-
30 systemChanged(arg);-
31 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickparticlegroup
14
32}
executed 14 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickparticlegroup
14
33-
34void QQuickParticleGroup::delayRedirect(QObject *obj)-
35{-
36 m_delayedRedirects << obj;-
37}
never executed: end of block
0
38-
39void QQuickParticleGroup::performDelayedRedirects()-
40{-
41 if (!m_system
!m_systemDescription
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickparticlegroup
)
0-14
42 return;
never executed: return;
0
43 for (auto _container_ = QtPrivate::qMakeForeachContainer(m_delayedRedirects); _container_.control
_container_.controlDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickparticlegroup
FALSEnever evaluated
&& _container_.i != _container_.e
_container_.i != _container_.eDescription
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickparticlegroup
; ++_container_.i, _container_.control ^= 1) for (QObject* obj = *_container_.i; _container_.control
_container_.controlDescription
TRUEnever evaluated
FALSEnever evaluated
; _container_.control = 0)
0-14
44 m_system->stateRedirect(this, m_system, obj);
never executed: m_system->stateRedirect(this, m_system, obj);
0
45-
46 m_delayedRedirects.clear();-
47}
executed 14 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickparticlegroup
14
48-
49void QQuickParticleGroup::componentComplete(){-
50 if (!m_system
!m_systemDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickparticlegroup
FALSEnever evaluated
&& qobject_cast<QQuickParticleSystem*>(parent())
qobject_cast<Q...em*>(parent())Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickparticlegroup
FALSEnever evaluated
)
0-14
51 setSystem(qobject_cast<QQuickParticleSystem*>(parent()));
executed 14 times by 2 tests: setSystem(qobject_cast<QQuickParticleSystem*>(parent()));
Executed by:
  • tst_examples
  • tst_qquickparticlegroup
14
52}
executed 14 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickparticlegroup
14
53-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0