OpenCoverage

qguivariantanimation.cpp

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

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9