diff options
author | DaMichel <mw.pub@welter-4d.de> | 2016-07-30 17:52:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-30 17:52:51 +0200 |
commit | ae51598b329f7120c6ee07e2ed127a607ff68f1e (patch) | |
tree | 5530cadb7f2cd5794b06510a77a131924c6bb8a5 /gui/ui.cpp | |
parent | c346bb024b2a109debf59774eb96971d32a528ae (diff) | |
parent | 44428d4b5eeae78fd9cdedce840f7de2ddc6c6b2 (diff) |
Merge pull request #398 from DaMichel/logging
Track Logging
Diffstat (limited to 'gui/ui.cpp')
-rw-r--r-- | gui/ui.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -285,6 +285,7 @@ void MainWindow::reload_options() ensure_tray(); } + void MainWindow::startTracker() { if (work) @@ -331,6 +332,12 @@ void MainWindow::startTracker() // trackers take care of layout state updates const bool is_inertial = ui.video_frame->layout() == nullptr; updateButtonState(true, is_inertial); + + // Update the state of the options window directly. + // Might be better to emit signals and allow the options window + // to connect its slots to them (?) + if (options_widget) + options_widget->update_widgets_states(true); ui.btnStopTracker->setFocus(); } @@ -364,6 +371,9 @@ void MainWindow::stopTracker() display_pose(p, p); } updateButtonState(false, false); + + if (options_widget) + options_widget->update_widgets_states(false); set_title(); @@ -495,6 +505,7 @@ void MainWindow::show_options_dialog() if (mk_window(&options_widget, [&](bool flag) -> void { set_keys_enabled(!flag); })) { connect(options_widget.get(), &OptionsDialog::saving, this, &MainWindow::reload_options); + options_widget->update_widgets_states(work != nullptr); } } |