diff options
author | Alexis Menard <alexis.menard@trolltech.com> | 2009-04-07 18:11:32 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@trolltech.com> | 2009-04-07 18:11:32 (GMT) |
commit | 45c70c9834316f39a939b87450099560fd286a6e (patch) | |
tree | 0c19c8c0d0afb0a23b0a030ea4865b2526443e9f /src/gui/graphicsview/qgraphicssceneindex.cpp | |
parent | e2e30d5c0ca99a47cc142465436d5e0a3f616b82 (diff) | |
download | Qt-45c70c9834316f39a939b87450099560fd286a6e.zip Qt-45c70c9834316f39a939b87450099560fd286a6e.tar.gz Qt-45c70c9834316f39a939b87450099560fd286a6e.tar.bz2 |
Fixes: Default implementation for QGraphicsSceneIndex::removeItems and QGraphicsSceneIndex::insertItems
Diffstat (limited to 'src/gui/graphicsview/qgraphicssceneindex.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicssceneindex.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicssceneindex.cpp b/src/gui/graphicsview/qgraphicssceneindex.cpp index 7868388..d8c28ed 100644 --- a/src/gui/graphicsview/qgraphicssceneindex.cpp +++ b/src/gui/graphicsview/qgraphicssceneindex.cpp @@ -60,6 +60,19 @@ QGraphicsScene* QGraphicsSceneIndex::scene() return mscene; } +void QGraphicsSceneIndex::insertItems(const QList<QGraphicsItem *> &items) +{ + foreach (QGraphicsItem *item, items) + insertItem(item); +} + +void QGraphicsSceneIndex::removeItems(const QList<QGraphicsItem *> &items) +{ + foreach (QGraphicsItem *item, items) + removeItem(item); +} + + QT_END_NAMESPACE //#include "moc_qgraphicssceneindex.cpp" |