summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-11 07:07:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-11 07:07:43 +0200
commit525a01eabe4e202b1854953eb415d473e07e651d (patch)
tree89713774cf66eff9ca77694a420b9988ab7088a0 /facetracknoir/ui.cpp
parentd0198cc754649879fbbac3a6a1431578dd150b9d (diff)
ui: set focus to start/stop buttons
Diffstat (limited to 'facetracknoir/ui.cpp')
-rw-r--r--facetracknoir/ui.cpp6
1 files changed, 6 insertions, 0 deletions
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)