From 603c2ba63e0ca79978183cab447379c751a899e1 Mon Sep 17 00:00:00 2001 From: xavier Date: Fri, 11 May 2012 05:41:40 +0000 Subject: [PATCH] Element editor: new parts are now added with a zValue higher than other non-terminal parts. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1798 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/editorcommands.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/editor/editorcommands.cpp b/sources/editor/editorcommands.cpp index 741458fc8..a3e8a2f40 100644 --- a/sources/editor/editorcommands.cpp +++ b/sources/editor/editorcommands.cpp @@ -236,6 +236,7 @@ void AddPartCommand::undo() { void AddPartCommand::redo() { // le premier appel a redo, lors de la construction de l'objet, ne doit pas se faire if (first_redo) { + part -> setZValue(editor_scene -> items().count()); editor_scene -> clearSelection(); part -> setSelected(true); first_redo = false;