12345678910111213141516171819202122232425 |
- #include "Client.h"
- #include "App.h"
- #include <QThread>
- #include "Settings.h"
- class Sleeper: public QThread
- {
- public:
- static void msleep(unsigned long msecs)
- {
- QThread::msleep(msecs);
- }
- };
- int main(int argc, char **argv)
- {
- App a(argc, argv);
- for(;;)
- {
- App::processEvents();
- Sleeper::msleep(1);
- }
- return 0;
- }
|