projects
/
qmemory
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Inserimento suoni
[qmemory]
/
testThread.cpp
diff --git
a/testThread.cpp
b/testThread.cpp
index
1d52705
..
fcdf34a
100644
(file)
--- a/
testThread.cpp
+++ b/
testThread.cpp
@@
-16,6
+16,7
@@
TestThread::~TestThread(){
}
void TestThread::run(){
}
void TestThread::run(){
+ sleep(1);
while(true){
qsrand(QDateTime::currentDateTime().toTime_t());
while(true){
qsrand(QDateTime::currentDateTime().toTime_t());
@@
-28,9
+29,9
@@
void TestThread::run(){
{
emit generate(sequenza.at(i));
qDebug()<<sequenza.at(i);
{
emit generate(sequenza.at(i));
qDebug()<<sequenza.at(i);
- msleep(500 - (_score*5));
+ msleep(500 - (_score*2));
emit generate(sequenza.at(i));
emit generate(sequenza.at(i));
- msleep(500 - (_score*5));
+ msleep(500 - (_score*2));
i++;
}
i=0;
i++;
}
i=0;
@@
-55,6
+56,7
@@
void TestThread::updateCaption(int inputUser){
_score++;
emit score(_score);
if(index==sequenza.size()){
_score++;
emit score(_score);
if(index==sequenza.size()){
+ sleep(1);
attendiInputUtente=false;
index=0;
}
attendiInputUtente=false;
index=0;
}