- 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