1.1 --- a/xlinkobj.cpp Thu Jun 01 14:51:57 2006 +0000
1.2 +++ b/xlinkobj.cpp Thu Nov 16 10:07:11 2006 +0000
1.3 @@ -1,6 +1,8 @@
1.4 #include "xlinkobj.h"
1.5 #include "branchobj.h"
1.6 #include "mapeditor.h"
1.7 +//Added by qt3to4:
1.8 +#include <Q3PointArray>
1.9
1.10
1.11 /////////////////////////////////////////////////////////////////
1.12 @@ -15,7 +17,7 @@
1.13 init();
1.14 }
1.15
1.16 -XLinkObj::XLinkObj (QCanvas* c):MapObj(c)
1.17 +XLinkObj::XLinkObj (Q3Canvas* c):MapObj(c)
1.18 {
1.19 // cout << "Const XLinkObj (c) called from MapCenterObj (c)\n";
1.20 init();
1.21 @@ -40,12 +42,12 @@
1.22 xLinkState=undefinedXLink;
1.23
1.24 color=QColor (180,180,180);
1.25 - line=new QCanvasLine (canvas);
1.26 + line=new Q3CanvasLine (canvas);
1.27 width=1;
1.28 line->setPen (QPen(color, width));
1.29 line->setZ (Z_XLINK);
1.30
1.31 - poly=new QCanvasPolygon (canvas);
1.32 + poly=new Q3CanvasPolygon (canvas);
1.33 poly->setBrush( color );
1.34 poly->setZ (Z_XLINK);
1.35
1.36 @@ -159,7 +161,7 @@
1.37 void XLinkObj::updateXLink()
1.38 {
1.39 QPoint a,b;
1.40 - QPointArray pa (3);
1.41 + Q3PointArray pa (3);
1.42 if (visBranch)
1.43 {
1.44 // Only one of the linked branches is visible