summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-16 21:18:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-16 21:18:30 +0200
commitfdcc4a6034ad0afffd68f0d6df9766c6c5a08495 (patch)
tree3a7ba7e4f5bccdac76234141ccbcc1fedfd8ccde /facetracknoir/facetracknoir.cpp
parent33ed4d75801d547572e4d3c55a4f459d28dcf646 (diff)
fix win32 typos
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r--facetracknoir/facetracknoir.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index af630bea..f5358329 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -183,8 +183,10 @@ FaceTrackNoIR::FaceTrackNoIR(QWidget *parent, Qt::WindowFlags flags) :
ui.lcdNumOutputRotY->setVisible(false);
ui.lcdNumOutputRotZ->setVisible(false);
+#ifndef _WIN32
connect(&keyCenter, SIGNAL(activated()), this, SLOT(shortcutRecentered()));
connect(&keyToggle, SIGNAL(activated()), this, SLOT(shortcutToggled()));
+#endif
}
/** destructor stops the engine and quits the faceapi **/
@@ -548,7 +550,7 @@ void FaceTrackNoIR::startTracker( ) {
}
#if defined(_WIN32)
- keybindingWorker = new KeybindingWorker(*this, &keyCenter, &keyToggle);
+ keybindingWorker = new KeybindingWorker(*this, keyCenter, keyToggle);
keybindingWorker->start();
#endif
@@ -939,7 +941,7 @@ void FaceTrackNoIR::bind_keyboard_shortcut(QxtGlobalShortcut& key, const QString
}
}
#else
-static void bind_keyboard_shotcut(Key& key, const QString label, QSettings& iniFile)
+static void bind_keyboard_shortcut(Key& key, const QString label, QSettings& iniFile)
{
const int idx = iniFile.value("Key_index_" + label, 0).toInt();
if (idx > 0)
@@ -967,8 +969,8 @@ void FaceTrackNoIR::bindKeyboardShortcuts()
bind_keyboard_shortcut(keyCenter, "Center", iniFile);
bind_keyboard_shortcut(keyToggle, "Toggle", iniFile);
#else
- bind_keyboard_shortcut(&keyCenter, "Center", iniFile));
- bind_keyboard_shortcut(&keyToggle, "Toggle", iniFile));
+ bind_keyboard_shortcut(keyCenter, "Center", iniFile);
+ bind_keyboard_shortcut(keyToggle, "Toggle", iniFile);
#endif
iniFile.endGroup ();