diff -r 7ced3733ba60 -r e0a3449f4458 floatobj.cpp --- a/floatobj.cpp Mon Oct 30 12:39:37 2006 +0000 +++ b/floatobj.cpp Mon Feb 12 09:28:46 2007 +0000 @@ -14,17 +14,17 @@ depth=-1; } -FloatObj::FloatObj (Q3Canvas* c):OrnamentedObj(c) +FloatObj::FloatObj (QGraphicsScene* s):OrnamentedObj(s) { -// cout << "Const FloatObj (c) called from MapCenterObj (c)\n"; +// cout << "Const FloatObj (s) called from MapCenterObj (s)\n"; setParObj (this); init(); depth=-1; } -FloatObj::FloatObj (Q3Canvas* c, LinkableMapObj* p):OrnamentedObj (c) +FloatObj::FloatObj (QGraphicsScene* s, LinkableMapObj* p):OrnamentedObj (s) { -// cout << "Const FloatObj (c,p)\n"; +// cout << "Const FloatObj (s,p)\n"; setParObj (p); depth=p->getDepth()+1; init(); @@ -50,12 +50,12 @@ setVisibility (other->visible); } -void FloatObj::setZ(const int &i) +void FloatObj::setZValue(const int &i) { zPlane=i; } -int FloatObj::z() +int FloatObj::zValue() { return zPlane; } @@ -73,12 +73,14 @@ void FloatObj::move (double x, double y) { MapObj::move(x,y); - selbox->move(x,y); + //selbox->setPos(x,y); + selbox->rect().moveTo (QPointF (x,y)); } -void FloatObj::move (QPoint p) +void FloatObj::move (QPointF p) { - move (p.x(), p.y()); + MapObj::move (p); + selbox->rect().moveTo (p); } void FloatObj::setDockPos() @@ -93,12 +95,12 @@ updateLink(); } -QRect FloatObj::getTotalBBox() +QRectF FloatObj::getTotalBBox() { return bbox; } -QRect FloatObj::getBBoxSizeWithChilds() +QRectF FloatObj::getBBoxSizeWithChilds() { return bboxTotal; }