diff --git a/src/cellitem.cpp b/src/cellitem.cpp --- a/src/cellitem.cpp +++ b/src/cellitem.cpp @@ -29,17 +29,19 @@ CellItem::CellItem( Cell *c, QGraphicsSc : QGraphicsPolygonItem( 0, canvas ), SimItemBase( c, canvas){ } -void CellItem::userMove(double dx, double dy) { +void CellItem::userMove(double dx, double dy) +{ QGraphicsPolygonItem::moveBy( dx, dy ); // also move the cell itself class_cast(obj)->x += (dx/Cell::Magnification()); class_cast(obj)->y += (dy/Cell::Magnification()); - + class_cast(obj)->Move( (dx/Cell::Magnification()), (dy/Cell::Magnification()) ); } - QPainterPath CellItem::shape() const { return QGraphicsPolygonItem::shape(); } QRectF CellItem::boundingRect() const { return QGraphicsPolygonItem::boundingRect(); } + +/* finis */