summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-05-18 02:43:11 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-05-18 02:43:11 (GMT)
commitdd9899ac1523d8ed38eb689d486c3cfb3ad5236a (patch)
treeab43bb887b442003d9e5535a0dad5b8d3fb557a9 /src/declarative
parent3e5c94c368c261190992b9c0f8b4223c35ede407 (diff)
downloadQt-dd9899ac1523d8ed38eb689d486c3cfb3ad5236a.zip
Qt-dd9899ac1523d8ed38eb689d486c3cfb3ad5236a.tar.gz
Qt-dd9899ac1523d8ed38eb689d486c3cfb3ad5236a.tar.bz2
GraphicsView preserves stacking order
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/canvas/qsimplecanvasitem.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/declarative/canvas/qsimplecanvasitem.cpp b/src/declarative/canvas/qsimplecanvasitem.cpp
index a62dbc9..dfe02c0 100644
--- a/src/declarative/canvas/qsimplecanvasitem.cpp
+++ b/src/declarative/canvas/qsimplecanvasitem.cpp
@@ -1505,11 +1505,8 @@ void QSimpleCanvasItemPrivate::convertToGraphicsItem(QGraphicsItem *parent)
q->setClipType(clip);
- for (int ii = 0; ii < children.count(); ++ii) {
+ for (int ii = 0; ii < children.count(); ++ii)
static_cast<QSimpleCanvasItemPrivate*>(children.at(ii)->d_ptr)->convertToGraphicsItem(graphicsItem);
- if (children.at(ii)->z() == 0)
- children.at(ii)->setZ(ii);
- }
}
/*!