From 525a01eabe4e202b1854953eb415d473e07e651d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 11 Oct 2015 07:07:43 +0200 Subject: ui: set focus to start/stop buttons --- facetracknoir/ui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp index d90fc762..fd20084d 100644 --- a/facetracknoir/ui.cpp +++ b/facetracknoir/ui.cpp @@ -108,6 +108,8 @@ MainWindow::MainWindow() : "Configuration not saved.", "Can't create configuration directory! Expect major malfunction.", QMessageBox::Ok, QMessageBox::NoButton); + + ui.btnStartTracker->setFocus(); } bool MainWindow::get_new_config_name_from_dialog(QString& ret) @@ -300,6 +302,8 @@ void MainWindow::startTracker() { updateButtonState(true, is_inertial); maybe_save(); + + ui.btnStopTracker->setFocus(); } void MainWindow::stopTracker( ) { @@ -329,6 +333,8 @@ void MainWindow::stopTracker( ) { updateButtonState(false, false); set_title(); + + ui.btnStartTracker->setFocus(); } void MainWindow::display_pose(const double *mapped, const double *raw) -- cgit v1.2.3