diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 12:48:22 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 12:48:22 +0200 |
commit | 1edb87b13a58cbb87cbf99ee30cc5ee7eb15003a (patch) | |
tree | 2a50a92f0b206fc5eee43830606cded1c6eed68f /facetracknoir/facetracknoir.cpp | |
parent | e70bef88fdb5ffdf1c2dcf99ac9e22181d18f5ac (diff) |
Implement game name in the UI, lost previously due to refactoring.
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r-- | facetracknoir/facetracknoir.cpp | 8 |
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 **/
|