#include "countdown.h" #include "unistd.h" Countdown::Countdown() { this->running = 1; } void Countdown::setStop(){ this->running = 0; } void Countdown::run(){ while(this->running){ sleep(1); emit CountdownUpdate(); } }