Rafael Arce Nazario преди 9 години
родител
ревизия
f1662d5be2
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3
    3
      frog.cpp

+ 3
- 3
frog.cpp Целия файл

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