[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesdk/umbrello/umbrello/diagram
From:       Luis De la Parra Blum <lparrab () gmx ! net>
Date:       2003-03-31 23:01:18
[Download RAW message or body]

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;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic