summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qpropertyanimation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/animation/qpropertyanimation.cpp')
-rw-r--r--src/corelib/animation/qpropertyanimation.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/corelib/animation/qpropertyanimation.cpp b/src/corelib/animation/qpropertyanimation.cpp
index 927f4f4810..271be248ec 100644
--- a/src/corelib/animation/qpropertyanimation.cpp
+++ b/src/corelib/animation/qpropertyanimation.cpp
@@ -56,14 +56,7 @@
makes it possible to animate many of Qt's widgets. Let's look at
an example:
- \code
- QPropertyAnimation *animation = new QPropertyAnimation(myWidget, "geometry");
- animation->setDuration(10000);
- animation->setStartValue(QRect(0, 0, 100, 30));
- animation->setEndValue(QRect(250, 250, 100, 30));
-
- animation->start();
- \endcode
+ \snippet code/src_corelib_animation_qpropertyanimation.cpp 0
The property name and the QObject instance of which property
should be animated are passed to the constructor. You can then
@@ -93,8 +86,6 @@
#include <QtCore/QMutex>
-#ifndef QT_NO_ANIMATION
-
QT_BEGIN_NAMESPACE
void QPropertyAnimationPrivate::updateMetaProperty()
@@ -315,5 +306,3 @@ void QPropertyAnimation::updateState(QAbstractAnimation::State newState,
QT_END_NAMESPACE
#include "moc_qpropertyanimation.cpp"
-
-#endif //QT_NO_ANIMATION