aboutsummaryrefslogtreecommitdiff
path: root/src/main_window.cc
diff options
context:
space:
mode:
authorccolin2021-01-03 19:55:04 +0100
committerccolin2021-01-03 19:55:04 +0100
commit5326f294ceb95f1b535d145b5fdbdc221f560d53 (patch)
treea5d9dee2ebfa6413aedd764e901f3df994888614 /src/main_window.cc
parentec4017bb0ff221c5c3e192a165c8d60a54f3bedc (diff)
add option to draw trajectories
Diffstat (limited to 'src/main_window.cc')
-rw-r--r--src/main_window.cc2
1 files changed, 2 insertions, 0 deletions
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);