Исправление очистки при закрытии. Уменьшение время ожидания клавиши.

main
Артём Проскурнёв 4 years ago
parent 71318eb774
commit 6a9ebdd9fb
  1. 4
      qtsgraph.cpp

@ -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);
} }

Loading…
Cancel
Save