summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-09-23 08:22:49 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-09-23 13:06:27 (GMT)
commit45bcb4b5a7f184cefbb6b928af2d8bd9a747956e (patch)
treeaa1ee97fa6cd1a151ea59397b52c8497ed695b4c
parent1e98062e49222588e2191f389c607867edbd21f6 (diff)
downloadQt-45bcb4b5a7f184cefbb6b928af2d8bd9a747956e.zip
Qt-45bcb4b5a7f184cefbb6b928af2d8bd9a747956e.tar.gz
Qt-45bcb4b5a7f184cefbb6b928af2d8bd9a747956e.tar.bz2
Paint arrow on top of node, not underneath it
It looked strange that the node and its drop shadow was painted on top of the arrow. Flip the z-axis around to make sure the arrow is painted on top. Task-number: QTBUG-4544 Reviewed-by: Gunnar (cherry picked from commit 33d104723a02297ffef53020d42b789284699534)
-rw-r--r--examples/graphicsview/elasticnodes/node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/graphicsview/elasticnodes/node.cpp b/examples/graphicsview/elasticnodes/node.cpp
index aac7abd..ef9bcc8 100644
--- a/examples/graphicsview/elasticnodes/node.cpp
+++ b/examples/graphicsview/elasticnodes/node.cpp
@@ -53,7 +53,7 @@ Node::Node(GraphWidget *graphWidget)
{
setFlag(ItemIsMovable);
setCacheMode(DeviceCoordinateCache);
- setZValue(1);
+ setZValue(-1);
}
void Node::addEdge(Edge *edge)