diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-31 17:10:11 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-31 17:10:11 +0100 |
commit | 1882ed8c0dfacf9994201e6ca99635d067d32e46 (patch) | |
tree | eefcdf639d755ad4ffba8ff10b29770843baadfd /opentrack-api | |
parent | ecbb8c37edd201115ebc4a0d1cc272f1c56933c2 (diff) |
api: add a mode where video frame isn't visible at all
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'opentrack-api')
-rw-r--r-- | opentrack-api/opentrack-guts.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/opentrack-api/opentrack-guts.h b/opentrack-api/opentrack-guts.h index fd94ea34..db897edc 100644 --- a/opentrack-api/opentrack-guts.h +++ b/opentrack-api/opentrack-guts.h @@ -6,6 +6,7 @@ #include <QStringList> #include <QDebug> #include <QIcon> +#include <QShowEvent> #include <iostream> #include <cstring> #include <QString> @@ -31,7 +32,15 @@ class MyFrame : public QFrame { public: MyFrame(void* parent) { - create((WId) parent); + if (parent == (void*) -1) + { + show(); + setVisible(false); + } + else + { + create((WId) parent); + } } explicit MyFrame() {} }; |