summaryrefslogtreecommitdiffhomepage
path: root/tracker-kinect-face/kinect_face_settings.cpp
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-02-03 15:03:57 +0100
committerStéphane Lenclud <github@lenclud.com>2019-02-07 13:24:14 +0100
commit4508be24ef4adc4dac0c40ef316b07da75765b77 (patch)
tree9cd408b7954a6cbb9f58200179d1b25a584ef415 /tracker-kinect-face/kinect_face_settings.cpp
parent7397242cb156ae0d1e942fba9d209b8627a2072e (diff)
Kinect: Limit actual frame rate to 30Hz.
Fixing settings dialog.
Diffstat (limited to 'tracker-kinect-face/kinect_face_settings.cpp')
-rw-r--r--tracker-kinect-face/kinect_face_settings.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/tracker-kinect-face/kinect_face_settings.cpp b/tracker-kinect-face/kinect_face_settings.cpp
index 53aada06..238a3da6 100644
--- a/tracker-kinect-face/kinect_face_settings.cpp
+++ b/tracker-kinect-face/kinect_face_settings.cpp
@@ -17,29 +17,31 @@
#include <QDebug>
-test_dialog::test_dialog()
+KinectFaceSettings::KinectFaceSettings()
{
ui.setupUi(this);
connect(ui.buttonBox, &QDialogButtonBox::clicked, [this](QAbstractButton* btn) {
- if (btn == ui.buttonBox->button(QDialogButtonBox::Abort))
- // NOLINTNEXTLINE
- *(volatile int*)nullptr = 0;
+ if (btn == ui.buttonBox->button(QDialogButtonBox::Abort))
+ {
+ // NOLINTNEXTLINE
+ //*(volatile int*)nullptr = 0;
+ }
});
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK()));
connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel()));
}
-void test_dialog::doOK()
+void KinectFaceSettings::doOK()
{
//s.b->save();
close();
}
-void test_dialog::doCancel()
+void KinectFaceSettings::doCancel()
{
close();
}
-OPENTRACK_DECLARE_TRACKER(KinectFaceTracker, test_dialog, test_metadata)
+OPENTRACK_DECLARE_TRACKER(KinectFaceTracker, KinectFaceSettings, KinectFaceMetadata)