X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=timercontrolledgraphicspixmapobject.cpp;h=52fb616346040ec601ad66c0ac99f208bb99aef0;hb=5faedb352de981680e8a44dfcf7e37edfc2e00f5;hp=d5cbe46dd3fe9c6f7a36d8c159ea938ed0672600;hpb=c39bea30cf73be697adef537002043c0d3601df2;p=ghostsoverboard diff --git a/timercontrolledgraphicspixmapobject.cpp b/timercontrolledgraphicspixmapobject.cpp index d5cbe46..52fb616 100644 --- a/timercontrolledgraphicspixmapobject.cpp +++ b/timercontrolledgraphicspixmapobject.cpp @@ -29,7 +29,7 @@ TimerControlledGraphicsPixmapObject::TimerControlledGraphicsPixmapObject(QPixmap QObject(), QGraphicsPixmapItem(pixmap, parent) { setSpeed(speed); - direction_ = S; + changeDirection(); connect(&timer_,SIGNAL(timeout()),this,SLOT(move())); }