summaryrefslogtreecommitdiffstats
path: root/src/plugins/common
diff options
context:
space:
mode:
authorVal Doroshchuk <valentyn.doroshchuk@qt.io>2018-11-05 09:26:18 +0100
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2018-11-29 10:42:45 +0000
commit67a826716a9a58659f7272cbce3c450af384da5a (patch)
tree5ba6810b8ea839cc9c61e46bf567e3a335d64547 /src/plugins/common
parent9fb8dd4e76700da8d321a8677e44e771a0213a7e (diff)
Windows: Repaint QVideoWidget when WM_PAINT or WM_ERASEBKGND received
Since updates are disabled, and no paint events will be sent to QVideoWidget, need to somehow repaint the video window. When BeginPaint is called outside of the expose event, the window might not be refreshed. So moved calling the repainting within the expose event. Also added repainting when the display rect is changed to immediate refreshing. Task-number: QTBUG-71326 Change-Id: I7c29b3f8ad35e33590c7b138a5141546ce3c1a42 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/common')
-rw-r--r--src/plugins/common/evr/evrvideowindowcontrol.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/common/evr/evrvideowindowcontrol.cpp b/src/plugins/common/evr/evrvideowindowcontrol.cpp
index ce837c553..95f63c2e7 100644
--- a/src/plugins/common/evr/evrvideowindowcontrol.cpp
+++ b/src/plugins/common/evr/evrvideowindowcontrol.cpp
@@ -158,6 +158,9 @@ void EvrVideoWindowControl::setDisplayRect(const QRect &rect)
} else {
m_displayControl->SetVideoPosition(NULL, &displayRect);
}
+
+ // To refresh content immediately.
+ repaint();
}
}