From 04e30e3cc165b2617b223fff64248080fdf66707 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Wed, 13 May 2009 10:53:09 +0200 Subject: qdoc: Fixed some qdoc errors. --- doc/src/qnamespace.qdoc | 2 +- src/corelib/animation/qvariantanimation.cpp | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/doc/src/qnamespace.qdoc b/doc/src/qnamespace.qdoc index fc4310b..65f9b5d 100644 --- a/doc/src/qnamespace.qdoc +++ b/doc/src/qnamespace.qdoc @@ -2676,5 +2676,5 @@ \value Repeat Tile the image until there is no more space. May crop the last image. \value Round Like Repeat, but scales the images down to ensure that the last image is not cropped. - \sa QPixmapBorders, qDrawBorderPixmap() + \sa qDrawBorderPixmap() */ diff --git a/src/corelib/animation/qvariantanimation.cpp b/src/corelib/animation/qvariantanimation.cpp index 5c4339d..331024e 100644 --- a/src/corelib/animation/qvariantanimation.cpp +++ b/src/corelib/animation/qvariantanimation.cpp @@ -64,20 +64,18 @@ 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 - \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 - QPropertyAnimation class description if you wish to animate such - properties. + class; it does not implement \l{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 QPropertyAnimation class description if you + wish to animate such properties. You can then set start and end values for the property by calling setStartValue() and setEndValue(), and finally call start() to start the animation. QVariantAnimation will interpolate the property of the target object and emit valueChanged(). To react to - a change in the current value you have to reimplement the + a change in the current value you have to implement the updateCurrentValue() virtual function. It is also possible to set values at specified steps situated -- cgit v0.12