OpenCoverage

qquickvaluetypes.cpp

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

Generated by Squish Coco 4.2.0