Commit 8eaa9b90 authored by Paul Tvete's avatar Paul Tvete
Browse files

QObject::killTimers() doesn't exist anymore

Now we have to kill timers individually.
parent 5f41df57
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ void CannonField::shoot()
    shoot_ang  = ang;
    shoot_f    = f;
    shooting   = true;
    startTimer( 50 );
    timerId = startTimer( 50 );
}

void  CannonField::newTarget()
@@ -170,7 +170,7 @@ void CannonField::mouseReleaseEvent( QMouseEvent *e )
void CannonField::stopShooting()
{
    shooting = false;
    killTimers();
    killTimer(timerId);
}

void CannonField::paintShot( QPainter *p )
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ private:
    bool  shooting;

    int   timerCount;
    int   timerId;
    float shoot_ang;
    float shoot_f;