projects
/
ghostsoverboard
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Autopausetimer now singleshot
[ghostsoverboard]
/
timercontrolledgraphicspixmapobject.cpp
diff --git
a/timercontrolledgraphicspixmapobject.cpp
b/timercontrolledgraphicspixmapobject.cpp
index
c9896c1
..
52fb616
100644
(file)
--- 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();
}