diff -r e95081c21da2 -r 1462e380b82b xlinkobj.h --- a/xlinkobj.h Tue Sep 05 09:47:14 2006 +0000 +++ b/xlinkobj.h Wed Apr 11 09:21:16 2007 +0000 @@ -9,14 +9,14 @@ class XLinkObj:public MapObj { public: XLinkObj (); - XLinkObj (Q3Canvas*); + XLinkObj (QGraphicsScene*); ~XLinkObj (); virtual void init (); virtual void copy (XLinkObj*); void setBegin (BranchObj*); BranchObj* getBegin(); void setEnd (BranchObj*); - void setEnd (QPoint); + void setEnd (QPointF); BranchObj* getEnd(); void setColor(QColor); QColor getColor(); @@ -35,16 +35,17 @@ private: static int arrowSize; + QPen pen; QColor color; int width; - Q3CanvasLine *line; - Q3CanvasPolygon *poly; + QGraphicsLineItem *line; + QGraphicsPolygonItem *poly; BranchObj *beginBranch; BranchObj *endBranch; BranchObj *visBranch; // the "visible" part of a partially scrolled link XLinkState xLinkState; // init during drawing or active - QPoint beginPos; - QPoint endPos; + QPointF beginPos; + QPointF endPos; }; #endif