2012-05-22 13:09:48 -04:00
|
|
|
#ifndef SLEEP_H
|
|
|
|
#define SLEEP_H
|
|
|
|
#include <qthread.h>
|
|
|
|
|
|
|
|
class Sleep : public QThread
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void msleep(int ms) {
|
|
|
|
QThread::msleep(ms);
|
|
|
|
}
|
|
|
|
static int idealThreadCount() {
|
|
|
|
return QThread::idealThreadCount();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SLEEP_H
|