X-Git-Url: http://git.maemo.org/git/?p=qmemory;a=blobdiff_plain;f=testThread.cpp;h=5dd1a2fcaa6d713363a238afb22ed1e7d0181e52;hp=4c7dfb6ef9bfa4a00a460d32beaf1c6ac37e440a;hb=ceaea0c7105f5208cbdf98fa8b36faad87ac4c19;hpb=4140673498bea4854f187957133f887a45ddd253 diff --git a/testThread.cpp b/testThread.cpp index 4c7dfb6..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