|
@@ -52,7 +52,7 @@ void frog::reset(){
|
52
|
52
|
myTimer->stop();
|
53
|
53
|
delete myTimer;
|
54
|
54
|
myTimer = new QTimer;
|
55
|
|
- connect(myTimer, SIGNAL(timeout()), this, SLOT(mySlot()));
|
|
55
|
+ connect(myTimer, SIGNAL(timeout()), this, SLOT(animate()));
|
56
|
56
|
|
57
|
57
|
computeNenuPositions();
|
58
|
58
|
}
|
|
@@ -80,7 +80,7 @@ void frog::paintEvent(QPaintEvent *){
|
80
|
80
|
delete myTimer;
|
81
|
81
|
myTimer = new QTimer;
|
82
|
82
|
QThread::msleep(5);
|
83
|
|
- connect(myTimer, SIGNAL(timeout()), this, SLOT(mySlot()));
|
|
83
|
+ connect(myTimer, SIGNAL(timeout()), this, SLOT(animate()));
|
84
|
84
|
|
85
|
85
|
p.drawPixmap(temp2,-5,600,400,QPixmap(back));
|
86
|
86
|
p.drawPixmap(temp,-5,600,400,QPixmap(back));
|
|
@@ -223,6 +223,6 @@ void frog::run(int aa, int bb, int cc){
|
223
|
223
|
C = cc;
|
224
|
224
|
// buttonCounter++;
|
225
|
225
|
|
226
|
|
- connect(myTimer, SIGNAL(timeout()), this, SLOT(mySlot()));
|
|
226
|
+ connect(myTimer, SIGNAL(timeout()), this, SLOT(animate()));
|
227
|
227
|
myTimer->start(25);
|
228
|
228
|
}
|