summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-11 09:50:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-11 09:50:05 +0200
commit0f8c7ac6658514cb85f69e6bd5b162aaac022530 (patch)
tree7eee8563bc17b3a4065e57682465d16a54cdbc08 /facetracknoir/ui.cpp
parent79a415aad234fe8718d6571375c1af51a1edf2a5 (diff)
parent009b46ad75319b268566cace02db3bd448a213f4 (diff)
Merge branch 'unstable' into trackhat
* unstable: ui: edit tab key order ui: set focus to start/stop buttons ft: game support
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 50250d7c..1123d6d9 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -90,6 +90,8 @@ MainWindow::MainWindow() :
"Configuration not saved.",
"Can't create configuration directory! Expect major malfunction.",
QMessageBox::Ok, QMessageBox::NoButton);
+
+ ui.btnStartTracker->setFocus();
}
void MainWindow::closeEvent(QCloseEvent *e)
@@ -282,6 +284,8 @@ void MainWindow::startTracker() {
updateButtonState(true, is_inertial);
maybe_save();
+
+ ui.btnStopTracker->setFocus();
}
void MainWindow::stopTracker( ) {
@@ -303,6 +307,8 @@ void MainWindow::stopTracker( ) {
updateButtonState(false, false);
set_title();
+
+ ui.btnStartTracker->setFocus();
}
void MainWindow::display_pose(const double *mapped, const double *raw)