Rafael Arce Nazario hace 9 años
padre
commit
f1662d5be2
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      frog.cpp

+ 3
- 3
frog.cpp Ver fichero

@@ -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
 }