[qet] [1798] Element editor: new parts are now added with a zValue higher than other non-terminal parts . |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 1798
Author: xavier
Date: 2012-05-11 07:41:40 +0200 (Fri, 11 May 2012)
Log Message:
-----------
Element editor: new parts are now added with a zValue higher than other non-terminal parts.
Modified Paths:
--------------
trunk/sources/editor/editorcommands.cpp
Modified: trunk/sources/editor/editorcommands.cpp
===================================================================
--- trunk/sources/editor/editorcommands.cpp 2012-05-10 19:26:29 UTC (rev 1797)
+++ trunk/sources/editor/editorcommands.cpp 2012-05-11 05:41:40 UTC (rev 1798)
@@ -236,6 +236,7 @@
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;