|
|
|
@ -117,7 +117,7 @@ int QTSGraph::ReadKey() |
|
|
|
|
{ |
|
|
|
|
if(!EventKeyPressed || IDPressedKey == -1) |
|
|
|
|
{ |
|
|
|
|
while(!KeyPressed()) |
|
|
|
|
while(!KeyPressed() && this->isVisible()) |
|
|
|
|
Delay(100); |
|
|
|
|
} |
|
|
|
|
int t = IDPressedKey; |
|
|
|
@ -211,3 +211,11 @@ void QTSGraph::keyPressEvent(QKeyEvent *event) |
|
|
|
|
// Нажатие Esc
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void QTSGraph::closeEvent(QCloseEvent *event) |
|
|
|
|
{ |
|
|
|
|
//Закрытие окна
|
|
|
|
|
delete ResetTimer; |
|
|
|
|
delete StartTimer; |
|
|
|
|
delete this; |
|
|
|
|
} |
|
|
|
|