[qet] [3191] element editor -> save element :

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3191
Author:   blacksun
Date:     2014-07-04 00:48:36 +0200 (Fri, 04 Jul 2014)
Log Message:
-----------
element editor -> save element :
text field ins't include in the bounding rect of the element (better behavior with xref and more handy in general use). 

Modified Paths:
--------------
    trunk/sources/editor/elementscene.cpp

Modified: trunk/sources/editor/elementscene.cpp
===================================================================
--- trunk/sources/editor/elementscene.cpp	2014-07-03 17:47:08 UTC (rev 3190)
+++ trunk/sources/editor/elementscene.cpp	2014-07-03 22:48:36 UTC (rev 3191)
@@ -522,6 +522,7 @@
 	foreach (QGraphicsItem *qgi, items()) {
 		if (qgi -> type() == ElementPrimitiveDecorator::Type) continue;
 		if (qgi -> type() == QGraphicsRectItem::Type) continue;
+		if (qgi -> type() == PartTextField::Type) continue;
 		if (CustomElementPart *cep = dynamic_cast <CustomElementPart*> (qgi)) {
 			esgr |= cep -> sceneGeometricRect();
 		}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/