|
|
@ -118,7 +118,7 @@ int QTSGraph::ReadKey() |
|
|
|
if(!EventKeyPressed || IDPressedKey == -1) |
|
|
|
if(!EventKeyPressed || IDPressedKey == -1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
while(!KeyPressed() && this->isVisible()) |
|
|
|
while(!KeyPressed() && this->isVisible()) |
|
|
|
Delay(100); |
|
|
|
Delay(1); |
|
|
|
} |
|
|
|
} |
|
|
|
int t = IDPressedKey; |
|
|
|
int t = IDPressedKey; |
|
|
|
IDPressedKey = -1; |
|
|
|
IDPressedKey = -1; |
|
|
@ -217,5 +217,5 @@ void QTSGraph::closeEvent(QCloseEvent *event) |
|
|
|
//Закрытие окна
|
|
|
|
//Закрытие окна
|
|
|
|
delete ResetTimer; |
|
|
|
delete ResetTimer; |
|
|
|
delete StartTimer; |
|
|
|
delete StartTimer; |
|
|
|
delete this; |
|
|
|
exit(0); |
|
|
|
} |
|
|
|
} |
|
|
|