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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



- include QDesktopWidget only when needed (Qt verson < 5.10, see
  usage in CaptureWin::setWindowSize()

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

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>
 
-- 
2.40.0


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux