summaryrefslogtreecommitdiffstats
path: root/src/multimediawidgets/qvideowidget.h
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/multimediawidgets/qvideowidget.h
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/multimediawidgets/qvideowidget.h')
-rw-r--r--src/multimediawidgets/qvideowidget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/multimediawidgets/qvideowidget.h b/src/multimediawidgets/qvideowidget.h
index b1e2da46b..2a08b6fbd 100644
--- a/src/multimediawidgets/qvideowidget.h
+++ b/src/multimediawidgets/qvideowidget.h
@@ -81,6 +81,9 @@ public:
int saturation() const;
QSize sizeHint() const override;
+#if defined(Q_OS_WIN)
+ bool nativeEvent(const QByteArray &eventType, void *message, long *result) override;
+#endif
public Q_SLOTS:
void setFullScreen(bool fullScreen);