| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickage.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | QQuickAgeAffector::QQuickAgeAffector(QQuickItem *parent) : | - | ||||||||||||
| 3 | QQuickParticleAffector(parent), m_lifeLeft(0), m_advancePosition(true) | - | ||||||||||||
| 4 | { | - | ||||||||||||
| 5 | } executed 14 times by 2 tests: end of blockExecuted by:
| 14 | ||||||||||||
| 6 | - | |||||||||||||
| 7 | - | |||||||||||||
| 8 | bool QQuickAgeAffector::affectParticle(QQuickParticleData *d, qreal dt) | - | ||||||||||||
| 9 | { | - | ||||||||||||
| 10 | (void)dt;; | - | ||||||||||||
| 11 | if (d->stillAlive(m_system)
| 0-29968 | ||||||||||||
| 12 | float curT = m_system->timeInt / 1000.0f; | - | ||||||||||||
| 13 | float ttl = m_lifeLeft / 1000.0f; | - | ||||||||||||
| 14 | if (!m_advancePosition
| 0-28720 | ||||||||||||
| 15 | float x = d->curX(m_system); | - | ||||||||||||
| 16 | float vx = d->curVX(m_system); | - | ||||||||||||
| 17 | float ax = d->curAX(); | - | ||||||||||||
| 18 | float y = d->curY(m_system); | - | ||||||||||||
| 19 | float vy = d->curVY(m_system); | - | ||||||||||||
| 20 | float ay = d->curAY(); | - | ||||||||||||
| 21 | d->t = curT - (d->lifeSpan - ttl); | - | ||||||||||||
| 22 | d->setInstantaneousX(x, m_system); | - | ||||||||||||
| 23 | d->setInstantaneousVX(vx, m_system); | - | ||||||||||||
| 24 | d->setInstantaneousAX(ax, m_system); | - | ||||||||||||
| 25 | d->setInstantaneousY(y, m_system); | - | ||||||||||||
| 26 | d->setInstantaneousVY(vy, m_system); | - | ||||||||||||
| 27 | d->setInstantaneousAY(ay, m_system); | - | ||||||||||||
| 28 | } executed 1248 times by 1 test: else {end of blockExecuted by:
| 1248 | ||||||||||||
| 29 | d->t = curT - (d->lifeSpan - ttl); | - | ||||||||||||
| 30 | } executed 28720 times by 1 test: end of blockExecuted by:
| 28720 | ||||||||||||
| 31 | return executed 29968 times by 1 test: true;return true;Executed by:
executed 29968 times by 1 test: return true;Executed by:
| 29968 | ||||||||||||
| 32 | } | - | ||||||||||||
| 33 | return never executed: false;return false;never executed: return false; | 0 | ||||||||||||
| 34 | } | - | ||||||||||||
| 35 | - | |||||||||||||
| 36 | - | |||||||||||||
| Switch to Source code | Preprocessed file |