| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickparticlegroup.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | QQuickParticleGroup::QQuickParticleGroup(QObject* parent) | - | ||||||||||||||||||
| 2 | : QQuickStochasticState(parent) | - | ||||||||||||||||||
| 3 | , m_system(nullptr) | - | ||||||||||||||||||
| 4 | { | - | ||||||||||||||||||
| 5 | - | |||||||||||||||||||
| 6 | } executed 28 times by 2 tests: end of blockExecuted by:
| 28 | ||||||||||||||||||
| 7 | - | |||||||||||||||||||
| 8 | void delayedRedirect(QQmlListProperty<QObject> *prop, QObject *value) | - | ||||||||||||||||||
| 9 | { | - | ||||||||||||||||||
| 10 | QQuickParticleGroup* pg = qobject_cast<QQuickParticleGroup*>(prop->object); | - | ||||||||||||||||||
| 11 | if (pg
| 0 | ||||||||||||||||||
| 12 | pg->delayRedirect(value); never executed: pg->delayRedirect(value); | 0 | ||||||||||||||||||
| 13 | } never executed: end of block | 0 | ||||||||||||||||||
| 14 | - | |||||||||||||||||||
| 15 | QQmlListProperty<QObject> QQuickParticleGroup::particleChildren() | - | ||||||||||||||||||
| 16 | { | - | ||||||||||||||||||
| 17 | QQuickParticleSystem* system = qobject_cast<QQuickParticleSystem*>(parent()); | - | ||||||||||||||||||
| 18 | if (system
| 0-8 | ||||||||||||||||||
| 19 | return executed 8 times by 1 test: QQmlListProperty<QObject>(this, nullptr, &QQuickParticleSystem::statePropertyRedirect, nullptr, nullptr, nullptr);return QQmlListProperty<QObject>(this, nullptr, &QQuickParticleSystem::statePropertyRedirect, nullptr, nullptr, nullptr);Executed by:
executed 8 times by 1 test: return QQmlListProperty<QObject>(this, nullptr, &QQuickParticleSystem::statePropertyRedirect, nullptr, nullptr, nullptr);Executed by:
| 8 | ||||||||||||||||||
| 20 | else | - | ||||||||||||||||||
| 21 | return never executed: QQmlListProperty<QObject>(this, nullptr, &delayedRedirect, nullptr, nullptr, nullptr);return QQmlListProperty<QObject>(this, nullptr, &delayedRedirect, nullptr, nullptr, nullptr);never executed: return QQmlListProperty<QObject>(this, nullptr, &delayedRedirect, nullptr, nullptr, nullptr); | 0 | ||||||||||||||||||
| 22 | } | - | ||||||||||||||||||
| 23 | - | |||||||||||||||||||
| 24 | void QQuickParticleGroup::setSystem(QQuickParticleSystem* arg) | - | ||||||||||||||||||
| 25 | { | - | ||||||||||||||||||
| 26 | if (m_system != arg
| 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 blockExecuted by:
| 14 | ||||||||||||||||||
| 32 | } executed 14 times by 2 tests: end of blockExecuted by:
| 14 | ||||||||||||||||||
| 33 | - | |||||||||||||||||||
| 34 | void QQuickParticleGroup::delayRedirect(QObject *obj) | - | ||||||||||||||||||
| 35 | { | - | ||||||||||||||||||
| 36 | m_delayedRedirects << obj; | - | ||||||||||||||||||
| 37 | } never executed: end of block | 0 | ||||||||||||||||||
| 38 | - | |||||||||||||||||||
| 39 | void QQuickParticleGroup::performDelayedRedirects() | - | ||||||||||||||||||
| 40 | { | - | ||||||||||||||||||
| 41 | if (!m_system
| 0-14 | ||||||||||||||||||
| 42 | return; never executed: return; | 0 | ||||||||||||||||||
| 43 | for (auto _container_ = QtPrivate::qMakeForeachContainer(m_delayedRedirects); _container_.control
| 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 blockExecuted by:
| 14 | ||||||||||||||||||
| 48 | - | |||||||||||||||||||
| 49 | void QQuickParticleGroup::componentComplete(){ | - | ||||||||||||||||||
| 50 | if (!m_system
| 0-14 | ||||||||||||||||||
| 51 | setSystem(qobject_cast<QQuickParticleSystem*>(parent())); executed 14 times by 2 tests: setSystem(qobject_cast<QQuickParticleSystem*>(parent()));Executed by:
| 14 | ||||||||||||||||||
| 52 | } executed 14 times by 2 tests: end of blockExecuted by:
| 14 | ||||||||||||||||||
| 53 | - | |||||||||||||||||||
| Switch to Source code | Preprocessed file |