diff options
Diffstat (limited to 'tracker-pt/pt_video_widget.h')
-rw-r--r-- | tracker-pt/pt_video_widget.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tracker-pt/pt_video_widget.h b/tracker-pt/pt_video_widget.h index c2957876..82de3eab 100644 --- a/tracker-pt/pt_video_widget.h +++ b/tracker-pt/pt_video_widget.h @@ -8,10 +8,11 @@ #pragma once -#include <QObject> -#include <QWidget> +#include "opentrack-compat/timer.hpp" #include <opencv2/core/core.hpp> #include <memory> +#include <QObject> +#include <QWidget> #include <QPainter> #include <QPaintEvent> #include <QTimer> @@ -22,17 +23,17 @@ class PTVideoWidget final : public QWidget { Q_OBJECT - public: PTVideoWidget(QWidget *parent); void update_image(const cv::Mat &frame); protected slots: - void paintEvent(QPaintEvent* e) override; + void paintEvent(QPaintEvent*) override; void update_and_repaint(); private: QMutex mtx; QImage texture; QTimer timer; + Timer window_check_timer; cv::Mat _frame, _frame2, _frame3; - bool freshp; + bool freshp, visible; }; |