X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=testThread.cpp;h=5dd1a2fcaa6d713363a238afb22ed1e7d0181e52;hb=HEAD;hp=1d52705abce22b729604644813db2163f7788ec3;hpb=f4fde0bc1d952233a2fcf7fad824daf35747a689;p=qmemory diff --git a/testThread.cpp b/testThread.cpp index 1d52705..5dd1a2f 100644 --- a/testThread.cpp +++ b/testThread.cpp @@ -3,75 +3,68 @@ #include #include #include -TestThread::TestThread(QObject *parent):QThread(parent){ + +TestThread::TestThread(QObject *parent):QThread(parent) +{ colore=0; - attendiInputUtente=false; index=0; _score=0; - qsrand(QDateTime::currentDateTime().toTime_t()); } -TestThread::~TestThread(){ + +TestThread::~TestThread() +{ } void TestThread::run(){ - while(true){ - - qsrand(QDateTime::currentDateTime().toTime_t()); - sequenza.append(qrand()%9); - int i=0; - index=0; - - emit disableInterface(); - while(i