diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-05-26 07:23:55 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-05-26 07:23:55 (GMT) |
commit | baec0ecd314c6e9563bd56cf19571ca71d7d11cd (patch) | |
tree | 675e10d1578b2b0a5fd4e6fb2d8a1764295ac030 /src/corelib/animation/qvariantanimation.cpp | |
parent | 51167b0f2f7b3989ed448160fda3209e9382663a (diff) | |
download | Qt-baec0ecd314c6e9563bd56cf19571ca71d7d11cd.zip Qt-baec0ecd314c6e9563bd56cf19571ca71d7d11cd.tar.gz Qt-baec0ecd314c6e9563bd56cf19571ca71d7d11cd.tar.bz2 |
Fixed docs warnings for Animation API
Diffstat (limited to 'src/corelib/animation/qvariantanimation.cpp')
-rw-r--r-- | src/corelib/animation/qvariantanimation.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/corelib/animation/qvariantanimation.cpp b/src/corelib/animation/qvariantanimation.cpp index a6834bb..4542a86 100644 --- a/src/corelib/animation/qvariantanimation.cpp +++ b/src/corelib/animation/qvariantanimation.cpp @@ -63,9 +63,8 @@ QT_BEGIN_NAMESPACE shared functionality. QVariantAnimation cannot be used directly as it is an abstract - class; it does not implement - \l{QAbstractAnimation::}{updateCurrentValue()} from - QAbstractAnimation. The class performs interpolation over + class; it has a pure virtual method called updateCurrentValue(). + The class performs interpolation over \l{QVariant}s, but leaves using the interpolated values to its subclasses. Currently, Qt provides QPropertyAnimation, which animates Qt \l{Qt's Property System}{properties}. See the @@ -130,6 +129,16 @@ QT_BEGIN_NAMESPACE \sa currentValue, startValue, endValue */ +/*! + \fn void QVariantAnimation::updateCurrentValue(const QVariant &value) = 0; + + This pure virtual function is called every time the animation's current + value changes. The \a value argument is the new current value. + + \sa currentValue +*/ + + static bool animationValueLessThan(const QVariantAnimation::KeyValue &p1, const QVariantAnimation::KeyValue &p2) { return p1.first < p2.first; |