diff -r 5db8dfd30ea2 -r c2a05fa925a1 xlinkobj.h --- a/xlinkobj.h Thu Nov 23 16:18:26 2006 +0000 +++ b/xlinkobj.h Fri Dec 08 20:18:56 2006 +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