From 5326f294ceb95f1b535d145b5fdbdc221f560d53 Mon Sep 17 00:00:00 2001 From: ccolin Date: Sun, 3 Jan 2021 19:55:04 +0100 Subject: add option to draw trajectories --- src/main_window.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main_window.cc') diff --git a/src/main_window.cc b/src/main_window.cc index 9b4dff0..0471641 100644 --- a/src/main_window.cc +++ b/src/main_window.cc @@ -89,6 +89,8 @@ void MainWindow::open(const QString &path) { dc, &DroneController::computeCollisions); connect(settings_pane, &SettingsPane::sphereRadiusChanged, dc, &DroneController::displaySpheres); + connect(settings_pane, &SettingsPane::toggledTrajectories, + dc, &DroneController::setDrawTrajectories); settings_pane->setEnabled(true); glw.setPainter(dc); -- cgit v1.2.3-70-g09d2