summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-31 13:50:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-31 13:50:16 +0200
commit61e9693666c65f613a4d144b271da855e47a1b79 (patch)
tree3745d817633d17660b4b97cf72f2e253385b2cb1
parentfa528a7ebafc9b5751deda05c02aec43a9a45ead (diff)
pose-widget, tracker/{aruco,pt}: check more often for widget visibility
It looks weird otherwise.
-rw-r--r--pose-widget/glwidget.cpp2
-rw-r--r--tracker-aruco/pt_video_widget.cpp2
-rw-r--r--tracker-pt/pt_video_widget.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/pose-widget/glwidget.cpp b/pose-widget/glwidget.cpp
index d8b451ef..27e6becd 100644
--- a/pose-widget/glwidget.cpp
+++ b/pose-widget/glwidget.cpp
@@ -35,7 +35,7 @@ void GLWidget::paintEvent (QPaintEvent * event)
void GLWidget::rotateBy(float xAngle, float yAngle, float zAngle, float x, float y, float z)
{
- if (visible_timer.elapsed_ms() > 2000)
+ if (visible_timer.elapsed_ms() > 250)
{
visible = is_window_visible(this);
visible_timer.start();
diff --git a/tracker-aruco/pt_video_widget.cpp b/tracker-aruco/pt_video_widget.cpp
index d8380caa..54bc9acd 100644
--- a/tracker-aruco/pt_video_widget.cpp
+++ b/tracker-aruco/pt_video_widget.cpp
@@ -47,7 +47,7 @@ void PTVideoWidget::update_and_repaint()
{
QMutexLocker l(&mtx);
- if (window_check_timer.elapsed_ms() > 2000)
+ if (window_check_timer.elapsed_ms() > 250)
{
visible = is_window_visible(this);
window_check_timer.start();
diff --git a/tracker-pt/pt_video_widget.cpp b/tracker-pt/pt_video_widget.cpp
index d8380caa..54bc9acd 100644
--- a/tracker-pt/pt_video_widget.cpp
+++ b/tracker-pt/pt_video_widget.cpp
@@ -47,7 +47,7 @@ void PTVideoWidget::update_and_repaint()
{
QMutexLocker l(&mtx);
- if (window_check_timer.elapsed_ms() > 2000)
+ if (window_check_timer.elapsed_ms() > 250)
{
visible = is_window_visible(this);
window_check_timer.start();