Commit 3f7b7be4 authored by Thiago Santini's avatar Thiago Santini

Sets focus on GazeEstimationWidget, start/stop calibration with hotkey

parent 97cc7411
......@@ -283,6 +283,9 @@ void GazeEstimationWidget::keyPressEvent(QKeyEvent *event)
if (isCollecting)
connect(this, SIGNAL(inDataTuple(DataTuple)), this, SLOT(collectMarkerTuple(DataTuple)) );
break;
case Qt::Key_S:
ui->startFinishButton->setChecked(!ui->startFinishButton->isChecked());
break;
default:
break;
}
......
......@@ -10,6 +10,9 @@
<height>629</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
......
......@@ -123,7 +123,6 @@ MainWindow::MainWindow(QWidget *parent) :
journal, SIGNAL(stopRecording()) );
checkForOpenH264();
}
MainWindow::~MainWindow()
......@@ -351,6 +350,7 @@ void MainWindow::widgetButtonReact(QMainWindow *window, bool checked)
if (checked) {
window->show();
window->raise();
window->setFocus();
} else
window->hide();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment