summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2013-09-10 12:14:55 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-11 10:35:08 (GMT)
commit1f76ee2c4615907033f670fb61ea2eff515d72e9 (patch)
treeba971661da88d4ab4ad3ac50dfe7358e83fe1eef /src
parentc3958b592a1d46eb1b536bd09cce1aa919d02635 (diff)
downloadQt-1f76ee2c4615907033f670fb61ea2eff515d72e9.zip
Qt-1f76ee2c4615907033f670fb61ea2eff515d72e9.tar.gz
Qt-1f76ee2c4615907033f670fb61ea2eff515d72e9.tar.bz2
Add missing interpolator for unsigned int.
Note that there are also some missing interpolators for char, short, long long etc, but those are most likely less common than unsigned int. Task-number: QTBUG-33268 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> (cherry picked from qtbase/09da1f7d1f04f51eca4dc11add2854355fad6cd4) Change-Id: Ieae8c5f66dab0f997522ea7e7990485ecde33e27 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/animation/qvariantanimation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/animation/qvariantanimation.cpp b/src/corelib/animation/qvariantanimation.cpp
index dbdb89f..a1a442f 100644
--- a/src/corelib/animation/qvariantanimation.cpp
+++ b/src/corelib/animation/qvariantanimation.cpp
@@ -99,6 +99,7 @@ QT_BEGIN_NAMESPACE
\list
\o \l{QMetaType::}{Int}
+ \o \l{QMetaType::}{UInt}
\o \l{QMetaType::}{Double}
\o \l{QMetaType::}{Float}
\o \l{QMetaType::}{QLine}
@@ -467,6 +468,8 @@ QVariantAnimation::Interpolator QVariantAnimationPrivate::getInterpolator(int in
{
case QMetaType::Int:
return castToInterpolator(_q_interpolateVariant<int>);
+ case QMetaType::UInt:
+ return castToInterpolator(_q_interpolateVariant<uint>);
case QMetaType::Double:
return castToInterpolator(_q_interpolateVariant<double>);
case QMetaType::Float: