Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | template<> inline QColor _q_interpolate(const QColor &f,const QColor &t, qreal progress) | - |
8 | { | - |
9 | return QColor(qBound(0,_q_interpolate(f.red(), t.red(), progress),255), | 0 |
10 | qBound(0,_q_interpolate(f.green(), t.green(), progress),255), | 0 |
11 | qBound(0,_q_interpolate(f.blue(), t.blue(), progress),255), | 0 |
12 | qBound(0,_q_interpolate(f.alpha(), t.alpha(), progress),255)); never executed: return QColor(qBound(0,_q_interpolate(f.red(), t.red(), progress),255), qBound(0,_q_interpolate(f.green(), t.green(), progress),255), qBound(0,_q_interpolate(f.blue(), t.blue(), progress),255), qBound(0,_q_interpolate(f.alpha(), t.alpha(), progress),255)); | 0 |
13 | } | - |
14 | | - |
15 | template<> inline QQuaternion _q_interpolate(const QQuaternion &f,const QQuaternion &t, qreal progress) | - |
16 | { | - |
17 | return QQuaternion::slerp(f, t, progress); never executed: return QQuaternion::slerp(f, t, progress); | 0 |
18 | } | - |
19 | | - |
20 | static void qRegisterGuiGetInterpolator() | - |
21 | { | - |
22 | qRegisterAnimationInterpolator<QColor>(_q_interpolateVariant<QColor>); | - |
23 | qRegisterAnimationInterpolator<QVector2D>(_q_interpolateVariant<QVector2D>); | - |
24 | qRegisterAnimationInterpolator<QVector3D>(_q_interpolateVariant<QVector3D>); | - |
25 | qRegisterAnimationInterpolator<QVector4D>(_q_interpolateVariant<QVector4D>); | - |
26 | qRegisterAnimationInterpolator<QQuaternion>(_q_interpolateVariant<QQuaternion>); | - |
27 | } executed: } Execution Count:200 | 200 |
28 | namespace { static const struct qRegisterGuiGetInterpolator_ctor_class_ { inline qRegisterGuiGetInterpolator_ctor_class_() { qRegisterGuiGetInterpolator(); } } qRegisterGuiGetInterpolator_ctor_instance_; } executed: } Execution Count:200 | 200 |
29 | | - |
30 | static void qUnregisterGuiGetInterpolator() | - |
31 | { | - |
32 | | - |
33 | qRegisterAnimationInterpolator<QColor>( | - |
34 | (QVariant (*)(const QColor &, const QColor &, qreal))0); | - |
35 | qRegisterAnimationInterpolator<QVector2D>( | - |
36 | (QVariant (*)(const QVector2D &, const QVector2D &, qreal))0); | - |
37 | qRegisterAnimationInterpolator<QVector3D>( | - |
38 | (QVariant (*)(const QVector3D &, const QVector3D &, qreal))0); | - |
39 | qRegisterAnimationInterpolator<QVector4D>( | - |
40 | (QVariant (*)(const QVector4D &, const QVector4D &, qreal))0); | - |
41 | qRegisterAnimationInterpolator<QQuaternion>( | - |
42 | (QVariant (*)(const QQuaternion &, const QQuaternion &, qreal))0); | - |
43 | } | 0 |
44 | namespace { static const struct qUnregisterGuiGetInterpolator_dtor_class_ { inline qUnregisterGuiGetInterpolator_dtor_class_() { } inline ~ qUnregisterGuiGetInterpolator_dtor_class_() { qUnregisterGuiGetInterpolator(); } } qUnregisterGuiGetInterpolator_dtor_instance_; } | 0 |
45 | | - |
46 | | - |
47 | | - |
| | |