summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-27 12:48:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-27 12:48:22 +0200
commit1edb87b13a58cbb87cbf99ee30cc5ee7eb15003a (patch)
tree2a50a92f0b206fc5eee43830606cded1c6eed68f /facetracknoir/facetracknoir.cpp
parente70bef88fdb5ffdf1c2dcf99ac9e22181d18f5ac (diff)
Implement game name in the UI, lost previously due to refactoring.
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r--facetracknoir/facetracknoir.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index c031f2a8..59efeb60 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -857,7 +857,7 @@ void FaceTrackNoIR::startTracker( ) {
/** stop tracking the face **/
void FaceTrackNoIR::stopTracker( ) {
-
+ ui.game_name->setText("Not connected");
#if defined(_WIN32) || defined(__WIN32)
if (keybindingWorker)
{
@@ -1002,7 +1002,11 @@ void FaceTrackNoIR::showHeadPose() {
if (_curve_config) {
_curve_config->update();
}
-
+ if (Libraries->pProtocol)
+ {
+ QString name = Libraries->pProtocol->getGameName();
+ ui.game_name->setText(name);
+ }
}
/** toggles Video Widget **/