[Uml-devel] KDE/kdesdk/umbrello/umbrello/widgets

Ralf Habacker ralf.habacker at gmail.com
Wed Feb 1 21:13:37 UTC 2012


SVN commit 1277476 by habacker:

Moved AssociationLine::SubsetSymbol to top of file where the other subclass methods are.

 M  +16 -16    associationline.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/widgets/associationline.cpp #1277475:1277476
@@ -60,6 +60,22 @@
     p.drawEllipse( (int)x() - radius, (int)y() - radius, diameter, diameter);
 }
 
+AssociationLine::SubsetSymbol::SubsetSymbol(UMLViewCanvas* canvas)
+    : UMLSceneEllipse(canvas) {
+    inclination = 0;
+}
+
+void AssociationLine::SubsetSymbol::drawShape(QPainter& p) {
+    p.translate(QPoint( ( int )x(), ( int )y() ) );
+    p.rotate( inclination );
+    int width = 30, height = 20;
+    int startAngle = 90, endAngle = 180;
+    p.drawArc( 0 ,-height/2, width, height, startAngle*16, endAngle*16 );
+    // revert back
+    p.rotate( -inclination );
+    p.translate( QPoint( ( int )-x(), ( int )-y() ) );
+}
+
 /**
  * Constructor.
  */
@@ -1241,20 +1257,4 @@
     }
 }
 
-AssociationLine::SubsetSymbol::SubsetSymbol(UMLViewCanvas* canvas)
-    : UMLSceneEllipse(canvas) {
-    inclination = 0;
-}
-
-void AssociationLine::SubsetSymbol::drawShape(QPainter& p) {
-    p.translate(QPoint( ( int )x(), ( int )y() ) );
-    p.rotate( inclination );
-    int width = 30, height = 20;
-    int startAngle = 90, endAngle = 180;
-    p.drawArc( 0 ,-height/2, width, height, startAngle*16, endAngle*16 );
-    // revert back
-    p.rotate( -inclination );
-    p.translate( QPoint( ( int )-x(), ( int )-y() ) );
-}
-
 #include "associationline.moc"




More information about the umbrello-devel mailing list