diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-04-24 01:09:39 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-04-24 01:09:39 (GMT) |
commit | 728e1e1c3678768aafeb07ebe8e17dd2fbf047b2 (patch) | |
tree | c6243ba415e3c7b829d4be86fba3d3018ec224f7 | |
parent | 67185a8643c1a27cd30a660105333ea36605fba9 (diff) | |
download | Qt-728e1e1c3678768aafeb07ebe8e17dd2fbf047b2.zip Qt-728e1e1c3678768aafeb07ebe8e17dd2fbf047b2.tar.gz Qt-728e1e1c3678768aafeb07ebe8e17dd2fbf047b2.tar.bz2 |
Don't manually stack children on GraphicsView
GraphicsView now has a sane default stacking order.
-rw-r--r-- | src/declarative/canvas/qsimplecanvasitem.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/declarative/canvas/qsimplecanvasitem.cpp b/src/declarative/canvas/qsimplecanvasitem.cpp index 5e4b5fa..7d9f61c 100644 --- a/src/declarative/canvas/qsimplecanvasitem.cpp +++ b/src/declarative/canvas/qsimplecanvasitem.cpp @@ -626,12 +626,8 @@ void QSimpleCanvasItem::addChild(QSimpleCanvasItem *c) { Q_D(QSimpleCanvasItem); d->children.append(c); - if(d->graphicsItem) { - // XXX - GraphicsView does not preserve the stacking order of items - c->setZ(d->children.count()); - } else { + if(!d->graphicsItem) d->needsZOrder = true; - } childrenChanged(); } |