1.1 --- a/xlinkobj.h Tue Sep 05 09:47:14 2006 +0000
1.2 +++ b/xlinkobj.h Tue Apr 10 13:22:52 2007 +0000
1.3 @@ -9,14 +9,14 @@
1.4 class XLinkObj:public MapObj {
1.5 public:
1.6 XLinkObj ();
1.7 - XLinkObj (Q3Canvas*);
1.8 + XLinkObj (QGraphicsScene*);
1.9 ~XLinkObj ();
1.10 virtual void init ();
1.11 virtual void copy (XLinkObj*);
1.12 void setBegin (BranchObj*);
1.13 BranchObj* getBegin();
1.14 void setEnd (BranchObj*);
1.15 - void setEnd (QPoint);
1.16 + void setEnd (QPointF);
1.17 BranchObj* getEnd();
1.18 void setColor(QColor);
1.19 QColor getColor();
1.20 @@ -35,16 +35,17 @@
1.21
1.22 private:
1.23 static int arrowSize;
1.24 + QPen pen;
1.25 QColor color;
1.26 int width;
1.27 - Q3CanvasLine *line;
1.28 - Q3CanvasPolygon *poly;
1.29 + QGraphicsLineItem *line;
1.30 + QGraphicsPolygonItem *poly;
1.31 BranchObj *beginBranch;
1.32 BranchObj *endBranch;
1.33 BranchObj *visBranch; // the "visible" part of a partially scrolled link
1.34 XLinkState xLinkState; // init during drawing or active
1.35 - QPoint beginPos;
1.36 - QPoint endPos;
1.37 + QPointF beginPos;
1.38 + QPointF endPos;
1.39 };
1.40
1.41 #endif