Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquicklineextruder.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | QQuickLineExtruder::QQuickLineExtruder(QObject *parent) : | - | ||||||
2 | QQuickParticleExtruder(parent), m_mirrored(false) | - | ||||||
3 | { | - | ||||||
4 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||
5 | - | |||||||
6 | QPointF QQuickLineExtruder::extrude(const QRectF &r) | - | ||||||
7 | { | - | ||||||
8 | qreal x,y; | - | ||||||
9 | if (!r.height()
| 0-2400 | ||||||
10 | x = r.width() * QRandomGenerator::global()->generateDouble(); | - | ||||||
11 | y = 0; | - | ||||||
12 | } never executed: else{end of block | 0 | ||||||
13 | y = r.height() * QRandomGenerator::global()->generateDouble(); | - | ||||||
14 | if (!r.width()
| 0-2400 | ||||||
15 | x = 0; | - | ||||||
16 | } never executed: else{end of block | 0 | ||||||
17 | x = r.width()/r.height() * y; | - | ||||||
18 | if (m_mirrored
| 1200 | ||||||
19 | x = r.width() - x; executed 1200 times by 1 test: x = r.width() - x; Executed by:
| 1200 | ||||||
20 | } executed 2400 times by 1 test: end of block Executed by:
| 2400 | ||||||
21 | } | - | ||||||
22 | return executed 2400 times by 1 test: QPointF(x,y);return QPointF(x,y); Executed by:
executed 2400 times by 1 test: return QPointF(x,y); Executed by:
| 2400 | ||||||
23 | } | - | ||||||
24 | - | |||||||
Switch to Source code | Preprocessed file |