X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=timercontrolledgraphicspixmapobject.cpp;h=52fb616346040ec601ad66c0ac99f208bb99aef0;hb=HEAD;hp=c9896c1d8f3a049047b38d1922b74775948c5a89;hpb=fc5de9a3bac1a47d281a12a6f5a6e82c3c6c771b;p=ghostsoverboard diff --git a/timercontrolledgraphicspixmapobject.cpp b/timercontrolledgraphicspixmapobject.cpp index c9896c1..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())); } @@ -53,6 +53,7 @@ void TimerControlledGraphicsPixmapObject::setSpeed(int speed) } else stoppedBecauseInvalidTime_ = true; + timer_.stop(); }