X-Git-Url: http://git.maemo.org/git/?p=qmemory;a=blobdiff_plain;f=testThread.cpp;h=e3087e1ef0163ff8adc9b5fe3623552905c4a70a;hp=7c6ba3c3e6dc2229a11f48a7a29b3f1835815460;hb=44f2521902036db1caced5a4f418e78ef3a686ab;hpb=06a7dabc6c41f79397c03f4cc67a07beb7f20f80 diff --git a/testThread.cpp b/testThread.cpp index 7c6ba3c..e3087e1 100644 --- a/testThread.cpp +++ b/testThread.cpp @@ -5,10 +5,9 @@ #include TestThread::TestThread(QObject *parent):QThread(parent){ colore=0; - attendiInputUtente=false; - _score=0; index=0; + _score=0; qsrand(QDateTime::currentDateTime().toTime_t()); @@ -16,67 +15,64 @@ TestThread::TestThread(QObject *parent):QThread(parent){ TestThread::~TestThread(){ } -void TestThread::run() -{ +void TestThread::run(){ + sleep(1); while(true){ - //msleep(200); - qsrand(QDateTime::currentDateTime().toTime_t()); - sequenza.append(qrand()%9); - int i=0; - - qDebug()<<"Init Emission"; - emit disableInterface(); - while(i