[qet] [2036] Element editor: the decorator now relies on sceneGeometricRect() instead of sceneBoundingRect().

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


Revision: 2036
Author:   xavier
Date:     2013-02-11 19:35:16 +0100 (Mon, 11 Feb 2013)
Log Message:
-----------
Element editor: the decorator now relies on sceneGeometricRect() instead of sceneBoundingRect().

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

Modified: trunk/sources/editor/elementprimitivedecorator.cpp
===================================================================
--- trunk/sources/editor/elementprimitivedecorator.cpp	2013-02-11 18:35:13 UTC (rev 2035)
+++ trunk/sources/editor/elementprimitivedecorator.cpp	2013-02-11 18:35:16 UTC (rev 2036)
@@ -33,9 +33,9 @@
 QRectF ElementPrimitiveDecorator::internalBoundingRect() const {
 	if (!decorated_items_.count() || !scene()) return(QRectF());
 	
-	QRectF rect = getSceneBoundingRect(decorated_items_.first() -> toItem());
+	QRectF rect = decorated_items_.first() -> sceneGeometricRect();
 	foreach (CustomElementPart *item, decorated_items_) {
-		rect = rect.united(getSceneBoundingRect(item -> toItem()));
+		rect = rect.united(item -> sceneGeometricRect());
 	}
 	return(rect);
 }


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