From 06dba9b6df63766d63cf3f090be6a5ae946d8c83 Mon Sep 17 00:00:00 2001 From: Marco Bubke <marco.bubke@nokia.com> Date: Tue, 20 Apr 2010 17:35:31 +0200 Subject: [PATCH] Negative Z will stack an item behind its parent in the formeditor Task-number: BAUHAUS-618 Reviewed-by: kkoehne --- src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp b/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp index 1122cab49b3..8ca62ca3122 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp +++ b/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp @@ -83,6 +83,7 @@ void FormEditorItem::setup() setContentVisible(qmlItemNode().instanceValue("visible").toBool()); setFlag(QGraphicsItem::ItemIsMovable, true); + setFlag(QGraphicsItem::ItemNegativeZStacksBehindParent, true); updateGeometry(); updateVisibilty(); } -- GitLab