diff mbox series

[v4l-utils,v1,04/11] qv4l2: fix Qt6 compile (QDesktopWidget: No such file or directory)

Message ID 20230415201056.31080-4-ps.report@gmx.net
State New
Headers show
Series [v4l-utils,v1,01/11] qv4l2: remove leagcy alsa_stream.h include (ENABLE_ALSA protected) | expand

Commit Message

Peter Seiderer April 15, 2023, 8:10 p.m. UTC
- include QDesktopWidget only when needed (Qt verson < 5.10, see
  usage in CaptureWin::setWindowSize()

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 utils/qv4l2/capture-win.cpp | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/utils/qv4l2/capture-win.cpp b/utils/qv4l2/capture-win.cpp
index 8add18f8..1e3986ad 100644
--- a/utils/qv4l2/capture-win.cpp
+++ b/utils/qv4l2/capture-win.cpp
@@ -27,7 +27,9 @@ 
 #include <QImage>
 #include <QVBoxLayout>
 #include <QApplication>
+#if QT_VERSION < 0x050a00
 #include <QDesktopWidget>
+#endif
 #include <QScreen>
 #include <QWindow>