aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/infinite-loop-process/main.cpp
blob: 08c24e543f79d8d0910d2018ffefa701343ce82a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <QThread>

class MyThread : public QThread
{
public:
    static void mySleep(unsigned long secs) { sleep(secs); } // sleep() is protected in Qt 4.
};

int main()
{
    MyThread::mySleep(60);
}