Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickvaluetypes.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||
2 | - | |||||||||||||||||||
3 | - | |||||||||||||||||||
4 | - | |||||||||||||||||||
5 | - | |||||||||||||||||||
6 | - | |||||||||||||||||||
7 | namespace QQuickValueTypes { | - | ||||||||||||||||||
8 | void registerValueTypes() | - | ||||||||||||||||||
9 | { | - | ||||||||||||||||||
10 | QQmlValueTypeFactory::registerValueTypes("QtQuick", 2, 0); | - | ||||||||||||||||||
11 | qmlRegisterValueTypeEnums<QQuickFontValueType>("QtQuick", 2, 0, "Font"); | - | ||||||||||||||||||
12 | } executed 374 times by 132 tests: end of block Executed by:
| 374 | ||||||||||||||||||
13 | } | - | ||||||||||||||||||
14 | - | |||||||||||||||||||
15 | QString QQuickColorValueType::toString() const | - | ||||||||||||||||||
16 | { | - | ||||||||||||||||||
17 | return executed 204 times by 5 tests: v.name(v.alpha() != 255 ? QColor::HexArgb : QColor::HexRgb);return v.name(v.alpha() != 255 ? QColor::HexArgb : QColor::HexRgb); Executed by:
executed 204 times by 5 tests: return v.name(v.alpha() != 255 ? QColor::HexArgb : QColor::HexRgb); Executed by:
| 204 | ||||||||||||||||||
18 | } | - | ||||||||||||||||||
19 | - | |||||||||||||||||||
20 | qreal QQuickColorValueType::r() const | - | ||||||||||||||||||
21 | { | - | ||||||||||||||||||
22 | return executed 12 times by 1 test: v.redF();return v.redF(); Executed by:
executed 12 times by 1 test: return v.redF(); Executed by:
| 12 | ||||||||||||||||||
23 | } | - | ||||||||||||||||||
24 | - | |||||||||||||||||||
25 | qreal QQuickColorValueType::g() const | - | ||||||||||||||||||
26 | { | - | ||||||||||||||||||
27 | return executed 4 times by 1 test: v.greenF();return v.greenF(); Executed by:
executed 4 times by 1 test: return v.greenF(); Executed by:
| 4 | ||||||||||||||||||
28 | } | - | ||||||||||||||||||
29 | - | |||||||||||||||||||
30 | qreal QQuickColorValueType::b() const | - | ||||||||||||||||||
31 | { | - | ||||||||||||||||||
32 | return executed 4 times by 1 test: v.blueF();return v.blueF(); Executed by:
executed 4 times by 1 test: return v.blueF(); Executed by:
| 4 | ||||||||||||||||||
33 | } | - | ||||||||||||||||||
34 | - | |||||||||||||||||||
35 | qreal QQuickColorValueType::a() const | - | ||||||||||||||||||
36 | { | - | ||||||||||||||||||
37 | return executed 4 times by 1 test: v.alphaF();return v.alphaF(); Executed by:
executed 4 times by 1 test: return v.alphaF(); Executed by:
| 4 | ||||||||||||||||||
38 | } | - | ||||||||||||||||||
39 | - | |||||||||||||||||||
40 | qreal QQuickColorValueType::hsvHue() const | - | ||||||||||||||||||
41 | { | - | ||||||||||||||||||
42 | return executed 2 times by 1 test: v.hsvHueF();return v.hsvHueF(); Executed by:
executed 2 times by 1 test: return v.hsvHueF(); Executed by:
| 2 | ||||||||||||||||||
43 | } | - | ||||||||||||||||||
44 | - | |||||||||||||||||||
45 | qreal QQuickColorValueType::hsvSaturation() const | - | ||||||||||||||||||
46 | { | - | ||||||||||||||||||
47 | return executed 2 times by 1 test: v.hsvSaturationF();return v.hsvSaturationF(); Executed by:
executed 2 times by 1 test: return v.hsvSaturationF(); Executed by:
| 2 | ||||||||||||||||||
48 | } | - | ||||||||||||||||||
49 | - | |||||||||||||||||||
50 | qreal QQuickColorValueType::hsvValue() const | - | ||||||||||||||||||
51 | { | - | ||||||||||||||||||
52 | return executed 2 times by 1 test: v.valueF();return v.valueF(); Executed by:
executed 2 times by 1 test: return v.valueF(); Executed by:
| 2 | ||||||||||||||||||
53 | } | - | ||||||||||||||||||
54 | - | |||||||||||||||||||
55 | qreal QQuickColorValueType::hslHue() const | - | ||||||||||||||||||
56 | { | - | ||||||||||||||||||
57 | return executed 2 times by 1 test: v.hslHueF();return v.hslHueF(); Executed by:
executed 2 times by 1 test: return v.hslHueF(); Executed by:
| 2 | ||||||||||||||||||
58 | } | - | ||||||||||||||||||
59 | - | |||||||||||||||||||
60 | qreal QQuickColorValueType::hslSaturation() const | - | ||||||||||||||||||
61 | { | - | ||||||||||||||||||
62 | return executed 2 times by 1 test: v.hslSaturationF();return v.hslSaturationF(); Executed by:
executed 2 times by 1 test: return v.hslSaturationF(); Executed by:
| 2 | ||||||||||||||||||
63 | } | - | ||||||||||||||||||
64 | - | |||||||||||||||||||
65 | qreal QQuickColorValueType::hslLightness() const | - | ||||||||||||||||||
66 | { | - | ||||||||||||||||||
67 | return executed 2 times by 1 test: v.lightnessF();return v.lightnessF(); Executed by:
executed 2 times by 1 test: return v.lightnessF(); Executed by:
| 2 | ||||||||||||||||||
68 | } | - | ||||||||||||||||||
69 | - | |||||||||||||||||||
70 | void QQuickColorValueType::setR(qreal r) | - | ||||||||||||||||||
71 | { | - | ||||||||||||||||||
72 | v.setRedF(r); | - | ||||||||||||||||||
73 | } executed 12 times by 2 tests: end of block Executed by:
| 12 | ||||||||||||||||||
74 | - | |||||||||||||||||||
75 | void QQuickColorValueType::setG(qreal g) | - | ||||||||||||||||||
76 | { | - | ||||||||||||||||||
77 | v.setGreenF(g); | - | ||||||||||||||||||
78 | } executed 6 times by 2 tests: end of block Executed by:
| 6 | ||||||||||||||||||
79 | - | |||||||||||||||||||
80 | void QQuickColorValueType::setB(qreal b) | - | ||||||||||||||||||
81 | { | - | ||||||||||||||||||
82 | v.setBlueF(b); | - | ||||||||||||||||||
83 | } executed 6 times by 2 tests: end of block Executed by:
| 6 | ||||||||||||||||||
84 | - | |||||||||||||||||||
85 | void QQuickColorValueType::setA(qreal a) | - | ||||||||||||||||||
86 | { | - | ||||||||||||||||||
87 | v.setAlphaF(a); | - | ||||||||||||||||||
88 | } executed 8 times by 1 test: end of block Executed by:
| 8 | ||||||||||||||||||
89 | - | |||||||||||||||||||
90 | void QQuickColorValueType::setHsvHue(qreal hsvHue) | - | ||||||||||||||||||
91 | { | - | ||||||||||||||||||
92 | qreal hue, saturation, value, alpha; | - | ||||||||||||||||||
93 | v.getHsvF(&hue, &saturation, &value, &alpha); | - | ||||||||||||||||||
94 | v.setHsvF(hsvHue, saturation, value, alpha); | - | ||||||||||||||||||
95 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
96 | - | |||||||||||||||||||
97 | void QQuickColorValueType::setHsvSaturation(qreal hsvSaturation) | - | ||||||||||||||||||
98 | { | - | ||||||||||||||||||
99 | qreal hue, saturation, value, alpha; | - | ||||||||||||||||||
100 | v.getHsvF(&hue, &saturation, &value, &alpha); | - | ||||||||||||||||||
101 | v.setHsvF(hue, hsvSaturation, value, alpha); | - | ||||||||||||||||||
102 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
103 | - | |||||||||||||||||||
104 | void QQuickColorValueType::setHsvValue(qreal hsvValue) | - | ||||||||||||||||||
105 | { | - | ||||||||||||||||||
106 | qreal hue, saturation, value, alpha; | - | ||||||||||||||||||
107 | v.getHsvF(&hue, &saturation, &value, &alpha); | - | ||||||||||||||||||
108 | v.setHsvF(hue, saturation, hsvValue, alpha); | - | ||||||||||||||||||
109 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
110 | - | |||||||||||||||||||
111 | void QQuickColorValueType::setHslHue(qreal hslHue) | - | ||||||||||||||||||
112 | { | - | ||||||||||||||||||
113 | qreal hue, saturation, lightness, alpha; | - | ||||||||||||||||||
114 | v.getHslF(&hue, &saturation, &lightness, &alpha); | - | ||||||||||||||||||
115 | v.setHslF(hslHue, saturation, lightness, alpha); | - | ||||||||||||||||||
116 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
117 | - | |||||||||||||||||||
118 | void QQuickColorValueType::setHslSaturation(qreal hslSaturation) | - | ||||||||||||||||||
119 | { | - | ||||||||||||||||||
120 | qreal hue, saturation, lightness, alpha; | - | ||||||||||||||||||
121 | v.getHslF(&hue, &saturation, &lightness, &alpha); | - | ||||||||||||||||||
122 | v.setHslF(hue, hslSaturation, lightness, alpha); | - | ||||||||||||||||||
123 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
124 | - | |||||||||||||||||||
125 | void QQuickColorValueType::setHslLightness(qreal hslLightness) | - | ||||||||||||||||||
126 | { | - | ||||||||||||||||||
127 | qreal hue, saturation, lightness, alpha; | - | ||||||||||||||||||
128 | v.getHslF(&hue, &saturation, &lightness, &alpha); | - | ||||||||||||||||||
129 | v.setHslF(hue, saturation, hslLightness, alpha); | - | ||||||||||||||||||
130 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
131 | - | |||||||||||||||||||
132 | QString QQuickVector2DValueType::toString() const | - | ||||||||||||||||||
133 | { | - | ||||||||||||||||||
134 | return executed 6 times by 2 tests: QString(QLatin1String("QVector2D(%1, %2)")).arg(v.x()).arg(v.y());return QString(QLatin1String("QVector2D(%1, %2)")).arg(v.x()).arg(v.y()); Executed by:
executed 6 times by 2 tests: return QString(QLatin1String("QVector2D(%1, %2)")).arg(v.x()).arg(v.y()); Executed by:
| 6 | ||||||||||||||||||
135 | } | - | ||||||||||||||||||
136 | - | |||||||||||||||||||
137 | qreal QQuickVector2DValueType::x() const | - | ||||||||||||||||||
138 | { | - | ||||||||||||||||||
139 | return executed 14 times by 2 tests: v.x();return v.x(); Executed by:
executed 14 times by 2 tests: return v.x(); Executed by:
| 14 | ||||||||||||||||||
140 | } | - | ||||||||||||||||||
141 | - | |||||||||||||||||||
142 | qreal QQuickVector2DValueType::y() const | - | ||||||||||||||||||
143 | { | - | ||||||||||||||||||
144 | return executed 8 times by 2 tests: v.y();return v.y(); Executed by:
executed 8 times by 2 tests: return v.y(); Executed by:
| 8 | ||||||||||||||||||
145 | } | - | ||||||||||||||||||
146 | - | |||||||||||||||||||
147 | void QQuickVector2DValueType::setX(qreal x) | - | ||||||||||||||||||
148 | { | - | ||||||||||||||||||
149 | v.setX(x); | - | ||||||||||||||||||
150 | } executed 14 times by 2 tests: end of block Executed by:
| 14 | ||||||||||||||||||
151 | - | |||||||||||||||||||
152 | void QQuickVector2DValueType::setY(qreal y) | - | ||||||||||||||||||
153 | { | - | ||||||||||||||||||
154 | v.setY(y); | - | ||||||||||||||||||
155 | } executed 4 times by 2 tests: end of block Executed by:
| 4 | ||||||||||||||||||
156 | - | |||||||||||||||||||
157 | qreal QQuickVector2DValueType::dotProduct(const QVector2D &vec) const | - | ||||||||||||||||||
158 | { | - | ||||||||||||||||||
159 | return never executed: QVector2D::dotProduct(v, vec);return QVector2D::dotProduct(v, vec); never executed: return QVector2D::dotProduct(v, vec); | 0 | ||||||||||||||||||
160 | } | - | ||||||||||||||||||
161 | - | |||||||||||||||||||
162 | QVector2D QQuickVector2DValueType::times(const QVector2D &vec) const | - | ||||||||||||||||||
163 | { | - | ||||||||||||||||||
164 | return executed 2 times by 1 test: v * vec;return v * vec; Executed by:
executed 2 times by 1 test: return v * vec; Executed by:
| 2 | ||||||||||||||||||
165 | } | - | ||||||||||||||||||
166 | - | |||||||||||||||||||
167 | QVector2D QQuickVector2DValueType::times(qreal scalar) const | - | ||||||||||||||||||
168 | { | - | ||||||||||||||||||
169 | return executed 2 times by 1 test: v * scalar;return v * scalar; Executed by:
executed 2 times by 1 test: return v * scalar; Executed by:
| 2 | ||||||||||||||||||
170 | } | - | ||||||||||||||||||
171 | - | |||||||||||||||||||
172 | QVector2D QQuickVector2DValueType::plus(const QVector2D &vec) const | - | ||||||||||||||||||
173 | { | - | ||||||||||||||||||
174 | return executed 8 times by 1 test: v + vec;return v + vec; Executed by:
executed 8 times by 1 test: return v + vec; Executed by:
| 8 | ||||||||||||||||||
175 | } | - | ||||||||||||||||||
176 | - | |||||||||||||||||||
177 | QVector2D QQuickVector2DValueType::minus(const QVector2D &vec) const | - | ||||||||||||||||||
178 | { | - | ||||||||||||||||||
179 | return executed 2 times by 1 test: v - vec;return v - vec; Executed by:
executed 2 times by 1 test: return v - vec; Executed by:
| 2 | ||||||||||||||||||
180 | } | - | ||||||||||||||||||
181 | - | |||||||||||||||||||
182 | QVector2D QQuickVector2DValueType::normalized() const | - | ||||||||||||||||||
183 | { | - | ||||||||||||||||||
184 | return executed 2 times by 1 test: v.normalized();return v.normalized(); Executed by:
executed 2 times by 1 test: return v.normalized(); Executed by:
| 2 | ||||||||||||||||||
185 | } | - | ||||||||||||||||||
186 | - | |||||||||||||||||||
187 | qreal QQuickVector2DValueType::length() const | - | ||||||||||||||||||
188 | { | - | ||||||||||||||||||
189 | return executed 8 times by 1 test: v.length();return v.length(); Executed by:
executed 8 times by 1 test: return v.length(); Executed by:
| 8 | ||||||||||||||||||
190 | } | - | ||||||||||||||||||
191 | - | |||||||||||||||||||
192 | QVector3D QQuickVector2DValueType::toVector3d() const | - | ||||||||||||||||||
193 | { | - | ||||||||||||||||||
194 | return executed 2 times by 1 test: v.toVector3D();return v.toVector3D(); Executed by:
executed 2 times by 1 test: return v.toVector3D(); Executed by:
| 2 | ||||||||||||||||||
195 | } | - | ||||||||||||||||||
196 | - | |||||||||||||||||||
197 | QVector4D QQuickVector2DValueType::toVector4d() const | - | ||||||||||||||||||
198 | { | - | ||||||||||||||||||
199 | return executed 2 times by 1 test: v.toVector4D();return v.toVector4D(); Executed by:
executed 2 times by 1 test: return v.toVector4D(); Executed by:
| 2 | ||||||||||||||||||
200 | } | - | ||||||||||||||||||
201 | - | |||||||||||||||||||
202 | bool QQuickVector2DValueType::fuzzyEquals(const QVector2D &vec, qreal epsilon) const | - | ||||||||||||||||||
203 | { | - | ||||||||||||||||||
204 | qreal absEps = qAbs(epsilon); | - | ||||||||||||||||||
205 | if (qAbs(v.x() - vec.x()) > absEps
| 0-4 | ||||||||||||||||||
206 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||
207 | if (qAbs(v.y() - vec.y()) > absEps
| 0-4 | ||||||||||||||||||
208 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||
209 | return executed 4 times by 1 test: true;return true; Executed by:
executed 4 times by 1 test: return true; Executed by:
| 4 | ||||||||||||||||||
210 | } | - | ||||||||||||||||||
211 | - | |||||||||||||||||||
212 | bool QQuickVector2DValueType::fuzzyEquals(const QVector2D &vec) const | - | ||||||||||||||||||
213 | { | - | ||||||||||||||||||
214 | return executed 2 times by 1 test: qFuzzyCompare(v, vec);return qFuzzyCompare(v, vec); Executed by:
executed 2 times by 1 test: return qFuzzyCompare(v, vec); Executed by:
| 2 | ||||||||||||||||||
215 | } | - | ||||||||||||||||||
216 | - | |||||||||||||||||||
217 | QString QQuickVector3DValueType::toString() const | - | ||||||||||||||||||
218 | { | - | ||||||||||||||||||
219 | return executed 6 times by 2 tests: QString(QLatin1String("QVector3D(%1, %2, %3)")).arg(v.x()).arg(v.y()).arg(v.z());return QString(QLatin1String("QVector3D(%1, %2, %3)")).arg(v.x()).arg(v.y()).arg(v.z()); Executed by:
executed 6 times by 2 tests: return QString(QLatin1String("QVector3D(%1, %2, %3)")).arg(v.x()).arg(v.y()).arg(v.z()); Executed by:
| 6 | ||||||||||||||||||
220 | } | - | ||||||||||||||||||
221 | - | |||||||||||||||||||
222 | qreal QQuickVector3DValueType::x() const | - | ||||||||||||||||||
223 | { | - | ||||||||||||||||||
224 | return executed 18 times by 3 tests: v.x();return v.x(); Executed by:
executed 18 times by 3 tests: return v.x(); Executed by:
| 18 | ||||||||||||||||||
225 | } | - | ||||||||||||||||||
226 | - | |||||||||||||||||||
227 | qreal QQuickVector3DValueType::y() const | - | ||||||||||||||||||
228 | { | - | ||||||||||||||||||
229 | return executed 12 times by 3 tests: v.y();return v.y(); Executed by:
executed 12 times by 3 tests: return v.y(); Executed by:
| 12 | ||||||||||||||||||
230 | } | - | ||||||||||||||||||
231 | - | |||||||||||||||||||
232 | qreal QQuickVector3DValueType::z() const | - | ||||||||||||||||||
233 | { | - | ||||||||||||||||||
234 | return executed 12 times by 3 tests: v.z();return v.z(); Executed by:
executed 12 times by 3 tests: return v.z(); Executed by:
| 12 | ||||||||||||||||||
235 | } | - | ||||||||||||||||||
236 | - | |||||||||||||||||||
237 | void QQuickVector3DValueType::setX(qreal x) | - | ||||||||||||||||||
238 | { | - | ||||||||||||||||||
239 | v.setX(x); | - | ||||||||||||||||||
240 | } executed 868 times by 6 tests: end of block Executed by:
| 868 | ||||||||||||||||||
241 | - | |||||||||||||||||||
242 | void QQuickVector3DValueType::setY(qreal y) | - | ||||||||||||||||||
243 | { | - | ||||||||||||||||||
244 | v.setY(y); | - | ||||||||||||||||||
245 | } executed 1668 times by 5 tests: end of block Executed by:
| 1668 | ||||||||||||||||||
246 | - | |||||||||||||||||||
247 | void QQuickVector3DValueType::setZ(qreal z) | - | ||||||||||||||||||
248 | { | - | ||||||||||||||||||
249 | v.setZ(z); | - | ||||||||||||||||||
250 | } executed 834 times by 5 tests: end of block Executed by:
| 834 | ||||||||||||||||||
251 | - | |||||||||||||||||||
252 | QVector3D QQuickVector3DValueType::crossProduct(const QVector3D &vec) const | - | ||||||||||||||||||
253 | { | - | ||||||||||||||||||
254 | return never executed: QVector3D::crossProduct(v, vec);return QVector3D::crossProduct(v, vec); never executed: return QVector3D::crossProduct(v, vec); | 0 | ||||||||||||||||||
255 | } | - | ||||||||||||||||||
256 | - | |||||||||||||||||||
257 | qreal QQuickVector3DValueType::dotProduct(const QVector3D &vec) const | - | ||||||||||||||||||
258 | { | - | ||||||||||||||||||
259 | return never executed: QVector3D::dotProduct(v, vec);return QVector3D::dotProduct(v, vec); never executed: return QVector3D::dotProduct(v, vec); | 0 | ||||||||||||||||||
260 | } | - | ||||||||||||||||||
261 | - | |||||||||||||||||||
262 | QVector3D QQuickVector3DValueType::times(const QMatrix4x4 &m) const | - | ||||||||||||||||||
263 | { | - | ||||||||||||||||||
264 | return executed 2 times by 1 test: v * m;return v * m; Executed by:
executed 2 times by 1 test: return v * m; Executed by:
| 2 | ||||||||||||||||||
265 | } | - | ||||||||||||||||||
266 | - | |||||||||||||||||||
267 | QVector3D QQuickVector3DValueType::times(const QVector3D &vec) const | - | ||||||||||||||||||
268 | { | - | ||||||||||||||||||
269 | return executed 2 times by 1 test: v * vec;return v * vec; Executed by:
executed 2 times by 1 test: return v * vec; Executed by:
| 2 | ||||||||||||||||||
270 | } | - | ||||||||||||||||||
271 | - | |||||||||||||||||||
272 | QVector3D QQuickVector3DValueType::times(qreal scalar) const | - | ||||||||||||||||||
273 | { | - | ||||||||||||||||||
274 | return executed 2 times by 1 test: v * scalar;return v * scalar; Executed by:
executed 2 times by 1 test: return v * scalar; Executed by:
| 2 | ||||||||||||||||||
275 | } | - | ||||||||||||||||||
276 | - | |||||||||||||||||||
277 | QVector3D QQuickVector3DValueType::plus(const QVector3D &vec) const | - | ||||||||||||||||||
278 | { | - | ||||||||||||||||||
279 | return executed 4 times by 1 test: v + vec;return v + vec; Executed by:
executed 4 times by 1 test: return v + vec; Executed by:
| 4 | ||||||||||||||||||
280 | } | - | ||||||||||||||||||
281 | - | |||||||||||||||||||
282 | QVector3D QQuickVector3DValueType::minus(const QVector3D &vec) const | - | ||||||||||||||||||
283 | { | - | ||||||||||||||||||
284 | return executed 2 times by 1 test: v - vec;return v - vec; Executed by:
executed 2 times by 1 test: return v - vec; Executed by:
| 2 | ||||||||||||||||||
285 | } | - | ||||||||||||||||||
286 | - | |||||||||||||||||||
287 | QVector3D QQuickVector3DValueType::normalized() const | - | ||||||||||||||||||
288 | { | - | ||||||||||||||||||
289 | return executed 2 times by 1 test: v.normalized();return v.normalized(); Executed by:
executed 2 times by 1 test: return v.normalized(); Executed by:
| 2 | ||||||||||||||||||
290 | } | - | ||||||||||||||||||
291 | - | |||||||||||||||||||
292 | qreal QQuickVector3DValueType::length() const | - | ||||||||||||||||||
293 | { | - | ||||||||||||||||||
294 | return executed 8 times by 1 test: v.length();return v.length(); Executed by:
executed 8 times by 1 test: return v.length(); Executed by:
| 8 | ||||||||||||||||||
295 | } | - | ||||||||||||||||||
296 | - | |||||||||||||||||||
297 | QVector2D QQuickVector3DValueType::toVector2d() const | - | ||||||||||||||||||
298 | { | - | ||||||||||||||||||
299 | return executed 2 times by 1 test: v.toVector2D();return v.toVector2D(); Executed by:
executed 2 times by 1 test: return v.toVector2D(); Executed by:
| 2 | ||||||||||||||||||
300 | } | - | ||||||||||||||||||
301 | - | |||||||||||||||||||
302 | QVector4D QQuickVector3DValueType::toVector4d() const | - | ||||||||||||||||||
303 | { | - | ||||||||||||||||||
304 | return executed 2 times by 1 test: v.toVector4D();return v.toVector4D(); Executed by:
executed 2 times by 1 test: return v.toVector4D(); Executed by:
| 2 | ||||||||||||||||||
305 | } | - | ||||||||||||||||||
306 | - | |||||||||||||||||||
307 | bool QQuickVector3DValueType::fuzzyEquals(const QVector3D &vec, qreal epsilon) const | - | ||||||||||||||||||
308 | { | - | ||||||||||||||||||
309 | qreal absEps = qAbs(epsilon); | - | ||||||||||||||||||
310 | if (qAbs(v.x() - vec.x()) > absEps
| 0-4 | ||||||||||||||||||
311 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||
312 | if (qAbs(v.y() - vec.y()) > absEps
| 0-4 | ||||||||||||||||||
313 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||
314 | if (qAbs(v.z() - vec.z()) > absEps
| 0-4 | ||||||||||||||||||
315 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||
316 | return executed 4 times by 1 test: true;return true; Executed by:
executed 4 times by 1 test: return true; Executed by:
| 4 | ||||||||||||||||||
317 | } | - | ||||||||||||||||||
318 | - | |||||||||||||||||||
319 | bool QQuickVector3DValueType::fuzzyEquals(const QVector3D &vec) const | - | ||||||||||||||||||
320 | { | - | ||||||||||||||||||
321 | return executed 2 times by 1 test: qFuzzyCompare(v, vec);return qFuzzyCompare(v, vec); Executed by:
executed 2 times by 1 test: return qFuzzyCompare(v, vec); Executed by:
| 2 | ||||||||||||||||||
322 | } | - | ||||||||||||||||||
323 | - | |||||||||||||||||||
324 | QString QQuickVector4DValueType::toString() const | - | ||||||||||||||||||
325 | { | - | ||||||||||||||||||
326 | return executed 8 times by 2 tests: QString(QLatin1String("QVector4D(%1, %2, %3, %4)")).arg(v.x()).arg(v.y()).arg(v.z()).arg(v.w());return QString(QLatin1String("QVector4D(%1, %2, %3, %4)")).arg(v.x()).arg(v.y()).arg(v.z()).arg(v.w()); Executed by:
executed 8 times by 2 tests: return QString(QLatin1String("QVector4D(%1, %2, %3, %4)")).arg(v.x()).arg(v.y()).arg(v.z()).arg(v.w()); Executed by:
| 8 | ||||||||||||||||||
327 | } | - | ||||||||||||||||||
328 | - | |||||||||||||||||||
329 | qreal QQuickVector4DValueType::x() const | - | ||||||||||||||||||
330 | { | - | ||||||||||||||||||
331 | return executed 12 times by 2 tests: v.x();return v.x(); Executed by:
executed 12 times by 2 tests: return v.x(); Executed by:
| 12 | ||||||||||||||||||
332 | } | - | ||||||||||||||||||
333 | - | |||||||||||||||||||
334 | qreal QQuickVector4DValueType::y() const | - | ||||||||||||||||||
335 | { | - | ||||||||||||||||||
336 | return executed 6 times by 2 tests: v.y();return v.y(); Executed by:
executed 6 times by 2 tests: return v.y(); Executed by:
| 6 | ||||||||||||||||||
337 | } | - | ||||||||||||||||||
338 | - | |||||||||||||||||||
339 | qreal QQuickVector4DValueType::z() const | - | ||||||||||||||||||
340 | { | - | ||||||||||||||||||
341 | return executed 6 times by 2 tests: v.z();return v.z(); Executed by:
executed 6 times by 2 tests: return v.z(); Executed by:
| 6 | ||||||||||||||||||
342 | } | - | ||||||||||||||||||
343 | - | |||||||||||||||||||
344 | qreal QQuickVector4DValueType::w() const | - | ||||||||||||||||||
345 | { | - | ||||||||||||||||||
346 | return executed 6 times by 2 tests: v.w();return v.w(); Executed by:
executed 6 times by 2 tests: return v.w(); Executed by:
| 6 | ||||||||||||||||||
347 | } | - | ||||||||||||||||||
348 | - | |||||||||||||||||||
349 | void QQuickVector4DValueType::setX(qreal x) | - | ||||||||||||||||||
350 | { | - | ||||||||||||||||||
351 | v.setX(x); | - | ||||||||||||||||||
352 | } executed 8 times by 2 tests: end of block Executed by:
| 8 | ||||||||||||||||||
353 | - | |||||||||||||||||||
354 | void QQuickVector4DValueType::setY(qreal y) | - | ||||||||||||||||||
355 | { | - | ||||||||||||||||||
356 | v.setY(y); | - | ||||||||||||||||||
357 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
358 | - | |||||||||||||||||||
359 | void QQuickVector4DValueType::setZ(qreal z) | - | ||||||||||||||||||
360 | { | - | ||||||||||||||||||
361 | v.setZ(z); | - | ||||||||||||||||||
362 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
363 | - | |||||||||||||||||||
364 | void QQuickVector4DValueType::setW(qreal w) | - | ||||||||||||||||||
365 | { | - | ||||||||||||||||||
366 | v.setW(w); | - | ||||||||||||||||||
367 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
368 | - | |||||||||||||||||||
369 | qreal QQuickVector4DValueType::dotProduct(const QVector4D &vec) const | - | ||||||||||||||||||
370 | { | - | ||||||||||||||||||
371 | return never executed: QVector4D::dotProduct(v, vec);return QVector4D::dotProduct(v, vec); never executed: return QVector4D::dotProduct(v, vec); | 0 | ||||||||||||||||||
372 | } | - | ||||||||||||||||||
373 | - | |||||||||||||||||||
374 | QVector4D QQuickVector4DValueType::times(const QVector4D &vec) const | - | ||||||||||||||||||
375 | { | - | ||||||||||||||||||
376 | return executed 6 times by 2 tests: v * vec;return v * vec; Executed by:
executed 6 times by 2 tests: return v * vec; Executed by:
| 6 | ||||||||||||||||||
377 | } | - | ||||||||||||||||||
378 | - | |||||||||||||||||||
379 | QVector4D QQuickVector4DValueType::times(const QMatrix4x4 &m) const | - | ||||||||||||||||||
380 | { | - | ||||||||||||||||||
381 | return executed 4 times by 2 tests: v * m;return v * m; Executed by:
executed 4 times by 2 tests: return v * m; Executed by:
| 4 | ||||||||||||||||||
382 | } | - | ||||||||||||||||||
383 | - | |||||||||||||||||||
384 | QVector4D QQuickVector4DValueType::times(qreal scalar) const | - | ||||||||||||||||||
385 | { | - | ||||||||||||||||||
386 | return executed 4 times by 2 tests: v * scalar;return v * scalar; Executed by:
executed 4 times by 2 tests: return v * scalar; Executed by:
| 4 | ||||||||||||||||||
387 | } | - | ||||||||||||||||||
388 | - | |||||||||||||||||||
389 | QVector4D QQuickVector4DValueType::plus(const QVector4D &vec) const | - | ||||||||||||||||||
390 | { | - | ||||||||||||||||||
391 | return executed 4 times by 2 tests: v + vec;return v + vec; Executed by:
executed 4 times by 2 tests: return v + vec; Executed by:
| 4 | ||||||||||||||||||
392 | } | - | ||||||||||||||||||
393 | - | |||||||||||||||||||
394 | QVector4D QQuickVector4DValueType::minus(const QVector4D &vec) const | - | ||||||||||||||||||
395 | { | - | ||||||||||||||||||
396 | return executed 2 times by 1 test: v - vec;return v - vec; Executed by:
executed 2 times by 1 test: return v - vec; Executed by:
| 2 | ||||||||||||||||||
397 | } | - | ||||||||||||||||||
398 | - | |||||||||||||||||||
399 | QVector4D QQuickVector4DValueType::normalized() const | - | ||||||||||||||||||
400 | { | - | ||||||||||||||||||
401 | return executed 2 times by 1 test: v.normalized();return v.normalized(); Executed by:
executed 2 times by 1 test: return v.normalized(); Executed by:
| 2 | ||||||||||||||||||
402 | } | - | ||||||||||||||||||
403 | - | |||||||||||||||||||
404 | qreal QQuickVector4DValueType::length() const | - | ||||||||||||||||||
405 | { | - | ||||||||||||||||||
406 | return executed 8 times by 1 test: v.length();return v.length(); Executed by:
executed 8 times by 1 test: return v.length(); Executed by:
| 8 | ||||||||||||||||||
407 | } | - | ||||||||||||||||||
408 | - | |||||||||||||||||||
409 | QVector2D QQuickVector4DValueType::toVector2d() const | - | ||||||||||||||||||
410 | { | - | ||||||||||||||||||
411 | return executed 2 times by 1 test: v.toVector2D();return v.toVector2D(); Executed by:
executed 2 times by 1 test: return v.toVector2D(); Executed by:
| 2 | ||||||||||||||||||
412 | } | - | ||||||||||||||||||
413 | - | |||||||||||||||||||
414 | QVector3D QQuickVector4DValueType::toVector3d() const | - | ||||||||||||||||||
415 | { | - | ||||||||||||||||||
416 | return executed 2 times by 1 test: v.toVector3D();return v.toVector3D(); Executed by:
executed 2 times by 1 test: return v.toVector3D(); Executed by:
| 2 | ||||||||||||||||||
417 | } | - | ||||||||||||||||||
418 | - | |||||||||||||||||||
419 | bool QQuickVector4DValueType::fuzzyEquals(const QVector4D &vec, qreal epsilon) const | - | ||||||||||||||||||
420 | { | - | ||||||||||||||||||
421 | qreal absEps = qAbs(epsilon); | - | ||||||||||||||||||
422 | if (qAbs(v.x() - vec.x()) > absEps
| 0-4 | ||||||||||||||||||
423 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||
424 | if (qAbs(v.y() - vec.y()) > absEps
| 0-4 | ||||||||||||||||||
425 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||
426 | if (qAbs(v.z() - vec.z()) > absEps
| 0-4 | ||||||||||||||||||
427 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||
428 | if (qAbs(v.w() - vec.w()) > absEps
| 0-4 | ||||||||||||||||||
429 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||
430 | return executed 4 times by 1 test: true;return true; Executed by:
executed 4 times by 1 test: return true; Executed by:
| 4 | ||||||||||||||||||
431 | } | - | ||||||||||||||||||
432 | - | |||||||||||||||||||
433 | bool QQuickVector4DValueType::fuzzyEquals(const QVector4D &vec) const | - | ||||||||||||||||||
434 | { | - | ||||||||||||||||||
435 | return executed 2 times by 1 test: qFuzzyCompare(v, vec);return qFuzzyCompare(v, vec); Executed by:
executed 2 times by 1 test: return qFuzzyCompare(v, vec); Executed by:
| 2 | ||||||||||||||||||
436 | } | - | ||||||||||||||||||
437 | - | |||||||||||||||||||
438 | QString QQuickQuaternionValueType::toString() const | - | ||||||||||||||||||
439 | { | - | ||||||||||||||||||
440 | return executed 6 times by 2 tests: QString(QLatin1String("QQuaternion(%1, %2, %3, %4)")).arg(v.scalar()).arg(v.x()).arg(v.y()).arg(v.z());return QString(QLatin1String("QQuaternion(%1, %2, %3, %4)")).arg(v.scalar()).arg(v.x()).arg(v.y()).arg(v.z()); Executed by:
executed 6 times by 2 tests: return QString(QLatin1String("QQuaternion(%1, %2, %3, %4)")).arg(v.scalar()).arg(v.x()).arg(v.y()).arg(v.z()); Executed by:
| 6 | ||||||||||||||||||
441 | } | - | ||||||||||||||||||
442 | - | |||||||||||||||||||
443 | qreal QQuickQuaternionValueType::scalar() const | - | ||||||||||||||||||
444 | { | - | ||||||||||||||||||
445 | return executed 6 times by 2 tests: v.scalar();return v.scalar(); Executed by:
executed 6 times by 2 tests: return v.scalar(); Executed by:
| 6 | ||||||||||||||||||
446 | } | - | ||||||||||||||||||
447 | - | |||||||||||||||||||
448 | qreal QQuickQuaternionValueType::x() const | - | ||||||||||||||||||
449 | { | - | ||||||||||||||||||
450 | return executed 6 times by 2 tests: v.x();return v.x(); Executed by:
executed 6 times by 2 tests: return v.x(); Executed by:
| 6 | ||||||||||||||||||
451 | } | - | ||||||||||||||||||
452 | - | |||||||||||||||||||
453 | qreal QQuickQuaternionValueType::y() const | - | ||||||||||||||||||
454 | { | - | ||||||||||||||||||
455 | return executed 6 times by 2 tests: v.y();return v.y(); Executed by:
executed 6 times by 2 tests: return v.y(); Executed by:
| 6 | ||||||||||||||||||
456 | } | - | ||||||||||||||||||
457 | - | |||||||||||||||||||
458 | qreal QQuickQuaternionValueType::z() const | - | ||||||||||||||||||
459 | { | - | ||||||||||||||||||
460 | return executed 6 times by 2 tests: v.z();return v.z(); Executed by:
executed 6 times by 2 tests: return v.z(); Executed by:
| 6 | ||||||||||||||||||
461 | } | - | ||||||||||||||||||
462 | - | |||||||||||||||||||
463 | void QQuickQuaternionValueType::setScalar(qreal scalar) | - | ||||||||||||||||||
464 | { | - | ||||||||||||||||||
465 | v.setScalar(scalar); | - | ||||||||||||||||||
466 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
467 | - | |||||||||||||||||||
468 | void QQuickQuaternionValueType::setX(qreal x) | - | ||||||||||||||||||
469 | { | - | ||||||||||||||||||
470 | v.setX(x); | - | ||||||||||||||||||
471 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
472 | - | |||||||||||||||||||
473 | void QQuickQuaternionValueType::setY(qreal y) | - | ||||||||||||||||||
474 | { | - | ||||||||||||||||||
475 | v.setY(y); | - | ||||||||||||||||||
476 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
477 | - | |||||||||||||||||||
478 | void QQuickQuaternionValueType::setZ(qreal z) | - | ||||||||||||||||||
479 | { | - | ||||||||||||||||||
480 | v.setZ(z); | - | ||||||||||||||||||
481 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
482 | - | |||||||||||||||||||
483 | QMatrix4x4 QQuickMatrix4x4ValueType::times(const QMatrix4x4 &m) const | - | ||||||||||||||||||
484 | { | - | ||||||||||||||||||
485 | return executed 4 times by 2 tests: v * m;return v * m; Executed by:
executed 4 times by 2 tests: return v * m; Executed by:
| 4 | ||||||||||||||||||
486 | } | - | ||||||||||||||||||
487 | - | |||||||||||||||||||
488 | QVector4D QQuickMatrix4x4ValueType::times(const QVector4D &vec) const | - | ||||||||||||||||||
489 | { | - | ||||||||||||||||||
490 | return executed 4 times by 2 tests: v * vec;return v * vec; Executed by:
executed 4 times by 2 tests: return v * vec; Executed by:
| 4 | ||||||||||||||||||
491 | } | - | ||||||||||||||||||
492 | - | |||||||||||||||||||
493 | QVector3D QQuickMatrix4x4ValueType::times(const QVector3D &vec) const | - | ||||||||||||||||||
494 | { | - | ||||||||||||||||||
495 | return executed 2 times by 1 test: v * vec;return v * vec; Executed by:
executed 2 times by 1 test: return v * vec; Executed by:
| 2 | ||||||||||||||||||
496 | } | - | ||||||||||||||||||
497 | - | |||||||||||||||||||
498 | QMatrix4x4 QQuickMatrix4x4ValueType::times(qreal factor) const | - | ||||||||||||||||||
499 | { | - | ||||||||||||||||||
500 | return executed 2 times by 1 test: v * factor;return v * factor; Executed by:
executed 2 times by 1 test: return v * factor; Executed by:
| 2 | ||||||||||||||||||
501 | } | - | ||||||||||||||||||
502 | - | |||||||||||||||||||
503 | QMatrix4x4 QQuickMatrix4x4ValueType::plus(const QMatrix4x4 &m) const | - | ||||||||||||||||||
504 | { | - | ||||||||||||||||||
505 | return executed 4 times by 2 tests: v + m;return v + m; Executed by:
executed 4 times by 2 tests: return v + m; Executed by:
| 4 | ||||||||||||||||||
506 | } | - | ||||||||||||||||||
507 | - | |||||||||||||||||||
508 | QMatrix4x4 QQuickMatrix4x4ValueType::minus(const QMatrix4x4 &m) const | - | ||||||||||||||||||
509 | { | - | ||||||||||||||||||
510 | return executed 2 times by 1 test: v - m;return v - m; Executed by:
executed 2 times by 1 test: return v - m; Executed by:
| 2 | ||||||||||||||||||
511 | } | - | ||||||||||||||||||
512 | - | |||||||||||||||||||
513 | QVector4D QQuickMatrix4x4ValueType::row(int n) const | - | ||||||||||||||||||
514 | { | - | ||||||||||||||||||
515 | return executed 4 times by 2 tests: v.row(n);return v.row(n); Executed by:
executed 4 times by 2 tests: return v.row(n); Executed by:
| 4 | ||||||||||||||||||
516 | } | - | ||||||||||||||||||
517 | - | |||||||||||||||||||
518 | QVector4D QQuickMatrix4x4ValueType::column(int m) const | - | ||||||||||||||||||
519 | { | - | ||||||||||||||||||
520 | return executed 4 times by 2 tests: v.column(m);return v.column(m); Executed by:
executed 4 times by 2 tests: return v.column(m); Executed by:
| 4 | ||||||||||||||||||
521 | } | - | ||||||||||||||||||
522 | - | |||||||||||||||||||
523 | qreal QQuickMatrix4x4ValueType::determinant() const | - | ||||||||||||||||||
524 | { | - | ||||||||||||||||||
525 | return executed 4 times by 1 test: v.determinant();return v.determinant(); Executed by:
executed 4 times by 1 test: return v.determinant(); Executed by:
| 4 | ||||||||||||||||||
526 | } | - | ||||||||||||||||||
527 | - | |||||||||||||||||||
528 | QMatrix4x4 QQuickMatrix4x4ValueType::inverted() const | - | ||||||||||||||||||
529 | { | - | ||||||||||||||||||
530 | return executed 4 times by 1 test: v.inverted();return v.inverted(); Executed by:
executed 4 times by 1 test: return v.inverted(); Executed by:
| 4 | ||||||||||||||||||
531 | } | - | ||||||||||||||||||
532 | - | |||||||||||||||||||
533 | QMatrix4x4 QQuickMatrix4x4ValueType::transposed() const | - | ||||||||||||||||||
534 | { | - | ||||||||||||||||||
535 | return executed 2 times by 1 test: v.transposed();return v.transposed(); Executed by:
executed 2 times by 1 test: return v.transposed(); Executed by:
| 2 | ||||||||||||||||||
536 | } | - | ||||||||||||||||||
537 | - | |||||||||||||||||||
538 | bool QQuickMatrix4x4ValueType::fuzzyEquals(const QMatrix4x4 &m, qreal epsilon) const | - | ||||||||||||||||||
539 | { | - | ||||||||||||||||||
540 | qreal absEps = qAbs(epsilon); | - | ||||||||||||||||||
541 | for (int i = 0; i < 4
| 4-16 | ||||||||||||||||||
542 | for (int j = 0; j < 4
| 16-64 | ||||||||||||||||||
543 | if (qAbs(v(i,j) - m(i,j)) > absEps
| 0-64 | ||||||||||||||||||
544 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||
545 | } | - | ||||||||||||||||||
546 | } executed 64 times by 1 test: end of block Executed by:
| 64 | ||||||||||||||||||
547 | } executed 16 times by 1 test: end of block Executed by:
| 16 | ||||||||||||||||||
548 | return executed 4 times by 1 test: true;return true; Executed by:
executed 4 times by 1 test: return true; Executed by:
| 4 | ||||||||||||||||||
549 | } | - | ||||||||||||||||||
550 | - | |||||||||||||||||||
551 | bool QQuickMatrix4x4ValueType::fuzzyEquals(const QMatrix4x4 &m) const | - | ||||||||||||||||||
552 | { | - | ||||||||||||||||||
553 | return executed 4 times by 1 test: qFuzzyCompare(v, m);return qFuzzyCompare(v, m); Executed by:
executed 4 times by 1 test: return qFuzzyCompare(v, m); Executed by:
| 4 | ||||||||||||||||||
554 | } | - | ||||||||||||||||||
555 | - | |||||||||||||||||||
556 | QString QQuickFontValueType::toString() const | - | ||||||||||||||||||
557 | { | - | ||||||||||||||||||
558 | return executed 4 times by 1 test: QString(QLatin1String("QFont(%1)")).arg(v.toString());return QString(QLatin1String("QFont(%1)")).arg(v.toString()); Executed by:
executed 4 times by 1 test: return QString(QLatin1String("QFont(%1)")).arg(v.toString()); Executed by:
| 4 | ||||||||||||||||||
559 | } | - | ||||||||||||||||||
560 | - | |||||||||||||||||||
561 | QString QQuickFontValueType::family() const | - | ||||||||||||||||||
562 | { | - | ||||||||||||||||||
563 | return executed 22 times by 3 tests: v.family();return v.family(); Executed by:
executed 22 times by 3 tests: return v.family(); Executed by:
| 22 | ||||||||||||||||||
564 | } | - | ||||||||||||||||||
565 | - | |||||||||||||||||||
566 | void QQuickFontValueType::setFamily(const QString &family) | - | ||||||||||||||||||
567 | { | - | ||||||||||||||||||
568 | v.setFamily(family); | - | ||||||||||||||||||
569 | } executed 110 times by 8 tests: end of block Executed by:
| 110 | ||||||||||||||||||
570 | - | |||||||||||||||||||
571 | QString QQuickFontValueType::styleName() const | - | ||||||||||||||||||
572 | { | - | ||||||||||||||||||
573 | return never executed: v.styleName();return v.styleName(); never executed: return v.styleName(); | 0 | ||||||||||||||||||
574 | } | - | ||||||||||||||||||
575 | - | |||||||||||||||||||
576 | void QQuickFontValueType::setStyleName(const QString &style) | - | ||||||||||||||||||
577 | { | - | ||||||||||||||||||
578 | v.setStyleName(style); | - | ||||||||||||||||||
579 | } never executed: end of block | 0 | ||||||||||||||||||
580 | - | |||||||||||||||||||
581 | bool QQuickFontValueType::bold() const | - | ||||||||||||||||||
582 | { | - | ||||||||||||||||||
583 | return executed 24 times by 1 test: v.bold();return v.bold(); Executed by:
executed 24 times by 1 test: return v.bold(); Executed by:
| 24 | ||||||||||||||||||
584 | } | - | ||||||||||||||||||
585 | - | |||||||||||||||||||
586 | void QQuickFontValueType::setBold(bool b) | - | ||||||||||||||||||
587 | { | - | ||||||||||||||||||
588 | v.setBold(b); | - | ||||||||||||||||||
589 | } executed 240 times by 10 tests: end of block Executed by:
| 240 | ||||||||||||||||||
590 | - | |||||||||||||||||||
591 | QQuickFontValueType::FontWeight QQuickFontValueType::weight() const | - | ||||||||||||||||||
592 | { | - | ||||||||||||||||||
593 | return executed 28 times by 2 tests: (QQuickFontValueType::FontWeight)v.weight();return (QQuickFontValueType::FontWeight)v.weight(); Executed by:
executed 28 times by 2 tests: return (QQuickFontValueType::FontWeight)v.weight(); Executed by:
| 28 | ||||||||||||||||||
594 | } | - | ||||||||||||||||||
595 | - | |||||||||||||||||||
596 | void QQuickFontValueType::setWeight(QQuickFontValueType::FontWeight w) | - | ||||||||||||||||||
597 | { | - | ||||||||||||||||||
598 | v.setWeight((QFont::Weight)w); | - | ||||||||||||||||||
599 | } executed 14 times by 5 tests: end of block Executed by:
| 14 | ||||||||||||||||||
600 | - | |||||||||||||||||||
601 | bool QQuickFontValueType::italic() const | - | ||||||||||||||||||
602 | { | - | ||||||||||||||||||
603 | return executed 34 times by 2 tests: v.italic();return v.italic(); Executed by:
executed 34 times by 2 tests: return v.italic(); Executed by:
| 34 | ||||||||||||||||||
604 | } | - | ||||||||||||||||||
605 | - | |||||||||||||||||||
606 | void QQuickFontValueType::setItalic(bool b) | - | ||||||||||||||||||
607 | { | - | ||||||||||||||||||
608 | v.setItalic(b); | - | ||||||||||||||||||
609 | } executed 46 times by 7 tests: end of block Executed by:
| 46 | ||||||||||||||||||
610 | - | |||||||||||||||||||
611 | bool QQuickFontValueType::underline() const | - | ||||||||||||||||||
612 | { | - | ||||||||||||||||||
613 | return executed 4 times by 1 test: v.underline();return v.underline(); Executed by:
executed 4 times by 1 test: return v.underline(); Executed by:
| 4 | ||||||||||||||||||
614 | } | - | ||||||||||||||||||
615 | - | |||||||||||||||||||
616 | void QQuickFontValueType::setUnderline(bool b) | - | ||||||||||||||||||
617 | { | - | ||||||||||||||||||
618 | v.setUnderline(b); | - | ||||||||||||||||||
619 | } executed 4 times by 2 tests: end of block Executed by:
| 4 | ||||||||||||||||||
620 | - | |||||||||||||||||||
621 | bool QQuickFontValueType::overline() const | - | ||||||||||||||||||
622 | { | - | ||||||||||||||||||
623 | return executed 4 times by 1 test: v.overline();return v.overline(); Executed by:
executed 4 times by 1 test: return v.overline(); Executed by:
| 4 | ||||||||||||||||||
624 | } | - | ||||||||||||||||||
625 | - | |||||||||||||||||||
626 | void QQuickFontValueType::setOverline(bool b) | - | ||||||||||||||||||
627 | { | - | ||||||||||||||||||
628 | v.setOverline(b); | - | ||||||||||||||||||
629 | } executed 4 times by 2 tests: end of block Executed by:
| 4 | ||||||||||||||||||
630 | - | |||||||||||||||||||
631 | bool QQuickFontValueType::strikeout() const | - | ||||||||||||||||||
632 | { | - | ||||||||||||||||||
633 | return executed 4 times by 1 test: v.strikeOut();return v.strikeOut(); Executed by:
executed 4 times by 1 test: return v.strikeOut(); Executed by:
| 4 | ||||||||||||||||||
634 | } | - | ||||||||||||||||||
635 | - | |||||||||||||||||||
636 | void QQuickFontValueType::setStrikeout(bool b) | - | ||||||||||||||||||
637 | { | - | ||||||||||||||||||
638 | v.setStrikeOut(b); | - | ||||||||||||||||||
639 | } executed 4 times by 2 tests: end of block Executed by:
| 4 | ||||||||||||||||||
640 | - | |||||||||||||||||||
641 | qreal QQuickFontValueType::pointSize() const | - | ||||||||||||||||||
642 | { | - | ||||||||||||||||||
643 | if (v.pointSizeF() == -1
| 0-34 | ||||||||||||||||||
644 | return never executed: v.pixelSize() * qreal(72.) / qreal(qt_defaultDpi());return v.pixelSize() * qreal(72.) / qreal(qt_defaultDpi()); never executed: return v.pixelSize() * qreal(72.) / qreal(qt_defaultDpi()); | 0 | ||||||||||||||||||
645 | } | - | ||||||||||||||||||
646 | return executed 34 times by 3 tests: v.pointSizeF();return v.pointSizeF(); Executed by:
executed 34 times by 3 tests: return v.pointSizeF(); Executed by:
| 34 | ||||||||||||||||||
647 | } | - | ||||||||||||||||||
648 | - | |||||||||||||||||||
649 | void QQuickFontValueType::setPointSize(qreal size) | - | ||||||||||||||||||
650 | { | - | ||||||||||||||||||
651 | if ((
| 12-1245 | ||||||||||||||||||
652 | QMessageLogger(__FILE__, 694, __PRETTY_FUNCTION__).warning() << "Both point size and pixel size set. Using pixel size."; | - | ||||||||||||||||||
653 | return; executed 12 times by 2 tests: return; Executed by:
| 12 | ||||||||||||||||||
654 | } | - | ||||||||||||||||||
655 | - | |||||||||||||||||||
656 | if (size >= 0.0
| 0-2363 | ||||||||||||||||||
657 | v.setPointSizeF(size); | - | ||||||||||||||||||
658 | } executed 2363 times by 13 tests: end of block Executed by:
| 2363 | ||||||||||||||||||
659 | } executed 2363 times by 13 tests: end of block Executed by:
| 2363 | ||||||||||||||||||
660 | - | |||||||||||||||||||
661 | int QQuickFontValueType::pixelSize() const | - | ||||||||||||||||||
662 | { | - | ||||||||||||||||||
663 | if (v.pixelSize() == -1
| 6-14 | ||||||||||||||||||
664 | return executed 6 times by 2 tests: (v.pointSizeF() * qt_defaultDpi()) / qreal(72.);return (v.pointSizeF() * qt_defaultDpi()) / qreal(72.); Executed by:
executed 6 times by 2 tests: return (v.pointSizeF() * qt_defaultDpi()) / qreal(72.); Executed by:
| 6 | ||||||||||||||||||
665 | } | - | ||||||||||||||||||
666 | return executed 14 times by 3 tests: v.pixelSize();return v.pixelSize(); Executed by:
executed 14 times by 3 tests: return v.pixelSize(); Executed by:
| 14 | ||||||||||||||||||
667 | } | - | ||||||||||||||||||
668 | - | |||||||||||||||||||
669 | void QQuickFontValueType::setPixelSize(int size) | - | ||||||||||||||||||
670 | { | - | ||||||||||||||||||
671 | if (size >0
| 0-36865 | ||||||||||||||||||
672 | if ((
| 2-35653 | ||||||||||||||||||
673 | QMessageLogger(__FILE__, 715, __PRETTY_FUNCTION__).warning() << "Both point size and pixel size set. Using pixel size."; executed 2 times by 1 test: QMessageLogger(__FILE__, 715, __PRETTY_FUNCTION__).warning() << "Both point size and pixel size set. Using pixel size."; Executed by:
| 2 | ||||||||||||||||||
674 | v.setPixelSize(size); | - | ||||||||||||||||||
675 | } executed 36865 times by 11 tests: end of block Executed by:
| 36865 | ||||||||||||||||||
676 | } executed 36865 times by 11 tests: end of block Executed by:
| 36865 | ||||||||||||||||||
677 | - | |||||||||||||||||||
678 | QQuickFontValueType::Capitalization QQuickFontValueType::capitalization() const | - | ||||||||||||||||||
679 | { | - | ||||||||||||||||||
680 | return executed 4 times by 1 test: (QQuickFontValueType::Capitalization)v.capitalization();return (QQuickFontValueType::Capitalization)v.capitalization(); Executed by:
executed 4 times by 1 test: return (QQuickFontValueType::Capitalization)v.capitalization(); Executed by:
| 4 | ||||||||||||||||||
681 | } | - | ||||||||||||||||||
682 | - | |||||||||||||||||||
683 | void QQuickFontValueType::setCapitalization(QQuickFontValueType::Capitalization c) | - | ||||||||||||||||||
684 | { | - | ||||||||||||||||||
685 | v.setCapitalization((QFont::Capitalization)c); | - | ||||||||||||||||||
686 | } executed 28 times by 3 tests: end of block Executed by:
| 28 | ||||||||||||||||||
687 | - | |||||||||||||||||||
688 | qreal QQuickFontValueType::letterSpacing() const | - | ||||||||||||||||||
689 | { | - | ||||||||||||||||||
690 | return executed 4 times by 1 test: v.letterSpacing();return v.letterSpacing(); Executed by:
executed 4 times by 1 test: return v.letterSpacing(); Executed by:
| 4 | ||||||||||||||||||
691 | } | - | ||||||||||||||||||
692 | - | |||||||||||||||||||
693 | void QQuickFontValueType::setLetterSpacing(qreal size) | - | ||||||||||||||||||
694 | { | - | ||||||||||||||||||
695 | v.setLetterSpacing(QFont::AbsoluteSpacing, size); | - | ||||||||||||||||||
696 | } executed 8 times by 3 tests: end of block Executed by:
| 8 | ||||||||||||||||||
697 | - | |||||||||||||||||||
698 | qreal QQuickFontValueType::wordSpacing() const | - | ||||||||||||||||||
699 | { | - | ||||||||||||||||||
700 | return executed 4 times by 1 test: v.wordSpacing();return v.wordSpacing(); Executed by:
executed 4 times by 1 test: return v.wordSpacing(); Executed by:
| 4 | ||||||||||||||||||
701 | } | - | ||||||||||||||||||
702 | - | |||||||||||||||||||
703 | void QQuickFontValueType::setWordSpacing(qreal size) | - | ||||||||||||||||||
704 | { | - | ||||||||||||||||||
705 | v.setWordSpacing(size); | - | ||||||||||||||||||
706 | } executed 6 times by 2 tests: end of block Executed by:
| 6 | ||||||||||||||||||
707 | - | |||||||||||||||||||
708 | QQuickFontValueType::HintingPreference QQuickFontValueType::hintingPreference() const | - | ||||||||||||||||||
709 | { | - | ||||||||||||||||||
710 | return never executed: QQuickFontValueType::HintingPreference(v.hintingPreference());return QQuickFontValueType::HintingPreference(v.hintingPreference()); never executed: return QQuickFontValueType::HintingPreference(v.hintingPreference()); | 0 | ||||||||||||||||||
711 | } | - | ||||||||||||||||||
712 | - | |||||||||||||||||||
713 | void QQuickFontValueType::setHintingPreference(QQuickFontValueType::HintingPreference hintingPreference) | - | ||||||||||||||||||
714 | { | - | ||||||||||||||||||
715 | v.setHintingPreference(QFont::HintingPreference(hintingPreference)); | - | ||||||||||||||||||
716 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
717 | - | |||||||||||||||||||
718 | bool QQuickFontValueType::kerning() const | - | ||||||||||||||||||
719 | { | - | ||||||||||||||||||
720 | return never executed: v.kerning();return v.kerning(); never executed: return v.kerning(); | 0 | ||||||||||||||||||
721 | } | - | ||||||||||||||||||
722 | - | |||||||||||||||||||
723 | void QQuickFontValueType::setKerning(bool b) | - | ||||||||||||||||||
724 | { | - | ||||||||||||||||||
725 | v.setKerning(b); | - | ||||||||||||||||||
726 | } never executed: end of block | 0 | ||||||||||||||||||
727 | - | |||||||||||||||||||
728 | bool QQuickFontValueType::preferShaping() const | - | ||||||||||||||||||
729 | { | - | ||||||||||||||||||
730 | return never executed: (v.styleStrategy() & QFont::PreferNoShaping) == 0;return (v.styleStrategy() & QFont::PreferNoShaping) == 0; never executed: return (v.styleStrategy() & QFont::PreferNoShaping) == 0; | 0 | ||||||||||||||||||
731 | } | - | ||||||||||||||||||
732 | - | |||||||||||||||||||
733 | void QQuickFontValueType::setPreferShaping(bool enable) | - | ||||||||||||||||||
734 | { | - | ||||||||||||||||||
735 | if (enable
| 0 | ||||||||||||||||||
736 | v.setStyleStrategy(static_cast<QFont::StyleStrategy>(v.styleStrategy() & ~QFont::PreferNoShaping)); never executed: v.setStyleStrategy(static_cast<QFont::StyleStrategy>(v.styleStrategy() & ~QFont::PreferNoShaping)); | 0 | ||||||||||||||||||
737 | else | - | ||||||||||||||||||
738 | v.setStyleStrategy(static_cast<QFont::StyleStrategy>(v.styleStrategy() | QFont::PreferNoShaping)); never executed: v.setStyleStrategy(static_cast<QFont::StyleStrategy>(v.styleStrategy() | QFont::PreferNoShaping)); | 0 | ||||||||||||||||||
739 | } | - | ||||||||||||||||||
740 | - | |||||||||||||||||||
741 | - | |||||||||||||||||||
742 | - | |||||||||||||||||||
Switch to Source code | Preprocessed file |