Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickellipseextruder.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | QQuickEllipseExtruder::QQuickEllipseExtruder(QObject *parent) : | - | ||||||
4 | QQuickParticleExtruder(parent) | - | ||||||
5 | , m_fill(true) | - | ||||||
6 | { | - | ||||||
7 | } executed 16 times by 2 tests: end of block Executed by:
| 16 | ||||||
8 | QPointF QQuickEllipseExtruder::extrude(const QRectF & r) | - | ||||||
9 | { | - | ||||||
10 | qreal theta = QRandomGenerator::global()->bounded(2 * | - | ||||||
11 | 3.14159265358979323846 | - | ||||||
12 | ); | - | ||||||
13 | qreal mag = m_fill
| 1216 | ||||||
14 | return executed 2432 times by 1 test: QPointF(r.x() + r.width()/2 + mag * (r.width()/2) * qCos(theta),return QPointF(r.x() + r.width()/2 + mag * (r.width()/2) * qCos(theta), r.y() + r.height()/2 + mag * (r.height()/2) * qSin(theta)); Executed by:
executed 2432 times by 1 test: return QPointF(r.x() + r.width()/2 + mag * (r.width()/2) * qCos(theta), r.y() + r.height()/2 + mag * (r.height()/2) * qSin(theta)); Executed by:
| 2432 | ||||||
15 | r.y() + r.height()/2 + mag * (r.height()/2) * qSin(theta)); executed 2432 times by 1 test: return QPointF(r.x() + r.width()/2 + mag * (r.width()/2) * qCos(theta), r.y() + r.height()/2 + mag * (r.height()/2) * qSin(theta)); Executed by:
| 2432 | ||||||
16 | } | - | ||||||
17 | - | |||||||
18 | bool QQuickEllipseExtruder::contains(const QRectF &bounds, const QPointF &point) | - | ||||||
19 | { | - | ||||||
20 | if (!bounds.contains(point)
| 0 | ||||||
21 | return never executed: false;return false; never executed: return false; | 0 | ||||||
22 | - | |||||||
23 | QPointF relPoint(bounds.center() - point); | - | ||||||
24 | qreal xa = relPoint.x()/bounds.width(); | - | ||||||
25 | qreal yb = relPoint.y()/bounds.height(); | - | ||||||
26 | return never executed: (xa * xa + yb * yb) < 0.25;return (xa * xa + yb * yb) < 0.25; never executed: return (xa * xa + yb * yb) < 0.25; | 0 | ||||||
27 | } | - | ||||||
28 | - | |||||||
29 | - | |||||||
30 | - | |||||||
Switch to Source code | Preprocessed file |