[Uml-devel] kdesdk/umbrello/umbrello/diagram

Luis De la Parra Blum lparrab at gmx.net
Mon Mar 31 15:02:04 UTC 2003


CVS commit by luis: 

revert change to use QList.
using Qpointarray instead


  M +6 -3      widgetfactory.cpp   1.10
  M +2 -2      widgetfactory.h   1.4


--- kdesdk/umbrello/umbrello/diagram/widgetfactory.h  #1.3:1.4
@@ -12,5 +12,4 @@
 
 #include <qobject.h>
-#include <qptrlist.h>
 
 
@@ -18,4 +17,5 @@ class UMLObject;
 class UMLAssociation;
 class QPoint;
+class QPointArray;
 
 namespace Umbrello{
@@ -33,5 +33,5 @@ protected:
         static DiagramElement* createUMLWidget( UMLObject* , Diagram *parent );
         static DiagramElement* createCustomWidget( int type, Diagram *parent );
-        static DiagramElement* createAssociationWidget( UMLAssociation*, UMLWidget *wA, UMLWidget *wB,const QPtrList<QPoint> &path, Diagram *parent );
+        static DiagramElement* createAssociationWidget( UMLAssociation*, UMLWidget *wA, UMLWidget *wB,const QPointArray &path, Diagram *parent );
         
 };

--- kdesdk/umbrello/umbrello/diagram/widgetfactory.cpp  #1.9:1.10
@@ -12,4 +12,6 @@
 #include <typeinfo>
 
+
+#include <qpointarray.h>
 #include <qptrlist.h>
 #include <qpoint.h>
@@ -65,9 +67,10 @@ DiagramElement* WidgetFactory:: createUM
 }
 
-DiagramElement* WidgetFactory::createAssociationWidget( UMLAssociation *assoc, UMLWidget *wA, UMLWidget *wB, const QPtrList<QPoint> &path, Diagram *parent )
+DiagramElement* WidgetFactory::createAssociationWidget( UMLAssociation *assoc, UMLWidget *wA, UMLWidget *wB, const QPointArray &path, Diagram *parent )
 {
         int id = parent->document()->getUniqueID();
-        DiagramElement *e = new AssociationWidget(parent, id, assoc, wA, wB);
-        return e;
+        AssociationWidget *assocW = new AssociationWidget(parent, id, assoc, wA, wB);
+        assocW->setPath( path );
+        return assocW;
 }
 






More information about the umbrello-devel mailing list