diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-19 09:39:12 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-19 09:50:48 (GMT) |
commit | 16220ada80b5131bfc0017ea5a600d9e36c4a469 (patch) | |
tree | f1b99a2586985636d3303de67245fa6a9ba53e83 | |
parent | e8d2c7b0b54806ff4e2127e7ddf3c7800bb0a429 (diff) | |
download | Qt-16220ada80b5131bfc0017ea5a600d9e36c4a469.zip Qt-16220ada80b5131bfc0017ea5a600d9e36c4a469.tar.gz Qt-16220ada80b5131bfc0017ea5a600d9e36c4a469.tar.bz2 |
Mark QGraphicsItemAnimation as deprecated
Task-number: QTBUG-5968
-rw-r--r-- | doc/src/frameworks-technologies/graphicsview.qdoc | 14 | ||||
-rw-r--r-- | src/gui/graphicsview/qgraphicsitemanimation.cpp | 1 |
2 files changed, 5 insertions, 10 deletions
diff --git a/doc/src/frameworks-technologies/graphicsview.qdoc b/doc/src/frameworks-technologies/graphicsview.qdoc index 1503f53..ba89c7d 100644 --- a/doc/src/frameworks-technologies/graphicsview.qdoc +++ b/doc/src/frameworks-technologies/graphicsview.qdoc @@ -437,13 +437,10 @@ \section2 Animation Graphics View supports animation at several levels. You can easily - assemble animation paths by associating a QGraphicsItemAnimation with - your item. This allows timeline controlled animations that operate at - a steady speed on all platforms (although the frame rate may vary - depending on the platform's performance). QGraphicsItemAnimation - allows you to create a path for an item's position, rotation, scale, - shear and translation. The animation can be controlled by a QSlider, - or more commonly by QTimeLine. + assemble animation by using the Animation Framework. For that you'll + need your items to inherit from QGraphicsObject and associate + QPropertyAnimation with them. QPropertyAnimation allows to animate any + QObject property. Another option is to create a custom item that inherits from QObject and QGraphicsItem. The item can the set up its own timers, and control @@ -454,9 +451,6 @@ QGraphicsScene::advance(), which in turn calls QGraphicsItem::advance(). - See also the \l{Drag and Drop Robot Example}{Drag and Drop Robot} - example for an illustration of timeline-based animation techniques. - \section2 OpenGL Rendering To enable OpenGL rendering, you simply set a new QGLWidget as the diff --git a/src/gui/graphicsview/qgraphicsitemanimation.cpp b/src/gui/graphicsview/qgraphicsitemanimation.cpp index be2f300..b67ee2e 100644 --- a/src/gui/graphicsview/qgraphicsitemanimation.cpp +++ b/src/gui/graphicsview/qgraphicsitemanimation.cpp @@ -45,6 +45,7 @@ support for QGraphicsItem. \since 4.2 \ingroup graphicsview-api + \deprecated The QGraphicsItemAnimation class animates a QGraphicsItem. You can schedule changes to the item's transformation matrix at |