Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickglobal.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||||||||
2 | - | |||||||||||||||||||||||||
3 | - | |||||||||||||||||||||||||
4 | - | |||||||||||||||||||||||||
5 | - | |||||||||||||||||||||||||
6 | - | |||||||||||||||||||||||||
7 | - | |||||||||||||||||||||||||
8 | - | |||||||||||||||||||||||||
9 | - | |||||||||||||||||||||||||
10 | - | |||||||||||||||||||||||||
11 | class QQuickColorProvider : public QQmlColorProvider | - | ||||||||||||||||||||||||
12 | { | - | ||||||||||||||||||||||||
13 | public: | - | ||||||||||||||||||||||||
14 | QVariant colorFromString(const QString &s, bool *ok) override | - | ||||||||||||||||||||||||
15 | { | - | ||||||||||||||||||||||||
16 | QColor c(s); | - | ||||||||||||||||||||||||
17 | if (c.isValid()
| 12-142 | ||||||||||||||||||||||||
18 | if (ok
executed 142 times by 2 tests: ok = true;*ok = true; Executed by:
executed 142 times by 2 tests: *ok = true; Executed by:
| 0-142 | ||||||||||||||||||||||||
19 | return executed 142 times by 2 tests: QVariant(c);return QVariant(c); Executed by:
executed 142 times by 2 tests: return QVariant(c); Executed by:
| 142 | ||||||||||||||||||||||||
20 | } | - | ||||||||||||||||||||||||
21 | - | |||||||||||||||||||||||||
22 | if (ok
executed 12 times by 1 test: ok = false;*ok = false; Executed by:
executed 12 times by 1 test: *ok = false; Executed by:
| 0-12 | ||||||||||||||||||||||||
23 | return executed 12 times by 1 test: QVariant();return QVariant(); Executed by:
executed 12 times by 1 test: return QVariant(); Executed by:
| 12 | ||||||||||||||||||||||||
24 | } | - | ||||||||||||||||||||||||
25 | - | |||||||||||||||||||||||||
26 | unsigned rgbaFromString(const QString &s, bool *ok) override | - | ||||||||||||||||||||||||
27 | { | - | ||||||||||||||||||||||||
28 | QColor c(s); | - | ||||||||||||||||||||||||
29 | if (c.isValid()
| 2-36657 | ||||||||||||||||||||||||
30 | if (ok
executed 36657 times by 83 tests: ok = true;*ok = true; Executed by:
executed 36657 times by 83 tests: *ok = true; Executed by:
| 0-36657 | ||||||||||||||||||||||||
31 | return executed 36657 times by 83 tests: c.rgba();return c.rgba(); Executed by:
executed 36657 times by 83 tests: return c.rgba(); Executed by:
| 36657 | ||||||||||||||||||||||||
32 | } | - | ||||||||||||||||||||||||
33 | - | |||||||||||||||||||||||||
34 | if (ok
executed 2 times by 1 test: ok = false;*ok = false; Executed by:
executed 2 times by 1 test: *ok = false; Executed by:
| 0-2 | ||||||||||||||||||||||||
35 | return executed 2 times by 1 test: 0;return 0; Executed by:
executed 2 times by 1 test: return 0; Executed by:
| 2 | ||||||||||||||||||||||||
36 | } | - | ||||||||||||||||||||||||
37 | - | |||||||||||||||||||||||||
38 | QString stringFromRgba(unsigned rgba) | - | ||||||||||||||||||||||||
39 | { | - | ||||||||||||||||||||||||
40 | QColor c(QColor::fromRgba(rgba)); | - | ||||||||||||||||||||||||
41 | if (c.isValid()
| 0 | ||||||||||||||||||||||||
42 | return never executed: QVariant(c).toString();return QVariant(c).toString(); never executed: return QVariant(c).toString(); | 0 | ||||||||||||||||||||||||
43 | } | - | ||||||||||||||||||||||||
44 | - | |||||||||||||||||||||||||
45 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||||||||||||||
46 | } | - | ||||||||||||||||||||||||
47 | - | |||||||||||||||||||||||||
48 | QVariant fromRgbF(double r, double g, double b, double a) override | - | ||||||||||||||||||||||||
49 | { | - | ||||||||||||||||||||||||
50 | return executed 1484 times by 13 tests: QVariant(QColor::fromRgbF(r, g, b, a));return QVariant(QColor::fromRgbF(r, g, b, a)); Executed by:
executed 1484 times by 13 tests: return QVariant(QColor::fromRgbF(r, g, b, a)); Executed by:
| 1484 | ||||||||||||||||||||||||
51 | } | - | ||||||||||||||||||||||||
52 | - | |||||||||||||||||||||||||
53 | QVariant fromHslF(double h, double s, double l, double a) override | - | ||||||||||||||||||||||||
54 | { | - | ||||||||||||||||||||||||
55 | return executed 430 times by 3 tests: QVariant(QColor::fromHslF(h, s, l, a));return QVariant(QColor::fromHslF(h, s, l, a)); Executed by:
executed 430 times by 3 tests: return QVariant(QColor::fromHslF(h, s, l, a)); Executed by:
| 430 | ||||||||||||||||||||||||
56 | } | - | ||||||||||||||||||||||||
57 | - | |||||||||||||||||||||||||
58 | QVariant fromHsvF(double h, double s, double v, double a) override | - | ||||||||||||||||||||||||
59 | { | - | ||||||||||||||||||||||||
60 | return executed 8 times by 1 test: QVariant(QColor::fromHsvF(h, s, v, a));return QVariant(QColor::fromHsvF(h, s, v, a)); Executed by:
executed 8 times by 1 test: return QVariant(QColor::fromHsvF(h, s, v, a)); Executed by:
| 8 | ||||||||||||||||||||||||
61 | } | - | ||||||||||||||||||||||||
62 | - | |||||||||||||||||||||||||
63 | QVariant lighter(const QVariant &var, qreal factor) override | - | ||||||||||||||||||||||||
64 | { | - | ||||||||||||||||||||||||
65 | QColor color = var.value<QColor>(); | - | ||||||||||||||||||||||||
66 | color = color.lighter(int(qRound(factor*100.))); | - | ||||||||||||||||||||||||
67 | return executed 6 times by 1 test: QVariant::fromValue(color);return QVariant::fromValue(color); Executed by:
executed 6 times by 1 test: return QVariant::fromValue(color); Executed by:
| 6 | ||||||||||||||||||||||||
68 | } | - | ||||||||||||||||||||||||
69 | - | |||||||||||||||||||||||||
70 | QVariant darker(const QVariant &var, qreal factor) override | - | ||||||||||||||||||||||||
71 | { | - | ||||||||||||||||||||||||
72 | QColor color = var.value<QColor>(); | - | ||||||||||||||||||||||||
73 | color = color.darker(int(qRound(factor*100.))); | - | ||||||||||||||||||||||||
74 | return executed 184 times by 2 tests: QVariant::fromValue(color);return QVariant::fromValue(color); Executed by:
executed 184 times by 2 tests: return QVariant::fromValue(color); Executed by:
| 184 | ||||||||||||||||||||||||
75 | } | - | ||||||||||||||||||||||||
76 | - | |||||||||||||||||||||||||
77 | QVariant tint(const QVariant &baseVar, const QVariant &tintVar) override | - | ||||||||||||||||||||||||
78 | { | - | ||||||||||||||||||||||||
79 | QColor tintColor = tintVar.value<QColor>(); | - | ||||||||||||||||||||||||
80 | - | |||||||||||||||||||||||||
81 | int tintAlpha = tintColor.alpha(); | - | ||||||||||||||||||||||||
82 | if (tintAlpha == 0xFF
| 2-28 | ||||||||||||||||||||||||
83 | return executed 2 times by 1 test: tintVar;return tintVar; Executed by:
executed 2 times by 1 test: return tintVar; Executed by:
| 2 | ||||||||||||||||||||||||
84 | } else if (tintAlpha == 0x00
| 2-26 | ||||||||||||||||||||||||
85 | return executed 2 times by 1 test: baseVar;return baseVar; Executed by:
executed 2 times by 1 test: return baseVar; Executed by:
| 2 | ||||||||||||||||||||||||
86 | } | - | ||||||||||||||||||||||||
87 | - | |||||||||||||||||||||||||
88 | - | |||||||||||||||||||||||||
89 | QColor baseColor = baseVar.value<QColor>(); | - | ||||||||||||||||||||||||
90 | qreal a = tintColor.alphaF(); | - | ||||||||||||||||||||||||
91 | qreal inv_a = 1.0 - a; | - | ||||||||||||||||||||||||
92 | - | |||||||||||||||||||||||||
93 | qreal r = tintColor.redF() * a + baseColor.redF() * inv_a; | - | ||||||||||||||||||||||||
94 | qreal g = tintColor.greenF() * a + baseColor.greenF() * inv_a; | - | ||||||||||||||||||||||||
95 | qreal b = tintColor.blueF() * a + baseColor.blueF() * inv_a; | - | ||||||||||||||||||||||||
96 | - | |||||||||||||||||||||||||
97 | return executed 26 times by 2 tests: QVariant::fromValue(QColor::fromRgbF(r, g, b, a + inv_a * baseColor.alphaF()));return QVariant::fromValue(QColor::fromRgbF(r, g, b, a + inv_a * baseColor.alphaF())); Executed by:
executed 26 times by 2 tests: return QVariant::fromValue(QColor::fromRgbF(r, g, b, a + inv_a * baseColor.alphaF())); Executed by:
| 26 | ||||||||||||||||||||||||
98 | } | - | ||||||||||||||||||||||||
99 | }; | - | ||||||||||||||||||||||||
100 | class QQuickValueTypeProvider : public QQmlValueTypeProvider | - | ||||||||||||||||||||||||
101 | { | - | ||||||||||||||||||||||||
102 | public: | - | ||||||||||||||||||||||||
103 | - | |||||||||||||||||||||||||
104 | - | |||||||||||||||||||||||||
105 | - | |||||||||||||||||||||||||
106 | - | |||||||||||||||||||||||||
107 | - | |||||||||||||||||||||||||
108 | - | |||||||||||||||||||||||||
109 | - | |||||||||||||||||||||||||
110 | static QVector2D vector2DFromString(const QString &s, bool *ok) | - | ||||||||||||||||||||||||
111 | { | - | ||||||||||||||||||||||||
112 | if (s.count(QLatin1Char(',')) == 1
| 2-20 | ||||||||||||||||||||||||
113 | int index = s.indexOf(QLatin1Char(',')); | - | ||||||||||||||||||||||||
114 | - | |||||||||||||||||||||||||
115 | bool xGood, yGood; | - | ||||||||||||||||||||||||
116 | float xCoord = s.leftRef(index).toFloat(&xGood); | - | ||||||||||||||||||||||||
117 | float yCoord = s.midRef(index + 1).toFloat(&yGood); | - | ||||||||||||||||||||||||
118 | - | |||||||||||||||||||||||||
119 | if (xGood
| 0-2 | ||||||||||||||||||||||||
120 | if (ok
executed 2 times by 1 test: ok = true;*ok = true; Executed by:
executed 2 times by 1 test: *ok = true; Executed by:
| 0-2 | ||||||||||||||||||||||||
121 | return executed 2 times by 1 test: QVector2D(xCoord, yCoord);return QVector2D(xCoord, yCoord); Executed by:
executed 2 times by 1 test: return QVector2D(xCoord, yCoord); Executed by:
| 2 | ||||||||||||||||||||||||
122 | } | - | ||||||||||||||||||||||||
123 | } never executed: end of block | 0 | ||||||||||||||||||||||||
124 | - | |||||||||||||||||||||||||
125 | if (ok
executed 20 times by 5 tests: ok = false;*ok = false; Executed by:
executed 20 times by 5 tests: *ok = false; Executed by:
| 0-20 | ||||||||||||||||||||||||
126 | return executed 20 times by 5 tests: QVector2D();return QVector2D(); Executed by:
executed 20 times by 5 tests: return QVector2D(); Executed by:
| 20 | ||||||||||||||||||||||||
127 | } | - | ||||||||||||||||||||||||
128 | - | |||||||||||||||||||||||||
129 | static QVector3D vector3DFromString(const QString &s, bool *ok) | - | ||||||||||||||||||||||||
130 | { | - | ||||||||||||||||||||||||
131 | if (s.count(QLatin1Char(',')) == 2
| 6-20 | ||||||||||||||||||||||||
132 | int index = s.indexOf(QLatin1Char(',')); | - | ||||||||||||||||||||||||
133 | int index2 = s.indexOf(QLatin1Char(','), index+1); | - | ||||||||||||||||||||||||
134 | - | |||||||||||||||||||||||||
135 | bool xGood, yGood, zGood; | - | ||||||||||||||||||||||||
136 | float xCoord = s.leftRef(index).toFloat(&xGood); | - | ||||||||||||||||||||||||
137 | float yCoord = s.midRef(index + 1, index2 - index - 1).toFloat(&yGood); | - | ||||||||||||||||||||||||
138 | float zCoord = s.midRef(index2 + 1).toFloat(&zGood); | - | ||||||||||||||||||||||||
139 | - | |||||||||||||||||||||||||
140 | if (xGood
| 0-6 | ||||||||||||||||||||||||
141 | if (ok
executed 6 times by 2 tests: ok = true;*ok = true; Executed by:
executed 6 times by 2 tests: *ok = true; Executed by:
| 0-6 | ||||||||||||||||||||||||
142 | return executed 6 times by 2 tests: QVector3D(xCoord, yCoord, zCoord);return QVector3D(xCoord, yCoord, zCoord); Executed by:
executed 6 times by 2 tests: return QVector3D(xCoord, yCoord, zCoord); Executed by:
| 6 | ||||||||||||||||||||||||
143 | } | - | ||||||||||||||||||||||||
144 | } never executed: end of block | 0 | ||||||||||||||||||||||||
145 | - | |||||||||||||||||||||||||
146 | if (ok
executed 20 times by 5 tests: ok = false;*ok = false; Executed by:
executed 20 times by 5 tests: *ok = false; Executed by:
| 0-20 | ||||||||||||||||||||||||
147 | return executed 20 times by 5 tests: QVector3D();return QVector3D(); Executed by:
executed 20 times by 5 tests: return QVector3D(); Executed by:
| 20 | ||||||||||||||||||||||||
148 | } | - | ||||||||||||||||||||||||
149 | - | |||||||||||||||||||||||||
150 | static QVector4D vector4DFromString(const QString &s, bool *ok) | - | ||||||||||||||||||||||||
151 | { | - | ||||||||||||||||||||||||
152 | if (s.count(QLatin1Char(',')) == 3
| 2-20 | ||||||||||||||||||||||||
153 | int index = s.indexOf(QLatin1Char(',')); | - | ||||||||||||||||||||||||
154 | int index2 = s.indexOf(QLatin1Char(','), index+1); | - | ||||||||||||||||||||||||
155 | int index3 = s.indexOf(QLatin1Char(','), index2+1); | - | ||||||||||||||||||||||||
156 | - | |||||||||||||||||||||||||
157 | bool xGood, yGood, zGood, wGood; | - | ||||||||||||||||||||||||
158 | float xCoord = s.leftRef(index).toFloat(&xGood); | - | ||||||||||||||||||||||||
159 | float yCoord = s.midRef(index + 1, index2 - index - 1).toFloat(&yGood); | - | ||||||||||||||||||||||||
160 | float zCoord = s.midRef(index2 + 1, index3 - index2 - 1).toFloat(&zGood); | - | ||||||||||||||||||||||||
161 | float wCoord = s.midRef(index3 + 1).toFloat(&wGood); | - | ||||||||||||||||||||||||
162 | - | |||||||||||||||||||||||||
163 | if (xGood
| 0-2 | ||||||||||||||||||||||||
164 | if (ok
executed 2 times by 1 test: ok = true;*ok = true; Executed by:
executed 2 times by 1 test: *ok = true; Executed by:
| 0-2 | ||||||||||||||||||||||||
165 | return executed 2 times by 1 test: QVector4D(xCoord, yCoord, zCoord, wCoord);return QVector4D(xCoord, yCoord, zCoord, wCoord); Executed by:
executed 2 times by 1 test: return QVector4D(xCoord, yCoord, zCoord, wCoord); Executed by:
| 2 | ||||||||||||||||||||||||
166 | } | - | ||||||||||||||||||||||||
167 | } never executed: end of block | 0 | ||||||||||||||||||||||||
168 | - | |||||||||||||||||||||||||
169 | if (ok
executed 20 times by 5 tests: ok = false;*ok = false; Executed by:
executed 20 times by 5 tests: *ok = false; Executed by:
| 0-20 | ||||||||||||||||||||||||
170 | return executed 20 times by 5 tests: QVector4D();return QVector4D(); Executed by:
executed 20 times by 5 tests: return QVector4D(); Executed by:
| 20 | ||||||||||||||||||||||||
171 | } | - | ||||||||||||||||||||||||
172 | - | |||||||||||||||||||||||||
173 | static QQuaternion quaternionFromString(const QString &s, bool *ok) | - | ||||||||||||||||||||||||
174 | { | - | ||||||||||||||||||||||||
175 | if (s.count(QLatin1Char(',')) == 3
| 2-20 | ||||||||||||||||||||||||
176 | int index = s.indexOf(QLatin1Char(',')); | - | ||||||||||||||||||||||||
177 | int index2 = s.indexOf(QLatin1Char(','), index+1); | - | ||||||||||||||||||||||||
178 | int index3 = s.indexOf(QLatin1Char(','), index2+1); | - | ||||||||||||||||||||||||
179 | - | |||||||||||||||||||||||||
180 | bool sGood, xGood, yGood, zGood; | - | ||||||||||||||||||||||||
181 | qreal sCoord = s.leftRef(index).toDouble(&sGood); | - | ||||||||||||||||||||||||
182 | qreal xCoord = s.midRef(index+1, index2-index-1).toDouble(&xGood); | - | ||||||||||||||||||||||||
183 | qreal yCoord = s.midRef(index2+1, index3-index2-1).toDouble(&yGood); | - | ||||||||||||||||||||||||
184 | qreal zCoord = s.midRef(index3+1).toDouble(&zGood); | - | ||||||||||||||||||||||||
185 | - | |||||||||||||||||||||||||
186 | if (sGood
| 0-2 | ||||||||||||||||||||||||
187 | if (ok
executed 2 times by 1 test: ok = true;*ok = true; Executed by:
executed 2 times by 1 test: *ok = true; Executed by:
| 0-2 | ||||||||||||||||||||||||
188 | return executed 2 times by 1 test: QQuaternion(sCoord, xCoord, yCoord, zCoord);return QQuaternion(sCoord, xCoord, yCoord, zCoord); Executed by:
executed 2 times by 1 test: return QQuaternion(sCoord, xCoord, yCoord, zCoord); Executed by:
| 2 | ||||||||||||||||||||||||
189 | } | - | ||||||||||||||||||||||||
190 | } never executed: end of block | 0 | ||||||||||||||||||||||||
191 | - | |||||||||||||||||||||||||
192 | if (ok
executed 20 times by 5 tests: ok = false;*ok = false; Executed by:
executed 20 times by 5 tests: *ok = false; Executed by:
| 0-20 | ||||||||||||||||||||||||
193 | return executed 20 times by 5 tests: QQuaternion();return QQuaternion(); Executed by:
executed 20 times by 5 tests: return QQuaternion(); Executed by:
| 20 | ||||||||||||||||||||||||
194 | } | - | ||||||||||||||||||||||||
195 | - | |||||||||||||||||||||||||
196 | static QMatrix4x4 matrix4x4FromString(const QString &s, bool *ok) | - | ||||||||||||||||||||||||
197 | { | - | ||||||||||||||||||||||||
198 | if (s.count(QLatin1Char(',')) == 15
| 2-20 | ||||||||||||||||||||||||
199 | float matValues[16]; | - | ||||||||||||||||||||||||
200 | bool vOK = true; | - | ||||||||||||||||||||||||
201 | QStringRef mutableStr(&s); | - | ||||||||||||||||||||||||
202 | for (int i = 0; vOK
| 0-34 | ||||||||||||||||||||||||
203 | int cidx = mutableStr.indexOf(QLatin1Char(',')); | - | ||||||||||||||||||||||||
204 | matValues[i] = mutableStr.left(cidx).toDouble(&vOK); | - | ||||||||||||||||||||||||
205 | mutableStr = mutableStr.mid(cidx + 1); | - | ||||||||||||||||||||||||
206 | } executed 32 times by 1 test: end of block Executed by:
| 32 | ||||||||||||||||||||||||
207 | - | |||||||||||||||||||||||||
208 | if (vOK
| 0-2 | ||||||||||||||||||||||||
209 | if (ok
executed 2 times by 1 test: ok = true;*ok = true; Executed by:
executed 2 times by 1 test: *ok = true; Executed by:
| 0-2 | ||||||||||||||||||||||||
210 | return executed 2 times by 1 test: QMatrix4x4(matValues);return QMatrix4x4(matValues); Executed by:
executed 2 times by 1 test: return QMatrix4x4(matValues); Executed by:
| 2 | ||||||||||||||||||||||||
211 | } | - | ||||||||||||||||||||||||
212 | } never executed: end of block | 0 | ||||||||||||||||||||||||
213 | - | |||||||||||||||||||||||||
214 | if (ok
executed 20 times by 5 tests: ok = false;*ok = false; Executed by:
executed 20 times by 5 tests: *ok = false; Executed by:
| 0-20 | ||||||||||||||||||||||||
215 | return executed 20 times by 5 tests: QMatrix4x4();return QMatrix4x4(); Executed by:
executed 20 times by 5 tests: return QMatrix4x4(); Executed by:
| 20 | ||||||||||||||||||||||||
216 | } | - | ||||||||||||||||||||||||
217 | - | |||||||||||||||||||||||||
218 | static QFont fontFromObject(QQmlV4Handle object, QV4::ExecutionEngine *v4, bool *ok) | - | ||||||||||||||||||||||||
219 | { | - | ||||||||||||||||||||||||
220 | if (ok
| 0-60 | ||||||||||||||||||||||||
221 | * executed 60 times by 3 tests: ok = false;*ok = false; Executed by:
executed 60 times by 3 tests: *ok = false; Executed by:
| 60 | ||||||||||||||||||||||||
222 | QFont retn; | - | ||||||||||||||||||||||||
223 | QV4::Scope scope(v4); | - | ||||||||||||||||||||||||
224 | QV4::ScopedObject obj(scope, object); | - | ||||||||||||||||||||||||
225 | if (!obj
| 0-60 | ||||||||||||||||||||||||
226 | if (ok
| 0 | ||||||||||||||||||||||||
227 | * never executed: ok = false;*ok = false; never executed: *ok = false; | 0 | ||||||||||||||||||||||||
228 | return never executed: retn;return retn; never executed: return retn; | 0 | ||||||||||||||||||||||||
229 | } | - | ||||||||||||||||||||||||
230 | - | |||||||||||||||||||||||||
231 | QV4::ScopedString s(scope); | - | ||||||||||||||||||||||||
232 | - | |||||||||||||||||||||||||
233 | QV4::ScopedValue vbold(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "bold")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "bold" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
234 | QV4::ScopedValue vcap(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "capitalization")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "capitalization" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
235 | QV4::ScopedValue vfam(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "family")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "family" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
236 | QV4::ScopedValue vstyle(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "styleName")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "styleName" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
237 | QV4::ScopedValue vital(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "italic")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "italic" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
238 | QV4::ScopedValue vlspac(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "letterSpacing")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "letterSpacing" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
239 | QV4::ScopedValue vpixsz(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "pixelSize")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "pixelSize" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
240 | QV4::ScopedValue vpntsz(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "pointSize")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "pointSize" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
241 | QV4::ScopedValue vstrk(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "strikeout")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "strikeout" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
242 | QV4::ScopedValue vundl(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "underline")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "underline" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
243 | QV4::ScopedValue vweight(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "weight")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "weight" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
244 | QV4::ScopedValue vwspac(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "wordSpacing")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "wordSpacing" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
245 | QV4::ScopedValue vhint(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "hintingPreference")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "hintingPreference" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
246 | QV4::ScopedValue vkerning(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "kerning")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "kerning" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
247 | QV4::ScopedValue vshaping(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "preferShaping")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "preferShaping" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 60 times by 3 tests: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 60 times by 3 tests: }())))));return qstring_literal_temp; Executed by:
| 60 | ||||||||||||||||||||||||
248 | - | |||||||||||||||||||||||||
249 | - | |||||||||||||||||||||||||
250 | if (vbold->isBoolean()
| 0-60 | ||||||||||||||||||||||||
251 | retn.setBold(vbold->booleanValue()); | - | ||||||||||||||||||||||||
252 | if (ok
never executed: ok = true;*ok = true; never executed: *ok = true; | 0 | ||||||||||||||||||||||||
253 | } never executed: end of block | 0 | ||||||||||||||||||||||||
254 | if (vcap->isInt32()
| 0-60 | ||||||||||||||||||||||||
255 | retn.setCapitalization(static_cast<QFont::Capitalization>(vcap->integerValue())); | - | ||||||||||||||||||||||||
256 | if (ok
never executed: ok = true;*ok = true; never executed: *ok = true; | 0 | ||||||||||||||||||||||||
257 | } never executed: end of block | 0 | ||||||||||||||||||||||||
258 | if (vfam->isString()
| 8-52 | ||||||||||||||||||||||||
259 | retn.setFamily(vfam->toQString()); | - | ||||||||||||||||||||||||
260 | if (ok
executed 52 times by 2 tests: ok = true;*ok = true; Executed by:
executed 52 times by 2 tests: *ok = true; Executed by:
| 0-52 | ||||||||||||||||||||||||
261 | } executed 52 times by 2 tests: end of block Executed by:
| 52 | ||||||||||||||||||||||||
262 | if (vstyle->isString()
| 0-60 | ||||||||||||||||||||||||
263 | retn.setStyleName(vstyle->toQString()); | - | ||||||||||||||||||||||||
264 | if (ok
never executed: ok = true;*ok = true; never executed: *ok = true; | 0 | ||||||||||||||||||||||||
265 | } never executed: end of block | 0 | ||||||||||||||||||||||||
266 | if (vital->isBoolean()
| 24-36 | ||||||||||||||||||||||||
267 | retn.setItalic(vital->booleanValue()); | - | ||||||||||||||||||||||||
268 | if (ok
executed 24 times by 2 tests: ok = true;*ok = true; Executed by:
executed 24 times by 2 tests: *ok = true; Executed by:
| 0-24 | ||||||||||||||||||||||||
269 | } executed 24 times by 2 tests: end of block Executed by:
| 24 | ||||||||||||||||||||||||
270 | if (vlspac->isNumber()
| 0-60 | ||||||||||||||||||||||||
271 | retn.setLetterSpacing(QFont::AbsoluteSpacing, vlspac->asDouble()); | - | ||||||||||||||||||||||||
272 | if (ok
never executed: ok = true;*ok = true; never executed: *ok = true; | 0 | ||||||||||||||||||||||||
273 | } never executed: end of block | 0 | ||||||||||||||||||||||||
274 | if (vpixsz->isInt32()
| 6-54 | ||||||||||||||||||||||||
275 | retn.setPixelSize(vpixsz->integerValue()); | - | ||||||||||||||||||||||||
276 | if (ok
executed 6 times by 1 test: ok = true;*ok = true; Executed by:
executed 6 times by 1 test: *ok = true; Executed by:
| 0-6 | ||||||||||||||||||||||||
277 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||||||||||||||
278 | if (vpntsz->isNumber()
| 8-52 | ||||||||||||||||||||||||
279 | retn.setPointSize(vpntsz->asDouble()); | - | ||||||||||||||||||||||||
280 | if (ok
executed 52 times by 2 tests: ok = true;*ok = true; Executed by:
executed 52 times by 2 tests: *ok = true; Executed by:
| 0-52 | ||||||||||||||||||||||||
281 | } executed 52 times by 2 tests: end of block Executed by:
| 52 | ||||||||||||||||||||||||
282 | if (vstrk->isBoolean()
| 0-60 | ||||||||||||||||||||||||
283 | retn.setStrikeOut(vstrk->booleanValue()); | - | ||||||||||||||||||||||||
284 | if (ok
never executed: ok = true;*ok = true; never executed: *ok = true; | 0 | ||||||||||||||||||||||||
285 | } never executed: end of block | 0 | ||||||||||||||||||||||||
286 | if (vundl->isBoolean()
| 0-60 | ||||||||||||||||||||||||
287 | retn.setUnderline(vundl->booleanValue()); | - | ||||||||||||||||||||||||
288 | if (ok
never executed: ok = true;*ok = true; never executed: *ok = true; | 0 | ||||||||||||||||||||||||
289 | } never executed: end of block | 0 | ||||||||||||||||||||||||
290 | if (vweight->isInt32()
| 20-40 | ||||||||||||||||||||||||
291 | retn.setWeight(static_cast<QFont::Weight>(vweight->integerValue())); | - | ||||||||||||||||||||||||
292 | if (ok
executed 40 times by 2 tests: ok = true;*ok = true; Executed by:
executed 40 times by 2 tests: *ok = true; Executed by:
| 0-40 | ||||||||||||||||||||||||
293 | } executed 40 times by 2 tests: end of block Executed by:
| 40 | ||||||||||||||||||||||||
294 | if (vwspac->isNumber()
| 0-60 | ||||||||||||||||||||||||
295 | retn.setWordSpacing(vwspac->asDouble()); | - | ||||||||||||||||||||||||
296 | if (ok
never executed: ok = true;*ok = true; never executed: *ok = true; | 0 | ||||||||||||||||||||||||
297 | } never executed: end of block | 0 | ||||||||||||||||||||||||
298 | if (vhint->isInt32()
| 0-60 | ||||||||||||||||||||||||
299 | retn.setHintingPreference(static_cast<QFont::HintingPreference>(vhint->integerValue())); | - | ||||||||||||||||||||||||
300 | if (ok
never executed: ok = true;*ok = true; never executed: *ok = true; | 0 | ||||||||||||||||||||||||
301 | } never executed: end of block | 0 | ||||||||||||||||||||||||
302 | if (vkerning->isBoolean()
| 0-60 | ||||||||||||||||||||||||
303 | retn.setKerning(vkerning->booleanValue()); | - | ||||||||||||||||||||||||
304 | if (ok
never executed: ok = true;*ok = true; never executed: *ok = true; | 0 | ||||||||||||||||||||||||
305 | } never executed: end of block | 0 | ||||||||||||||||||||||||
306 | if (vshaping->isBoolean()
| 0-60 | ||||||||||||||||||||||||
307 | bool enable = vshaping->booleanValue(); | - | ||||||||||||||||||||||||
308 | if (enable
| 0 | ||||||||||||||||||||||||
309 | retn.setStyleStrategy(static_cast<QFont::StyleStrategy>(retn.styleStrategy() & ~QFont::PreferNoShaping)); never executed: retn.setStyleStrategy(static_cast<QFont::StyleStrategy>(retn.styleStrategy() & ~QFont::PreferNoShaping)); | 0 | ||||||||||||||||||||||||
310 | else | - | ||||||||||||||||||||||||
311 | retn.setStyleStrategy(static_cast<QFont::StyleStrategy>(retn.styleStrategy() | QFont::PreferNoShaping)); never executed: retn.setStyleStrategy(static_cast<QFont::StyleStrategy>(retn.styleStrategy() | QFont::PreferNoShaping)); | 0 | ||||||||||||||||||||||||
312 | } | - | ||||||||||||||||||||||||
313 | - | |||||||||||||||||||||||||
314 | return executed 60 times by 3 tests: retn;return retn; Executed by:
executed 60 times by 3 tests: return retn; Executed by:
| 60 | ||||||||||||||||||||||||
315 | } | - | ||||||||||||||||||||||||
316 | - | |||||||||||||||||||||||||
317 | static QMatrix4x4 matrix4x4FromObject(QQmlV4Handle object, QV4::ExecutionEngine *v4, bool *ok) | - | ||||||||||||||||||||||||
318 | { | - | ||||||||||||||||||||||||
319 | if (ok
| 0-18 | ||||||||||||||||||||||||
320 | * executed 18 times by 2 tests: ok = false;*ok = false; Executed by:
executed 18 times by 2 tests: *ok = false; Executed by:
| 18 | ||||||||||||||||||||||||
321 | QV4::Scope scope(v4); | - | ||||||||||||||||||||||||
322 | QV4::ScopedArrayObject array(scope, object); | - | ||||||||||||||||||||||||
323 | if (!array
| 2-16 | ||||||||||||||||||||||||
324 | return executed 2 times by 1 test: QMatrix4x4();return QMatrix4x4(); Executed by:
executed 2 times by 1 test: return QMatrix4x4(); Executed by:
| 2 | ||||||||||||||||||||||||
325 | - | |||||||||||||||||||||||||
326 | if (array->getLength() != 16
| 2-14 | ||||||||||||||||||||||||
327 | return executed 2 times by 1 test: QMatrix4x4();return QMatrix4x4(); Executed by:
executed 2 times by 1 test: return QMatrix4x4(); Executed by:
| 2 | ||||||||||||||||||||||||
328 | - | |||||||||||||||||||||||||
329 | float matVals[16]; | - | ||||||||||||||||||||||||
330 | QV4::ScopedValue v(scope); | - | ||||||||||||||||||||||||
331 | for (quint32 i = 0; i < 16
| 14-224 | ||||||||||||||||||||||||
332 | v = array->get(i); | - | ||||||||||||||||||||||||
333 | if (!v->isNumber()
| 0-224 | ||||||||||||||||||||||||
334 | return never executed: QMatrix4x4();return QMatrix4x4(); never executed: return QMatrix4x4(); | 0 | ||||||||||||||||||||||||
335 | matVals[i] = v->asDouble(); | - | ||||||||||||||||||||||||
336 | } executed 224 times by 2 tests: end of block Executed by:
| 224 | ||||||||||||||||||||||||
337 | - | |||||||||||||||||||||||||
338 | if (ok
executed 14 times by 2 tests: ok = true;*ok = true; Executed by:
executed 14 times by 2 tests: *ok = true; Executed by:
| 0-14 | ||||||||||||||||||||||||
339 | return executed 14 times by 2 tests: QMatrix4x4(matVals);return QMatrix4x4(matVals); Executed by:
executed 14 times by 2 tests: return QMatrix4x4(matVals); Executed by:
| 14 | ||||||||||||||||||||||||
340 | } | - | ||||||||||||||||||||||||
341 | - | |||||||||||||||||||||||||
342 | const QMetaObject *getMetaObjectForMetaType(int type) override | - | ||||||||||||||||||||||||
343 | { | - | ||||||||||||||||||||||||
344 | switch (type) { | - | ||||||||||||||||||||||||
345 | case executed 3248 times by 20 tests: QMetaType::QColor:case QMetaType::QColor: Executed by:
executed 3248 times by 20 tests: case QMetaType::QColor: Executed by:
| 3248 | ||||||||||||||||||||||||
346 | return executed 3248 times by 20 tests: &QQuickColorValueType::staticMetaObject;return &QQuickColorValueType::staticMetaObject; Executed by:
executed 3248 times by 20 tests: return &QQuickColorValueType::staticMetaObject; Executed by:
| 3248 | ||||||||||||||||||||||||
347 | case executed 6131 times by 24 tests: QMetaType::QFont:case QMetaType::QFont: Executed by:
executed 6131 times by 24 tests: case QMetaType::QFont: Executed by:
| 6131 | ||||||||||||||||||||||||
348 | return executed 6131 times by 24 tests: &QQuickFontValueType::staticMetaObject;return &QQuickFontValueType::staticMetaObject; Executed by:
executed 6131 times by 24 tests: return &QQuickFontValueType::staticMetaObject; Executed by:
| 6131 | ||||||||||||||||||||||||
349 | case executed 228 times by 3 tests: QMetaType::QVector2D:case QMetaType::QVector2D: Executed by:
executed 228 times by 3 tests: case QMetaType::QVector2D: Executed by:
| 228 | ||||||||||||||||||||||||
350 | return executed 228 times by 3 tests: &QQuickVector2DValueType::staticMetaObject;return &QQuickVector2DValueType::staticMetaObject; Executed by:
executed 228 times by 3 tests: return &QQuickVector2DValueType::staticMetaObject; Executed by:
| 228 | ||||||||||||||||||||||||
351 | case executed 2512 times by 9 tests: QMetaType::QVector3D:case QMetaType::QVector3D: Executed by:
executed 2512 times by 9 tests: case QMetaType::QVector3D: Executed by:
| 2512 | ||||||||||||||||||||||||
352 | return executed 2512 times by 9 tests: &QQuickVector3DValueType::staticMetaObject;return &QQuickVector3DValueType::staticMetaObject; Executed by:
executed 2512 times by 9 tests: return &QQuickVector3DValueType::staticMetaObject; Executed by:
| 2512 | ||||||||||||||||||||||||
353 | case executed 280 times by 3 tests: QMetaType::QVector4D:case QMetaType::QVector4D: Executed by:
executed 280 times by 3 tests: case QMetaType::QVector4D: Executed by:
| 280 | ||||||||||||||||||||||||
354 | return executed 280 times by 3 tests: &QQuickVector4DValueType::staticMetaObject;return &QQuickVector4DValueType::staticMetaObject; Executed by:
executed 280 times by 3 tests: return &QQuickVector4DValueType::staticMetaObject; Executed by:
| 280 | ||||||||||||||||||||||||
355 | case executed 124 times by 3 tests: QMetaType::QQuaternion:case QMetaType::QQuaternion: Executed by:
executed 124 times by 3 tests: case QMetaType::QQuaternion: Executed by:
| 124 | ||||||||||||||||||||||||
356 | return executed 124 times by 3 tests: &QQuickQuaternionValueType::staticMetaObject;return &QQuickQuaternionValueType::staticMetaObject; Executed by:
executed 124 times by 3 tests: return &QQuickQuaternionValueType::staticMetaObject; Executed by:
| 124 | ||||||||||||||||||||||||
357 | case executed 338 times by 4 tests: QMetaType::QMatrix4x4:case QMetaType::QMatrix4x4: Executed by:
executed 338 times by 4 tests: case QMetaType::QMatrix4x4: Executed by:
| 338 | ||||||||||||||||||||||||
358 | return executed 338 times by 4 tests: &QQuickMatrix4x4ValueType::staticMetaObject;return &QQuickMatrix4x4ValueType::staticMetaObject; Executed by:
executed 338 times by 4 tests: return &QQuickMatrix4x4ValueType::staticMetaObject; Executed by:
| 338 | ||||||||||||||||||||||||
359 | default executed 334581 times by 123 tests: :default: Executed by:
executed 334581 times by 123 tests: default: Executed by:
| 334581 | ||||||||||||||||||||||||
360 | break; executed 334581 times by 123 tests: break; Executed by:
| 334581 | ||||||||||||||||||||||||
361 | } | - | ||||||||||||||||||||||||
362 | - | |||||||||||||||||||||||||
363 | return executed 334581 times by 123 tests: nullptr;return nullptr; Executed by:
executed 334581 times by 123 tests: return nullptr; Executed by:
| 334581 | ||||||||||||||||||||||||
364 | } | - | ||||||||||||||||||||||||
365 | - | |||||||||||||||||||||||||
366 | bool init(int type, QVariant& dst) override | - | ||||||||||||||||||||||||
367 | { | - | ||||||||||||||||||||||||
368 | switch (type) { | - | ||||||||||||||||||||||||
369 | case executed 198 times by 11 tests: QMetaType::QColor:case QMetaType::QColor: Executed by:
executed 198 times by 11 tests: case QMetaType::QColor: Executed by:
| 198 | ||||||||||||||||||||||||
370 | dst.setValue<QColor>(QColor()); | - | ||||||||||||||||||||||||
371 | return executed 198 times by 11 tests: true;return true; Executed by:
executed 198 times by 11 tests: return true; Executed by:
| 198 | ||||||||||||||||||||||||
372 | case executed 24 times by 3 tests: QMetaType::QFont:case QMetaType::QFont: Executed by:
executed 24 times by 3 tests: case QMetaType::QFont: Executed by:
| 24 | ||||||||||||||||||||||||
373 | dst.setValue<QFont>(QFont()); | - | ||||||||||||||||||||||||
374 | return executed 24 times by 3 tests: true;return true; Executed by:
executed 24 times by 3 tests: return true; Executed by:
| 24 | ||||||||||||||||||||||||
375 | case executed 12 times by 1 test: QMetaType::QVector2D:case QMetaType::QVector2D: Executed by:
executed 12 times by 1 test: case QMetaType::QVector2D: Executed by:
| 12 | ||||||||||||||||||||||||
376 | dst.setValue<QVector2D>(QVector2D()); | - | ||||||||||||||||||||||||
377 | return executed 12 times by 1 test: true;return true; Executed by:
executed 12 times by 1 test: return true; Executed by:
| 12 | ||||||||||||||||||||||||
378 | case executed 10 times by 1 test: QMetaType::QVector3D:case QMetaType::QVector3D: Executed by:
executed 10 times by 1 test: case QMetaType::QVector3D: Executed by:
| 10 | ||||||||||||||||||||||||
379 | dst.setValue<QVector3D>(QVector3D()); | - | ||||||||||||||||||||||||
380 | return executed 10 times by 1 test: true;return true; Executed by:
executed 10 times by 1 test: return true; Executed by:
| 10 | ||||||||||||||||||||||||
381 | case executed 14 times by 1 test: QMetaType::QVector4D:case QMetaType::QVector4D: Executed by:
executed 14 times by 1 test: case QMetaType::QVector4D: Executed by:
| 14 | ||||||||||||||||||||||||
382 | dst.setValue<QVector4D>(QVector4D()); | - | ||||||||||||||||||||||||
383 | return executed 14 times by 1 test: true;return true; Executed by:
executed 14 times by 1 test: return true; Executed by:
| 14 | ||||||||||||||||||||||||
384 | case executed 8 times by 1 test: QMetaType::QQuaternion:case QMetaType::QQuaternion: Executed by:
executed 8 times by 1 test: case QMetaType::QQuaternion: Executed by:
| 8 | ||||||||||||||||||||||||
385 | dst.setValue<QQuaternion>(QQuaternion()); | - | ||||||||||||||||||||||||
386 | return executed 8 times by 1 test: true;return true; Executed by:
executed 8 times by 1 test: return true; Executed by:
| 8 | ||||||||||||||||||||||||
387 | case executed 16 times by 1 test: QMetaType::QMatrix4x4:case QMetaType::QMatrix4x4: Executed by:
executed 16 times by 1 test: case QMetaType::QMatrix4x4: Executed by:
| 16 | ||||||||||||||||||||||||
388 | dst.setValue<QMatrix4x4>(QMatrix4x4()); | - | ||||||||||||||||||||||||
389 | return executed 16 times by 1 test: true;return true; Executed by:
executed 16 times by 1 test: return true; Executed by:
| 16 | ||||||||||||||||||||||||
390 | default never executed: :default: never executed: break;default: never executed: break; | 0 | ||||||||||||||||||||||||
391 | } | - | ||||||||||||||||||||||||
392 | - | |||||||||||||||||||||||||
393 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||||||||
394 | } | - | ||||||||||||||||||||||||
395 | - | |||||||||||||||||||||||||
396 | bool create(int type, int argc, const void *argv[], QVariant *v) override | - | ||||||||||||||||||||||||
397 | { | - | ||||||||||||||||||||||||
398 | switch (type) { | - | ||||||||||||||||||||||||
399 | case never executed: QMetaType::QFont:case QMetaType::QFont: never executed: case QMetaType::QFont: | 0 | ||||||||||||||||||||||||
400 | break; never executed: break; | 0 | ||||||||||||||||||||||||
401 | case executed 52 times by 3 tests: QMetaType::QVector2D:case QMetaType::QVector2D: Executed by:
executed 52 times by 3 tests: case QMetaType::QVector2D: Executed by:
| 52 | ||||||||||||||||||||||||
402 | if (argc == 1
| 0-52 | ||||||||||||||||||||||||
403 | const float *xy = reinterpret_cast<const float*>(argv[0]); | - | ||||||||||||||||||||||||
404 | QVector2D v2(xy[0], xy[1]); | - | ||||||||||||||||||||||||
405 | *v = QVariant(v2); | - | ||||||||||||||||||||||||
406 | return executed 52 times by 3 tests: true;return true; Executed by:
executed 52 times by 3 tests: return true; Executed by:
| 52 | ||||||||||||||||||||||||
407 | } | - | ||||||||||||||||||||||||
408 | break; never executed: break; | 0 | ||||||||||||||||||||||||
409 | case executed 84 times by 5 tests: QMetaType::QVector3D:case QMetaType::QVector3D: Executed by:
executed 84 times by 5 tests: case QMetaType::QVector3D: Executed by:
| 84 | ||||||||||||||||||||||||
410 | if (argc == 1
| 0-84 | ||||||||||||||||||||||||
411 | const float *xyz = reinterpret_cast<const float*>(argv[0]); | - | ||||||||||||||||||||||||
412 | QVector3D v3(xyz[0], xyz[1], xyz[2]); | - | ||||||||||||||||||||||||
413 | *v = QVariant(v3); | - | ||||||||||||||||||||||||
414 | return executed 84 times by 5 tests: true;return true; Executed by:
executed 84 times by 5 tests: return true; Executed by:
| 84 | ||||||||||||||||||||||||
415 | } | - | ||||||||||||||||||||||||
416 | break; never executed: break; | 0 | ||||||||||||||||||||||||
417 | case executed 78 times by 3 tests: QMetaType::QVector4D:case QMetaType::QVector4D: Executed by:
executed 78 times by 3 tests: case QMetaType::QVector4D: Executed by:
| 78 | ||||||||||||||||||||||||
418 | if (argc == 1
| 0-78 | ||||||||||||||||||||||||
419 | const float *xyzw = reinterpret_cast<const float*>(argv[0]); | - | ||||||||||||||||||||||||
420 | QVector4D v4(xyzw[0], xyzw[1], xyzw[2], xyzw[3]); | - | ||||||||||||||||||||||||
421 | *v = QVariant(v4); | - | ||||||||||||||||||||||||
422 | return executed 78 times by 3 tests: true;return true; Executed by:
executed 78 times by 3 tests: return true; Executed by:
| 78 | ||||||||||||||||||||||||
423 | } | - | ||||||||||||||||||||||||
424 | break; never executed: break; | 0 | ||||||||||||||||||||||||
425 | case executed 18 times by 2 tests: QMetaType::QQuaternion:case QMetaType::QQuaternion: Executed by:
executed 18 times by 2 tests: case QMetaType::QQuaternion: Executed by:
| 18 | ||||||||||||||||||||||||
426 | if (argc == 1
| 0-18 | ||||||||||||||||||||||||
427 | const qreal *sxyz = reinterpret_cast<const qreal*>(argv[0]); | - | ||||||||||||||||||||||||
428 | QQuaternion q(sxyz[0], sxyz[1], sxyz[2], sxyz[3]); | - | ||||||||||||||||||||||||
429 | *v = QVariant(q); | - | ||||||||||||||||||||||||
430 | return executed 18 times by 2 tests: true;return true; Executed by:
executed 18 times by 2 tests: return true; Executed by:
| 18 | ||||||||||||||||||||||||
431 | } | - | ||||||||||||||||||||||||
432 | break; never executed: break; | 0 | ||||||||||||||||||||||||
433 | case executed 56 times by 4 tests: QMetaType::QMatrix4x4:case QMetaType::QMatrix4x4: Executed by:
executed 56 times by 4 tests: case QMetaType::QMatrix4x4: Executed by:
| 56 | ||||||||||||||||||||||||
434 | if (argc == 0
| 0-56 | ||||||||||||||||||||||||
435 | QMatrix4x4 m; | - | ||||||||||||||||||||||||
436 | *v = QVariant(m); | - | ||||||||||||||||||||||||
437 | return never executed: true;return true; never executed: return true; | 0 | ||||||||||||||||||||||||
438 | } else if (argc == 1
| 0-56 | ||||||||||||||||||||||||
439 | const qreal *vals = reinterpret_cast<const qreal*>(argv[0]); | - | ||||||||||||||||||||||||
440 | QMatrix4x4 m(vals[0], vals[1], vals[2], vals[3], | - | ||||||||||||||||||||||||
441 | vals[4], vals[5], vals[6], vals[7], | - | ||||||||||||||||||||||||
442 | vals[8], vals[9], vals[10], vals[11], | - | ||||||||||||||||||||||||
443 | vals[12], vals[13], vals[14], vals[15]); | - | ||||||||||||||||||||||||
444 | *v = QVariant(m); | - | ||||||||||||||||||||||||
445 | return executed 56 times by 4 tests: true;return true; Executed by:
executed 56 times by 4 tests: return true; Executed by:
| 56 | ||||||||||||||||||||||||
446 | } | - | ||||||||||||||||||||||||
447 | break; never executed: break; | 0 | ||||||||||||||||||||||||
448 | default never executed: :default: never executed: break;default: never executed: break; | 0 | ||||||||||||||||||||||||
449 | } | - | ||||||||||||||||||||||||
450 | - | |||||||||||||||||||||||||
451 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||||||||
452 | } | - | ||||||||||||||||||||||||
453 | - | |||||||||||||||||||||||||
454 | template<typename T> | - | ||||||||||||||||||||||||
455 | bool createFromStringTyped(void *data, size_t dataSize, T initValue) | - | ||||||||||||||||||||||||
456 | { | - | ||||||||||||||||||||||||
457 | ((dataSize >= sizeof(T)) ? static_cast<void>(0) : qt_assert("dataSize >= sizeof(T)", __FILE__, 516)); | - | ||||||||||||||||||||||||
458 | T *t = reinterpret_cast<T *>(data); | - | ||||||||||||||||||||||||
459 | new (t) T(initValue); | - | ||||||||||||||||||||||||
460 | return never executed: true;return true; never executed: return true; | 0 | ||||||||||||||||||||||||
461 | } | - | ||||||||||||||||||||||||
462 | - | |||||||||||||||||||||||||
463 | bool createFromString(int type, const QString &s, void *data, size_t dataSize) override | - | ||||||||||||||||||||||||
464 | { | - | ||||||||||||||||||||||||
465 | bool ok = false; | - | ||||||||||||||||||||||||
466 | - | |||||||||||||||||||||||||
467 | switch (type) { | - | ||||||||||||||||||||||||
468 | case never executed: QMetaType::QColor:case QMetaType::QColor: never executed: case QMetaType::QColor: | 0 | ||||||||||||||||||||||||
469 | return never executed: createFromStringTyped<QColor>(data, dataSize, QColor(s));return createFromStringTyped<QColor>(data, dataSize, QColor(s)); never executed: return createFromStringTyped<QColor>(data, dataSize, QColor(s)); | 0 | ||||||||||||||||||||||||
470 | case never executed: QMetaType::QVector2D:case QMetaType::QVector2D: never executed: case QMetaType::QVector2D: | 0 | ||||||||||||||||||||||||
471 | return never executed: createFromStringTyped<QVector2D>(data, dataSize, vector2DFromString(s, &ok));return createFromStringTyped<QVector2D>(data, dataSize, vector2DFromString(s, &ok)); never executed: return createFromStringTyped<QVector2D>(data, dataSize, vector2DFromString(s, &ok)); | 0 | ||||||||||||||||||||||||
472 | case never executed: QMetaType::QVector3D:case QMetaType::QVector3D: never executed: case QMetaType::QVector3D: | 0 | ||||||||||||||||||||||||
473 | return never executed: createFromStringTyped<QVector3D>(data, dataSize, vector3DFromString(s, &ok));return createFromStringTyped<QVector3D>(data, dataSize, vector3DFromString(s, &ok)); never executed: return createFromStringTyped<QVector3D>(data, dataSize, vector3DFromString(s, &ok)); | 0 | ||||||||||||||||||||||||
474 | case never executed: QMetaType::QVector4D:case QMetaType::QVector4D: never executed: case QMetaType::QVector4D: | 0 | ||||||||||||||||||||||||
475 | return never executed: createFromStringTyped<QVector4D>(data, dataSize, vector4DFromString(s, &ok));return createFromStringTyped<QVector4D>(data, dataSize, vector4DFromString(s, &ok)); never executed: return createFromStringTyped<QVector4D>(data, dataSize, vector4DFromString(s, &ok)); | 0 | ||||||||||||||||||||||||
476 | case never executed: QMetaType::QQuaternion:case QMetaType::QQuaternion: never executed: case QMetaType::QQuaternion: | 0 | ||||||||||||||||||||||||
477 | return never executed: createFromStringTyped<QQuaternion>(data, dataSize, quaternionFromString(s, &ok));return createFromStringTyped<QQuaternion>(data, dataSize, quaternionFromString(s, &ok)); never executed: return createFromStringTyped<QQuaternion>(data, dataSize, quaternionFromString(s, &ok)); | 0 | ||||||||||||||||||||||||
478 | case never executed: QMetaType::QMatrix4x4:case QMetaType::QMatrix4x4: never executed: case QMetaType::QMatrix4x4: | 0 | ||||||||||||||||||||||||
479 | return never executed: createFromStringTyped<QMatrix4x4>(data, dataSize, matrix4x4FromString(s, &ok));return createFromStringTyped<QMatrix4x4>(data, dataSize, matrix4x4FromString(s, &ok)); never executed: return createFromStringTyped<QMatrix4x4>(data, dataSize, matrix4x4FromString(s, &ok)); | 0 | ||||||||||||||||||||||||
480 | default never executed: :default: never executed: break;default: never executed: break; | 0 | ||||||||||||||||||||||||
481 | } | - | ||||||||||||||||||||||||
482 | - | |||||||||||||||||||||||||
483 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||||||||
484 | } | - | ||||||||||||||||||||||||
485 | - | |||||||||||||||||||||||||
486 | bool createStringFrom(int type, const void *data, QString *s) override | - | ||||||||||||||||||||||||
487 | { | - | ||||||||||||||||||||||||
488 | if (type == QMetaType::QColor
| 0 | ||||||||||||||||||||||||
489 | const QColor *color = reinterpret_cast<const QColor *>(data); | - | ||||||||||||||||||||||||
490 | new (s) QString(QVariant(*color).toString()); | - | ||||||||||||||||||||||||
491 | return never executed: true;return true; never executed: return true; | 0 | ||||||||||||||||||||||||
492 | } | - | ||||||||||||||||||||||||
493 | - | |||||||||||||||||||||||||
494 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||||||||
495 | } | - | ||||||||||||||||||||||||
496 | - | |||||||||||||||||||||||||
497 | bool variantFromString(const QString &s, QVariant *v) override | - | ||||||||||||||||||||||||
498 | { | - | ||||||||||||||||||||||||
499 | QColor c(s); | - | ||||||||||||||||||||||||
500 | if (c.isValid()
| 6-20 | ||||||||||||||||||||||||
501 | *v = QVariant::fromValue(c); | - | ||||||||||||||||||||||||
502 | return executed 6 times by 2 tests: true;return true; Executed by:
executed 6 times by 2 tests: return true; Executed by:
| 6 | ||||||||||||||||||||||||
503 | } | - | ||||||||||||||||||||||||
504 | - | |||||||||||||||||||||||||
505 | bool ok = false; | - | ||||||||||||||||||||||||
506 | - | |||||||||||||||||||||||||
507 | QVector2D v2 = vector2DFromString(s, &ok); | - | ||||||||||||||||||||||||
508 | if (ok
| 0-20 | ||||||||||||||||||||||||
509 | *v = QVariant::fromValue(v2); | - | ||||||||||||||||||||||||
510 | return never executed: true;return true; never executed: return true; | 0 | ||||||||||||||||||||||||
511 | } | - | ||||||||||||||||||||||||
512 | - | |||||||||||||||||||||||||
513 | QVector3D v3 = vector3DFromString(s, &ok); | - | ||||||||||||||||||||||||
514 | if (ok
| 0-20 | ||||||||||||||||||||||||
515 | *v = QVariant::fromValue(v3); | - | ||||||||||||||||||||||||
516 | return never executed: true;return true; never executed: return true; | 0 | ||||||||||||||||||||||||
517 | } | - | ||||||||||||||||||||||||
518 | - | |||||||||||||||||||||||||
519 | QVector4D v4 = vector4DFromString(s, &ok); | - | ||||||||||||||||||||||||
520 | if (ok
| 0-20 | ||||||||||||||||||||||||
521 | *v = QVariant::fromValue(v4); | - | ||||||||||||||||||||||||
522 | return never executed: true;return true; never executed: return true; | 0 | ||||||||||||||||||||||||
523 | } | - | ||||||||||||||||||||||||
524 | - | |||||||||||||||||||||||||
525 | QQuaternion q = quaternionFromString(s, &ok); | - | ||||||||||||||||||||||||
526 | if (ok
| 0-20 | ||||||||||||||||||||||||
527 | *v = QVariant::fromValue(q); | - | ||||||||||||||||||||||||
528 | return never executed: true;return true; never executed: return true; | 0 | ||||||||||||||||||||||||
529 | } | - | ||||||||||||||||||||||||
530 | - | |||||||||||||||||||||||||
531 | QMatrix4x4 m = matrix4x4FromString(s, &ok); | - | ||||||||||||||||||||||||
532 | if (ok
| 0-20 | ||||||||||||||||||||||||
533 | *v = QVariant::fromValue(m); | - | ||||||||||||||||||||||||
534 | return never executed: true;return true; never executed: return true; | 0 | ||||||||||||||||||||||||
535 | } | - | ||||||||||||||||||||||||
536 | - | |||||||||||||||||||||||||
537 | return executed 20 times by 5 tests: false;return false; Executed by:
executed 20 times by 5 tests: return false; Executed by:
| 20 | ||||||||||||||||||||||||
538 | } | - | ||||||||||||||||||||||||
539 | - | |||||||||||||||||||||||||
540 | bool variantFromString(int type, const QString &s, QVariant *v) override | - | ||||||||||||||||||||||||
541 | { | - | ||||||||||||||||||||||||
542 | bool ok = false; | - | ||||||||||||||||||||||||
543 | - | |||||||||||||||||||||||||
544 | switch (type) { | - | ||||||||||||||||||||||||
545 | case executed 80748 times by 27 tests: QMetaType::QColor:case QMetaType::QColor: Executed by:
executed 80748 times by 27 tests: case QMetaType::QColor: Executed by:
| 80748 | ||||||||||||||||||||||||
546 | { | - | ||||||||||||||||||||||||
547 | QColor c(s); | - | ||||||||||||||||||||||||
548 | *v = QVariant::fromValue(c); | - | ||||||||||||||||||||||||
549 | return executed 80748 times by 27 tests: true;return true; Executed by:
executed 80748 times by 27 tests: return true; Executed by:
| 80748 | ||||||||||||||||||||||||
550 | } | - | ||||||||||||||||||||||||
551 | case executed 2 times by 1 test: QMetaType::QVector2D:case QMetaType::QVector2D: Executed by:
executed 2 times by 1 test: case QMetaType::QVector2D: Executed by:
| 2 | ||||||||||||||||||||||||
552 | { | - | ||||||||||||||||||||||||
553 | *v = QVariant::fromValue(vector2DFromString(s, &ok)); | - | ||||||||||||||||||||||||
554 | return executed 2 times by 1 test: true;return true; Executed by:
executed 2 times by 1 test: return true; Executed by:
| 2 | ||||||||||||||||||||||||
555 | } | - | ||||||||||||||||||||||||
556 | case executed 6 times by 2 tests: QMetaType::QVector3D:case QMetaType::QVector3D: Executed by:
executed 6 times by 2 tests: case QMetaType::QVector3D: Executed by:
| 6 | ||||||||||||||||||||||||
557 | { | - | ||||||||||||||||||||||||
558 | *v = QVariant::fromValue(vector3DFromString(s, &ok)); | - | ||||||||||||||||||||||||
559 | return executed 6 times by 2 tests: true;return true; Executed by:
executed 6 times by 2 tests: return true; Executed by:
| 6 | ||||||||||||||||||||||||
560 | } | - | ||||||||||||||||||||||||
561 | case executed 2 times by 1 test: QMetaType::QVector4D:case QMetaType::QVector4D: Executed by:
executed 2 times by 1 test: case QMetaType::QVector4D: Executed by:
| 2 | ||||||||||||||||||||||||
562 | { | - | ||||||||||||||||||||||||
563 | *v = QVariant::fromValue(vector4DFromString(s, &ok)); | - | ||||||||||||||||||||||||
564 | return executed 2 times by 1 test: true;return true; Executed by:
executed 2 times by 1 test: return true; Executed by:
| 2 | ||||||||||||||||||||||||
565 | } | - | ||||||||||||||||||||||||
566 | case executed 2 times by 1 test: QMetaType::QQuaternion:case QMetaType::QQuaternion: Executed by:
executed 2 times by 1 test: case QMetaType::QQuaternion: Executed by:
| 2 | ||||||||||||||||||||||||
567 | { | - | ||||||||||||||||||||||||
568 | *v = QVariant::fromValue(quaternionFromString(s, &ok)); | - | ||||||||||||||||||||||||
569 | return executed 2 times by 1 test: true;return true; Executed by:
executed 2 times by 1 test: return true; Executed by:
| 2 | ||||||||||||||||||||||||
570 | } | - | ||||||||||||||||||||||||
571 | case executed 2 times by 1 test: QMetaType::QMatrix4x4:case QMetaType::QMatrix4x4: Executed by:
executed 2 times by 1 test: case QMetaType::QMatrix4x4: Executed by:
| 2 | ||||||||||||||||||||||||
572 | { | - | ||||||||||||||||||||||||
573 | *v = QVariant::fromValue(matrix4x4FromString(s, &ok)); | - | ||||||||||||||||||||||||
574 | return executed 2 times by 1 test: true;return true; Executed by:
executed 2 times by 1 test: return true; Executed by:
| 2 | ||||||||||||||||||||||||
575 | } | - | ||||||||||||||||||||||||
576 | default executed 40 times by 6 tests: :default: Executed by:
executed 40 times by 6 tests: default: Executed by:
| 40 | ||||||||||||||||||||||||
577 | break; executed 40 times by 6 tests: break; Executed by:
| 40 | ||||||||||||||||||||||||
578 | } | - | ||||||||||||||||||||||||
579 | - | |||||||||||||||||||||||||
580 | return executed 40 times by 6 tests: false;return false; Executed by:
executed 40 times by 6 tests: return false; Executed by:
| 40 | ||||||||||||||||||||||||
581 | } | - | ||||||||||||||||||||||||
582 | - | |||||||||||||||||||||||||
583 | bool variantFromJsObject(int type, QQmlV4Handle object, QV4::ExecutionEngine *v4, QVariant *v) override | - | ||||||||||||||||||||||||
584 | { | - | ||||||||||||||||||||||||
585 | QV4::Scope scope(v4); | - | ||||||||||||||||||||||||
586 | - | |||||||||||||||||||||||||
587 | QV4::ScopedObject obj(scope, object); | - | ||||||||||||||||||||||||
588 | ((obj) ? static_cast<void>(0) : qt_assert("obj", __FILE__, 647)); | - | ||||||||||||||||||||||||
589 | - | |||||||||||||||||||||||||
590 | bool ok = false; | - | ||||||||||||||||||||||||
591 | switch (type) { | - | ||||||||||||||||||||||||
592 | case executed 60 times by 3 tests: QMetaType::QFont:case QMetaType::QFont: Executed by:
executed 60 times by 3 tests: case QMetaType::QFont: Executed by:
| 60 | ||||||||||||||||||||||||
593 | *v = QVariant::fromValue(fontFromObject(object, v4, &ok)); | - | ||||||||||||||||||||||||
594 | break; executed 60 times by 3 tests: break; Executed by:
| 60 | ||||||||||||||||||||||||
595 | case executed 18 times by 2 tests: QMetaType::QMatrix4x4:case QMetaType::QMatrix4x4: Executed by:
executed 18 times by 2 tests: case QMetaType::QMatrix4x4: Executed by:
| 18 | ||||||||||||||||||||||||
596 | *v = QVariant::fromValue(matrix4x4FromObject(object, v4, &ok)); | - | ||||||||||||||||||||||||
597 | default executed 18 times by 2 tests: :default: Executed by:
executed 18 times by 2 tests: default: Executed by:
code before this statement executed 18 times by 2 tests: break;default: Executed by:
executed 18 times by 2 tests: break; Executed by:
| 18 | ||||||||||||||||||||||||
598 | } | - | ||||||||||||||||||||||||
599 | - | |||||||||||||||||||||||||
600 | return executed 78 times by 3 tests: ok;return ok; Executed by:
executed 78 times by 3 tests: return ok; Executed by:
| 78 | ||||||||||||||||||||||||
601 | } | - | ||||||||||||||||||||||||
602 | - | |||||||||||||||||||||||||
603 | template<typename T> | - | ||||||||||||||||||||||||
604 | bool typedEqual(const void *lhs, const QVariant& rhs) | - | ||||||||||||||||||||||||
605 | { | - | ||||||||||||||||||||||||
606 | return executed 474 times by 12 tests: (*(reinterpret_cast<const T *>(lhs)) == rhs.value<T>());return (*(reinterpret_cast<const T *>(lhs)) == rhs.value<T>()); Executed by:
executed 474 times by 12 tests: return (*(reinterpret_cast<const T *>(lhs)) == rhs.value<T>()); Executed by:
| 474 | ||||||||||||||||||||||||
607 | } | - | ||||||||||||||||||||||||
608 | - | |||||||||||||||||||||||||
609 | bool equal(int type, const void *lhs, const QVariant &rhs) override | - | ||||||||||||||||||||||||
610 | { | - | ||||||||||||||||||||||||
611 | switch (type) { | - | ||||||||||||||||||||||||
612 | case executed 278 times by 11 tests: QMetaType::QColor:case QMetaType::QColor: Executed by:
executed 278 times by 11 tests: case QMetaType::QColor: Executed by:
| 278 | ||||||||||||||||||||||||
613 | return executed 278 times by 11 tests: typedEqual<QColor>(lhs, rhs);return typedEqual<QColor>(lhs, rhs); Executed by:
executed 278 times by 11 tests: return typedEqual<QColor>(lhs, rhs); Executed by:
| 278 | ||||||||||||||||||||||||
614 | case executed 52 times by 3 tests: QMetaType::QFont:case QMetaType::QFont: Executed by:
executed 52 times by 3 tests: case QMetaType::QFont: Executed by:
| 52 | ||||||||||||||||||||||||
615 | return executed 52 times by 3 tests: typedEqual<QFont>(lhs, rhs);return typedEqual<QFont>(lhs, rhs); Executed by:
executed 52 times by 3 tests: return typedEqual<QFont>(lhs, rhs); Executed by:
| 52 | ||||||||||||||||||||||||
616 | case executed 30 times by 1 test: QMetaType::QVector2D:case QMetaType::QVector2D: Executed by:
executed 30 times by 1 test: case QMetaType::QVector2D: Executed by:
| 30 | ||||||||||||||||||||||||
617 | return executed 30 times by 1 test: typedEqual<QVector2D>(lhs, rhs);return typedEqual<QVector2D>(lhs, rhs); Executed by:
executed 30 times by 1 test: return typedEqual<QVector2D>(lhs, rhs); Executed by:
| 30 | ||||||||||||||||||||||||
618 | case executed 26 times by 1 test: QMetaType::QVector3D:case QMetaType::QVector3D: Executed by:
executed 26 times by 1 test: case QMetaType::QVector3D: Executed by:
| 26 | ||||||||||||||||||||||||
619 | return executed 26 times by 1 test: typedEqual<QVector3D>(lhs, rhs);return typedEqual<QVector3D>(lhs, rhs); Executed by:
executed 26 times by 1 test: return typedEqual<QVector3D>(lhs, rhs); Executed by:
| 26 | ||||||||||||||||||||||||
620 | case executed 32 times by 1 test: QMetaType::QVector4D:case QMetaType::QVector4D: Executed by:
executed 32 times by 1 test: case QMetaType::QVector4D: Executed by:
| 32 | ||||||||||||||||||||||||
621 | return executed 32 times by 1 test: typedEqual<QVector4D>(lhs, rhs);return typedEqual<QVector4D>(lhs, rhs); Executed by:
executed 32 times by 1 test: return typedEqual<QVector4D>(lhs, rhs); Executed by:
| 32 | ||||||||||||||||||||||||
622 | case executed 18 times by 1 test: QMetaType::QQuaternion:case QMetaType::QQuaternion: Executed by:
executed 18 times by 1 test: case QMetaType::QQuaternion: Executed by:
| 18 | ||||||||||||||||||||||||
623 | return executed 18 times by 1 test: typedEqual<QQuaternion>(lhs, rhs);return typedEqual<QQuaternion>(lhs, rhs); Executed by:
executed 18 times by 1 test: return typedEqual<QQuaternion>(lhs, rhs); Executed by:
| 18 | ||||||||||||||||||||||||
624 | case executed 38 times by 1 test: QMetaType::QMatrix4x4:case QMetaType::QMatrix4x4: Executed by:
executed 38 times by 1 test: case QMetaType::QMatrix4x4: Executed by:
| 38 | ||||||||||||||||||||||||
625 | return executed 38 times by 1 test: typedEqual<QMatrix4x4>(lhs, rhs);return typedEqual<QMatrix4x4>(lhs, rhs); Executed by:
executed 38 times by 1 test: return typedEqual<QMatrix4x4>(lhs, rhs); Executed by:
| 38 | ||||||||||||||||||||||||
626 | default never executed: :default: never executed: break;default: never executed: break; | 0 | ||||||||||||||||||||||||
627 | } | - | ||||||||||||||||||||||||
628 | - | |||||||||||||||||||||||||
629 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||||||||
630 | } | - | ||||||||||||||||||||||||
631 | - | |||||||||||||||||||||||||
632 | template<typename T> | - | ||||||||||||||||||||||||
633 | bool typedStore(const void *src, void *dst, size_t dstSize) | - | ||||||||||||||||||||||||
634 | { | - | ||||||||||||||||||||||||
635 | ((dstSize >= sizeof(T)) ? static_cast<void>(0) : qt_assert("dstSize >= sizeof(T)", __FILE__, 694)); | - | ||||||||||||||||||||||||
636 | const T *srcT = reinterpret_cast<const T *>(src); | - | ||||||||||||||||||||||||
637 | T *dstT = reinterpret_cast<T *>(dst); | - | ||||||||||||||||||||||||
638 | new (dstT) T(*srcT); | - | ||||||||||||||||||||||||
639 | return never executed: true;return true; never executed: return true; | 0 | ||||||||||||||||||||||||
640 | } | - | ||||||||||||||||||||||||
641 | - | |||||||||||||||||||||||||
642 | bool store(int type, const void *src, void *dst, size_t dstSize) override | - | ||||||||||||||||||||||||
643 | { | - | ||||||||||||||||||||||||
644 | (void)dstSize;; | - | ||||||||||||||||||||||||
645 | switch (type) { | - | ||||||||||||||||||||||||
646 | case executed 27769 times by 82 tests: QMetaType::QColor:case QMetaType::QColor: Executed by:
executed 27769 times by 82 tests: case QMetaType::QColor: Executed by:
| 27769 | ||||||||||||||||||||||||
647 | { | - | ||||||||||||||||||||||||
648 | ((dstSize >= sizeof(QColor)) ? static_cast<void>(0) : qt_assert("dstSize >= sizeof(QColor)", __FILE__, 707)); | - | ||||||||||||||||||||||||
649 | const QRgb *rgb = reinterpret_cast<const QRgb *>(src); | - | ||||||||||||||||||||||||
650 | QColor *color = reinterpret_cast<QColor *>(dst); | - | ||||||||||||||||||||||||
651 | new (color) QColor(QColor::fromRgba(*rgb)); | - | ||||||||||||||||||||||||
652 | return executed 27769 times by 82 tests: true;return true; Executed by:
executed 27769 times by 82 tests: return true; Executed by:
| 27769 | ||||||||||||||||||||||||
653 | } | - | ||||||||||||||||||||||||
654 | default never executed: :default: never executed: break;default: never executed: break; | 0 | ||||||||||||||||||||||||
655 | } | - | ||||||||||||||||||||||||
656 | - | |||||||||||||||||||||||||
657 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||||||||
658 | } | - | ||||||||||||||||||||||||
659 | - | |||||||||||||||||||||||||
660 | template<typename T> | - | ||||||||||||||||||||||||
661 | bool typedRead(const QVariant& src, int dstType, void *dst) | - | ||||||||||||||||||||||||
662 | { | - | ||||||||||||||||||||||||
663 | T *dstT = reinterpret_cast<T *>(dst); | - | ||||||||||||||||||||||||
664 | if (src.type() == static_cast<uint>(dstType)
| 168-948 | ||||||||||||||||||||||||
665 | *dstT = src.value<T>(); | - | ||||||||||||||||||||||||
666 | } executed 948 times by 12 tests: else {end of block Executed by:
| 948 | ||||||||||||||||||||||||
667 | *dstT = T(); | - | ||||||||||||||||||||||||
668 | } executed 168 times by 3 tests: end of block Executed by:
| 168 | ||||||||||||||||||||||||
669 | return executed 1116 times by 12 tests: true;return true; Executed by:
executed 1116 times by 12 tests: return true; Executed by:
| 1116 | ||||||||||||||||||||||||
670 | } | - | ||||||||||||||||||||||||
671 | - | |||||||||||||||||||||||||
672 | bool read(const QVariant &src, void *dst, int dstType) override | - | ||||||||||||||||||||||||
673 | { | - | ||||||||||||||||||||||||
674 | switch (dstType) { | - | ||||||||||||||||||||||||
675 | case executed 556 times by 11 tests: QMetaType::QColor:case QMetaType::QColor: Executed by:
executed 556 times by 11 tests: case QMetaType::QColor: Executed by:
| 556 | ||||||||||||||||||||||||
676 | return executed 556 times by 11 tests: typedRead<QColor>(src, dstType, dst);return typedRead<QColor>(src, dstType, dst); Executed by:
executed 556 times by 11 tests: return typedRead<QColor>(src, dstType, dst); Executed by:
| 556 | ||||||||||||||||||||||||
677 | case executed 256 times by 3 tests: QMetaType::QFont:case QMetaType::QFont: Executed by:
executed 256 times by 3 tests: case QMetaType::QFont: Executed by:
| 256 | ||||||||||||||||||||||||
678 | return executed 256 times by 3 tests: typedRead<QFont>(src, dstType, dst);return typedRead<QFont>(src, dstType, dst); Executed by:
executed 256 times by 3 tests: return typedRead<QFont>(src, dstType, dst); Executed by:
| 256 | ||||||||||||||||||||||||
679 | case executed 56 times by 1 test: QMetaType::QVector2D:case QMetaType::QVector2D: Executed by:
executed 56 times by 1 test: case QMetaType::QVector2D: Executed by:
| 56 | ||||||||||||||||||||||||
680 | return executed 56 times by 1 test: typedRead<QVector2D>(src, dstType, dst);return typedRead<QVector2D>(src, dstType, dst); Executed by:
executed 56 times by 1 test: return typedRead<QVector2D>(src, dstType, dst); Executed by:
| 56 | ||||||||||||||||||||||||
681 | case executed 44 times by 1 test: QMetaType::QVector3D:case QMetaType::QVector3D: Executed by:
executed 44 times by 1 test: case QMetaType::QVector3D: Executed by:
| 44 | ||||||||||||||||||||||||
682 | return executed 44 times by 1 test: typedRead<QVector3D>(src, dstType, dst);return typedRead<QVector3D>(src, dstType, dst); Executed by:
executed 44 times by 1 test: return typedRead<QVector3D>(src, dstType, dst); Executed by:
| 44 | ||||||||||||||||||||||||
683 | case executed 80 times by 1 test: QMetaType::QVector4D:case QMetaType::QVector4D: Executed by:
executed 80 times by 1 test: case QMetaType::QVector4D: Executed by:
| 80 | ||||||||||||||||||||||||
684 | return executed 80 times by 1 test: typedRead<QVector4D>(src, dstType, dst);return typedRead<QVector4D>(src, dstType, dst); Executed by:
executed 80 times by 1 test: return typedRead<QVector4D>(src, dstType, dst); Executed by:
| 80 | ||||||||||||||||||||||||
685 | case executed 42 times by 1 test: QMetaType::QQuaternion:case QMetaType::QQuaternion: Executed by:
executed 42 times by 1 test: case QMetaType::QQuaternion: Executed by:
| 42 | ||||||||||||||||||||||||
686 | return executed 42 times by 1 test: typedRead<QQuaternion>(src, dstType, dst);return typedRead<QQuaternion>(src, dstType, dst); Executed by:
executed 42 times by 1 test: return typedRead<QQuaternion>(src, dstType, dst); Executed by:
| 42 | ||||||||||||||||||||||||
687 | case executed 82 times by 1 test: QMetaType::QMatrix4x4:case QMetaType::QMatrix4x4: Executed by:
executed 82 times by 1 test: case QMetaType::QMatrix4x4: Executed by:
| 82 | ||||||||||||||||||||||||
688 | return executed 82 times by 1 test: typedRead<QMatrix4x4>(src, dstType, dst);return typedRead<QMatrix4x4>(src, dstType, dst); Executed by:
executed 82 times by 1 test: return typedRead<QMatrix4x4>(src, dstType, dst); Executed by:
| 82 | ||||||||||||||||||||||||
689 | default never executed: :default: never executed: break;default: never executed: break; | 0 | ||||||||||||||||||||||||
690 | } | - | ||||||||||||||||||||||||
691 | - | |||||||||||||||||||||||||
692 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||||||||
693 | } | - | ||||||||||||||||||||||||
694 | - | |||||||||||||||||||||||||
695 | template<typename T> | - | ||||||||||||||||||||||||
696 | bool typedWrite(const void *src, QVariant& dst) | - | ||||||||||||||||||||||||
697 | { | - | ||||||||||||||||||||||||
698 | const T *srcT = reinterpret_cast<const T *>(src); | - | ||||||||||||||||||||||||
699 | if (dst.value<T>() != *srcT
| 16-458 | ||||||||||||||||||||||||
700 | dst = *srcT; | - | ||||||||||||||||||||||||
701 | return executed 458 times by 11 tests: true;return true; Executed by:
executed 458 times by 11 tests: return true; Executed by:
| 458 | ||||||||||||||||||||||||
702 | } | - | ||||||||||||||||||||||||
703 | return executed 16 times by 4 tests: false;return false; Executed by:
executed 16 times by 4 tests: return false; Executed by:
| 16 | ||||||||||||||||||||||||
704 | } | - | ||||||||||||||||||||||||
705 | - | |||||||||||||||||||||||||
706 | bool write(int type, const void *src, QVariant& dst) override | - | ||||||||||||||||||||||||
707 | { | - | ||||||||||||||||||||||||
708 | switch (type) { | - | ||||||||||||||||||||||||
709 | case executed 278 times by 11 tests: QMetaType::QColor:case QMetaType::QColor: Executed by:
executed 278 times by 11 tests: case QMetaType::QColor: Executed by:
| 278 | ||||||||||||||||||||||||
710 | return executed 278 times by 11 tests: typedWrite<QColor>(src, dst);return typedWrite<QColor>(src, dst); Executed by:
executed 278 times by 11 tests: return typedWrite<QColor>(src, dst); Executed by:
| 278 | ||||||||||||||||||||||||
711 | case executed 52 times by 3 tests: QMetaType::QFont:case QMetaType::QFont: Executed by:
executed 52 times by 3 tests: case QMetaType::QFont: Executed by:
| 52 | ||||||||||||||||||||||||
712 | return executed 52 times by 3 tests: typedWrite<QFont>(src, dst);return typedWrite<QFont>(src, dst); Executed by:
executed 52 times by 3 tests: return typedWrite<QFont>(src, dst); Executed by:
| 52 | ||||||||||||||||||||||||
713 | case executed 30 times by 1 test: QMetaType::QVector2D:case QMetaType::QVector2D: Executed by:
executed 30 times by 1 test: case QMetaType::QVector2D: Executed by:
| 30 | ||||||||||||||||||||||||
714 | return executed 30 times by 1 test: typedWrite<QVector2D>(src, dst);return typedWrite<QVector2D>(src, dst); Executed by:
executed 30 times by 1 test: return typedWrite<QVector2D>(src, dst); Executed by:
| 30 | ||||||||||||||||||||||||
715 | case executed 26 times by 1 test: QMetaType::QVector3D:case QMetaType::QVector3D: Executed by:
executed 26 times by 1 test: case QMetaType::QVector3D: Executed by:
| 26 | ||||||||||||||||||||||||
716 | return executed 26 times by 1 test: typedWrite<QVector3D>(src, dst);return typedWrite<QVector3D>(src, dst); Executed by:
executed 26 times by 1 test: return typedWrite<QVector3D>(src, dst); Executed by:
| 26 | ||||||||||||||||||||||||
717 | case executed 32 times by 1 test: QMetaType::QVector4D:case QMetaType::QVector4D: Executed by:
executed 32 times by 1 test: case QMetaType::QVector4D: Executed by:
| 32 | ||||||||||||||||||||||||
718 | return executed 32 times by 1 test: typedWrite<QVector4D>(src, dst);return typedWrite<QVector4D>(src, dst); Executed by:
executed 32 times by 1 test: return typedWrite<QVector4D>(src, dst); Executed by:
| 32 | ||||||||||||||||||||||||
719 | case executed 18 times by 1 test: QMetaType::QQuaternion:case QMetaType::QQuaternion: Executed by:
executed 18 times by 1 test: case QMetaType::QQuaternion: Executed by:
| 18 | ||||||||||||||||||||||||
720 | return executed 18 times by 1 test: typedWrite<QQuaternion>(src, dst);return typedWrite<QQuaternion>(src, dst); Executed by:
executed 18 times by 1 test: return typedWrite<QQuaternion>(src, dst); Executed by:
| 18 | ||||||||||||||||||||||||
721 | case executed 38 times by 1 test: QMetaType::QMatrix4x4:case QMetaType::QMatrix4x4: Executed by:
executed 38 times by 1 test: case QMetaType::QMatrix4x4: Executed by:
| 38 | ||||||||||||||||||||||||
722 | return executed 38 times by 1 test: typedWrite<QMatrix4x4>(src, dst);return typedWrite<QMatrix4x4>(src, dst); Executed by:
executed 38 times by 1 test: return typedWrite<QMatrix4x4>(src, dst); Executed by:
| 38 | ||||||||||||||||||||||||
723 | default never executed: :default: never executed: break;default: never executed: break; | 0 | ||||||||||||||||||||||||
724 | } | - | ||||||||||||||||||||||||
725 | - | |||||||||||||||||||||||||
726 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||||||||
727 | } | - | ||||||||||||||||||||||||
728 | - | |||||||||||||||||||||||||
729 | }; | - | ||||||||||||||||||||||||
730 | - | |||||||||||||||||||||||||
731 | - | |||||||||||||||||||||||||
732 | class QQuickGuiProvider : public QQmlGuiProvider | - | ||||||||||||||||||||||||
733 | { | - | ||||||||||||||||||||||||
734 | public: | - | ||||||||||||||||||||||||
735 | QQuickApplication *application(QObject *parent) override | - | ||||||||||||||||||||||||
736 | { | - | ||||||||||||||||||||||||
737 | return executed 12 times by 4 tests: new QQuickApplication(parent);return new QQuickApplication(parent); Executed by:
executed 12 times by 4 tests: return new QQuickApplication(parent); Executed by:
| 12 | ||||||||||||||||||||||||
738 | } | - | ||||||||||||||||||||||||
739 | - | |||||||||||||||||||||||||
740 | - | |||||||||||||||||||||||||
741 | QInputMethod *inputMethod() override | - | ||||||||||||||||||||||||
742 | { | - | ||||||||||||||||||||||||
743 | QInputMethod *im = (static_cast<QGuiApplication *>(QCoreApplication::instance()))->inputMethod(); | - | ||||||||||||||||||||||||
744 | QQmlEngine::setObjectOwnership(im, QQmlEngine::CppOwnership); | - | ||||||||||||||||||||||||
745 | return executed 40 times by 2 tests: im;return im; Executed by:
executed 40 times by 2 tests: return im; Executed by:
| 40 | ||||||||||||||||||||||||
746 | } | - | ||||||||||||||||||||||||
747 | - | |||||||||||||||||||||||||
748 | - | |||||||||||||||||||||||||
749 | QStyleHints *styleHints() override | - | ||||||||||||||||||||||||
750 | { | - | ||||||||||||||||||||||||
751 | QStyleHints *sh = (static_cast<QGuiApplication *>(QCoreApplication::instance()))->styleHints(); | - | ||||||||||||||||||||||||
752 | QQmlEngine::setObjectOwnership(sh, QQmlEngine::CppOwnership); | - | ||||||||||||||||||||||||
753 | return executed 2 times by 1 test: sh;return sh; Executed by:
executed 2 times by 1 test: return sh; Executed by:
| 2 | ||||||||||||||||||||||||
754 | } | - | ||||||||||||||||||||||||
755 | - | |||||||||||||||||||||||||
756 | QStringList fontFamilies() override | - | ||||||||||||||||||||||||
757 | { | - | ||||||||||||||||||||||||
758 | QFontDatabase database; | - | ||||||||||||||||||||||||
759 | return executed 4 times by 2 tests: database.families();return database.families(); Executed by:
executed 4 times by 2 tests: return database.families(); Executed by:
| 4 | ||||||||||||||||||||||||
760 | } | - | ||||||||||||||||||||||||
761 | - | |||||||||||||||||||||||||
762 | bool openUrlExternally(QUrl &url) override | - | ||||||||||||||||||||||||
763 | { | - | ||||||||||||||||||||||||
764 | - | |||||||||||||||||||||||||
765 | return executed 8 times by 1 test: QDesktopServices::openUrl(url);return QDesktopServices::openUrl(url); Executed by:
executed 8 times by 1 test: return QDesktopServices::openUrl(url); Executed by:
| 8 | ||||||||||||||||||||||||
766 | - | |||||||||||||||||||||||||
767 | - | |||||||||||||||||||||||||
768 | - | |||||||||||||||||||||||||
769 | - | |||||||||||||||||||||||||
770 | } | - | ||||||||||||||||||||||||
771 | - | |||||||||||||||||||||||||
772 | QString pluginName() const override | - | ||||||||||||||||||||||||
773 | { | - | ||||||||||||||||||||||||
774 | return executed 2 times by 1 test: QGuiApplication::platformName();return QGuiApplication::platformName(); Executed by:
executed 2 times by 1 test: return QGuiApplication::platformName(); Executed by:
| 2 | ||||||||||||||||||||||||
775 | } | - | ||||||||||||||||||||||||
776 | }; | - | ||||||||||||||||||||||||
777 | - | |||||||||||||||||||||||||
778 | - | |||||||||||||||||||||||||
779 | static QQuickValueTypeProvider *getValueTypeProvider() | - | ||||||||||||||||||||||||
780 | { | - | ||||||||||||||||||||||||
781 | static QQuickValueTypeProvider valueTypeProvider; | - | ||||||||||||||||||||||||
782 | return executed 462 times by 132 tests: &valueTypeProvider;return &valueTypeProvider; Executed by:
executed 462 times by 132 tests: return &valueTypeProvider; Executed by:
| 462 | ||||||||||||||||||||||||
783 | } | - | ||||||||||||||||||||||||
784 | - | |||||||||||||||||||||||||
785 | static QQuickColorProvider *getColorProvider() | - | ||||||||||||||||||||||||
786 | { | - | ||||||||||||||||||||||||
787 | static QQuickColorProvider colorProvider; | - | ||||||||||||||||||||||||
788 | return executed 374 times by 132 tests: &colorProvider;return &colorProvider; Executed by:
executed 374 times by 132 tests: return &colorProvider; Executed by:
| 374 | ||||||||||||||||||||||||
789 | } | - | ||||||||||||||||||||||||
790 | - | |||||||||||||||||||||||||
791 | static QQuickGuiProvider *getGuiProvider() | - | ||||||||||||||||||||||||
792 | { | - | ||||||||||||||||||||||||
793 | static QQuickGuiProvider guiProvider; | - | ||||||||||||||||||||||||
794 | return executed 374 times by 132 tests: &guiProvider;return &guiProvider; Executed by:
executed 374 times by 132 tests: return &guiProvider; Executed by:
| 374 | ||||||||||||||||||||||||
795 | } | - | ||||||||||||||||||||||||
796 | - | |||||||||||||||||||||||||
797 | void QQuick_initializeProviders() | - | ||||||||||||||||||||||||
798 | { | - | ||||||||||||||||||||||||
799 | QQml_addValueTypeProvider(getValueTypeProvider()); | - | ||||||||||||||||||||||||
800 | QQml_setColorProvider(getColorProvider()); | - | ||||||||||||||||||||||||
801 | QQml_setGuiProvider(getGuiProvider()); | - | ||||||||||||||||||||||||
802 | } executed 374 times by 132 tests: end of block Executed by:
| 374 | ||||||||||||||||||||||||
803 | - | |||||||||||||||||||||||||
804 | void QQuick_deinitializeProviders() | - | ||||||||||||||||||||||||
805 | { | - | ||||||||||||||||||||||||
806 | QQml_removeValueTypeProvider(getValueTypeProvider()); | - | ||||||||||||||||||||||||
807 | QQml_setColorProvider(nullptr); | - | ||||||||||||||||||||||||
808 | QQml_setGuiProvider(nullptr); | - | ||||||||||||||||||||||||
809 | } executed 88 times by 3 tests: end of block Executed by:
| 88 | ||||||||||||||||||||||||
810 | - | |||||||||||||||||||||||||
811 | - | |||||||||||||||||||||||||
Switch to Source code | Preprocessed file |