diff options
author | ccolin | 2021-01-03 12:30:16 +0100 |
---|---|---|
committer | ccolin | 2021-01-03 12:30:16 +0100 |
commit | 928d45c3fbfb6b00d8e0b79b63934ebd080b9456 (patch) | |
tree | 9e6b4f457d3c3130aa57b183f868e378e9810f5a /src/main_window.cc | |
parent | 8ad1cf1b89b8acae55e36d6bd4562dffd1bcc714 (diff) |
refactor drawing code
Diffstat (limited to 'src/main_window.cc')
-rw-r--r-- | src/main_window.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main_window.cc b/src/main_window.cc index 26d9601..cd85ae7 100644 --- a/src/main_window.cc +++ b/src/main_window.cc @@ -81,6 +81,7 @@ void MainWindow::open(const QString &path) { slider, &QSlider::setValue); slider->setEnabled(true); + // Settings pane connect(dc, &DroneController::collision, settings_pane, &SettingsPane::addCollision); connect(settings_pane, &SettingsPane::sphereRadiusChanged, [&](double _) { settings_pane->clearCollisions(); }); @@ -88,6 +89,8 @@ void MainWindow::open(const QString &path) { dc, &DroneController::computeCollisions); settings_pane->setEnabled(true); + glw.setPainter(dc); + dc->computeCollisions(.1); pause(); } |