feat: added QT pause button

This commit is contained in:
djaidjai committed 2024-05-28 19:36:09 +02:00
1 parent 7b06a54542
commit 489727663c
4 files changed
+14 -4

No files matched your search

@@ -84,7 +84,6 @@ void MainWindow::setupTechniques() {
this->timer->SetClientData(program);
this->timer->setDt(DT);
intr->AddObserver(vtkCommand::TimerEvent, this->timer);
intr->AddObserver(vtkCommand::KeyPressEvent, this->timer);
intr->CreateRepeatingTimer(17); // 60 fps == 1000 / 60 == 16.7 ms per frame
}
@@ -236,3 +235,6 @@ void MainWindow::on_IregularlySubsampledButton_clicked(bool checked) {
}
void MainWindow::on_pauseButton_clicked(bool checked) {
this->timer->togglePaused();
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.