[Uml-devel] branches/work/soc-umbrello/umbrello

Ralf Habacker ralf.habacker at gmail.com
Thu Aug 9 08:15:57 UTC 2012


SVN commit 1309864 by habacker:

QLineF replaced by UMLSceneLine to reduce the diff to trunk.

 M  +1 -0      umlscene.h  
 M  +2 -2      widgets/widget_utils.cpp  


--- branches/work/soc-umbrello/umbrello/umlscene.h #1309863:1309864
@@ -63,6 +63,7 @@
 typedef QPointF UMLScenePoint;
 typedef QRectF UMLSceneRect;
 typedef QSizeF UMLSceneSize;
+typedef QLineF UMLSceneLine;
 typedef qreal UMLSceneValue;
 // event types
 typedef QGraphicsSceneMouseEvent UMLSceneMouseEvent;
--- branches/work/soc-umbrello/umbrello/widgets/widget_utils.cpp #1309863:1309864
@@ -138,9 +138,9 @@
         painter->drawPolygon(poly);
 
         // Now draw the triangle base and height edges.
-        QLineF heightEdge(poly[1], poly[1] + QPointF(0, triSize.height()));
+        UMLSceneLine heightEdge(poly[1], poly[1] + QPointF(0, triSize.height()));
         painter->drawLine(heightEdge);
-        QLineF baseEdge(heightEdge.p2(), poly[2]);
+        UMLSceneLine baseEdge(heightEdge.p2(), poly[2]);
         painter->drawLine(baseEdge);
     }
 




More information about the umbrello-devel mailing list