Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/animation/qguivariantanimation.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | template<> inline QColor _q_interpolate(const QColor &f,const QColor &t, qreal progress) | - |
8 | { | - |
9 | return never executed: QColor(qBound(0,_q_interpolate(f.red(), t.red(), progress),255),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)); 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 |
10 | qBound(0,_q_interpolate(f.green(), t.green(), 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 |
11 | qBound(0,_q_interpolate(f.blue(), t.blue(), 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 |
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 never executed: QQuaternion::slerp(f, t, progress);return QQuaternion::slerp(f, t, progress); never executed: return QQuaternion::slerp(f, t, progress); | 0 |
18 | } | - |
19 | - | |
20 | 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 | } never executed: end of block | 0 |
28 | namespace { static const struct qRegisterGuiGetInterpolator_ctor_class_ { inline qRegisterGuiGetInterpolator_ctor_class_() { qRegisterGuiGetInterpolator(); } never executed: } qRegisterGuiGetInterpolator_ctor_instance_; }end of block | 0 |
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 | } never executed: end of block | 0 |
44 | namespace { static const struct qUnregisterGuiGetInterpolator_dtor_class_ { inline qUnregisterGuiGetInterpolator_dtor_class_() { } inline ~ qUnregisterGuiGetInterpolator_dtor_class_() { qUnregisterGuiGetInterpolator(); } never executed: } qUnregisterGuiGetInterpolator_dtor_instance_; }end of block | 0 |
45 | - | |
46 | - | |
Switch to Source code | Preprocessed file |