summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-09-23 08:22:49 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-09-23 08:24:17 (GMT)
commit33d104723a02297ffef53020d42b789284699534 (patch)
tree89b9c27a62d7102d26445c341a484d5b73658663 /examples
parent6d3764ee563db117d03b9c759e491b70a3c1df7d (diff)
downloadQt-33d104723a02297ffef53020d42b789284699534.zip
Qt-33d104723a02297ffef53020d42b789284699534.tar.gz
Qt-33d104723a02297ffef53020d42b789284699534.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
Diffstat (limited to 'examples')
-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 3a218e7..b878011 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)