From 9f3a745ba10235fa7aeda3b93703fdcf810e6948 Mon Sep 17 00:00:00 2001 From: "R. van twisk" Date: Sat, 30 Nov 2019 22:51:33 +0100 Subject: Added camera list support for OSX --- compat/camera-names.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'compat') diff --git a/compat/camera-names.cpp b/compat/camera-names.cpp index 69926e5a..40edba49 100644 --- a/compat/camera-names.cpp +++ b/compat/camera-names.cpp @@ -11,6 +11,10 @@ # include #endif +#ifdef __APPLE__ +# include +#endif + #ifdef __linux # include # include @@ -102,5 +106,12 @@ std::vector get_camera_names() } } #endif +#ifdef __APPLE__ + QList cameras = QCameraInfo::availableCameras(); + foreach (const QCameraInfo &cameraInfo, cameras) { + ret.push_back(cameraInfo.description()); + } +#endif + return ret; } -- cgit v1.2.3