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