summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_ht
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-03 21:34:49 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-03 21:34:49 +0100
commitbbaefce3a90b3c45f23e494f76ed15fa9a00d5e8 (patch)
tree28ef5677081348be4a3addf8e28028990245cd4b /ftnoir_tracker_ht
parentcc9b496e2de68b983dbc5fde27a1379cc9602a35 (diff)
fix apple build
Diffstat (limited to 'ftnoir_tracker_ht')
-rw-r--r--ftnoir_tracker_ht/ftnoir_tracker_ht.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
index db0ef6d6..77eede52 100644
--- a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
+++ b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
@@ -62,7 +62,7 @@ static QList<QString> get_camera_names(void) {
pEnumCat->Release();
}
pSysDevEnum->Release();
-#else
+#elsif !defined(__APPLE__)
for (int i = 0; i < 16; i++) {
char buf[128];
sprintf(buf, "/dev/video%d", i);
@@ -281,15 +281,15 @@ TrackerControls::TrackerControls()
{
ui.setupUi(this);
setAttribute(Qt::WA_NativeWindow, true);
- connect(ui.cameraName, SIGNAL(currentIndexChanged(int)), this, SLOT(settingChanged(int)));
- connect(ui.cameraFPS, SIGNAL(currentIndexChanged(int)), this, SLOT(settingChanged(int)));
+ connect(ui.cameraName, SIGNAL(valueChanged(int)), this, SLOT(settingChanged(int)));
+ connect(ui.cameraFPS, SIGNAL(valueChanged(int)), this, SLOT(settingChanged(int)));
connect(ui.cameraFOV, SIGNAL(valueChanged(double)), this, SLOT(settingChanged(double)));
- connect(ui.rx, SIGNAL(stateChanged(int)), this, SLOT(settingChanged(int)));
- connect(ui.ry, SIGNAL(stateChanged(int)), this, SLOT(settingChanged(int)));
- connect(ui.rz, SIGNAL(stateChanged(int)), this, SLOT(settingChanged(int)));
- connect(ui.tx, SIGNAL(stateChanged(int)), this, SLOT(settingChanged(int)));
- connect(ui.ty, SIGNAL(stateChanged(int)), this, SLOT(settingChanged(int)));
- connect(ui.tz, SIGNAL(stateChanged(int)), this, SLOT(settingChanged(int)));
+ connect(ui.rx, SIGNAL(valueChanged(int)), this, SLOT(settingChanged(int)));
+ connect(ui.ry, SIGNAL(valueChanged(int)), this, SLOT(settingChanged(int)));
+ connect(ui.rz, SIGNAL(valueChanged(int)), this, SLOT(settingChanged(int)));
+ connect(ui.tx, SIGNAL(valueChanged(int)), this, SLOT(settingChanged(int)));
+ connect(ui.ty, SIGNAL(valueChanged(int)), this, SLOT(settingChanged(int)));
+ connect(ui.tz, SIGNAL(valueChanged(int)), this, SLOT(settingChanged(int)));
connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(doCancel()));
connect(ui.buttonOK, SIGNAL(clicked()), this, SLOT(doOK()));
//connect(ui.buttonSettings, SIGNAL(clicked()), this, SLOT(cameraSettings()));