main.cpp 326 B

12345678910111213141516171819202122232425
  1. #include "Client.h"
  2. #include "App.h"
  3. #include <QThread>
  4. #include "Settings.h"
  5. class Sleeper: public QThread
  6. {
  7. public:
  8. static void msleep(unsigned long msecs)
  9. {
  10. QThread::msleep(msecs);
  11. }
  12. };
  13. int main(int argc, char **argv)
  14. {
  15. App a(argc, argv);
  16. for(;;)
  17. {
  18. App::processEvents();
  19. Sleeper::msleep(1);
  20. }
  21. return 0;
  22. }