summaryrefslogtreecommitdiff
path: root/src/qcam/cam_select_dialog.h
diff options
context:
space:
mode:
authorUtkarsh Tiwari <utkarsh02t@gmail.com>2022-08-09 16:14:23 +0100
committerUtkarsh Tiwari <utkarsh02t@gmail.com>2022-09-05 12:19:00 +0530
commitd598e77aa5500c60694f1f6aa4f95d67edc202ae (patch)
tree2a0a3b443effa1438d015da0bc99d6d5342db578 /src/qcam/cam_select_dialog.h
parentb63519d201628bd662b4d616b90db88d3fcce163 (diff)
qcam: CamSelectDialog: Display Location and Model propety of camera
The camera selection dialog currently only displays the camera Id. Display the camera location and camera model if available. Signed-off-by: Utkarsh Tiwari <utkarsh02t@gmail.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/cam_select_dialog.h')
-rw-r--r--src/qcam/cam_select_dialog.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qcam/cam_select_dialog.h b/src/qcam/cam_select_dialog.h
index 44b081a5..0b7709ed 100644
--- a/src/qcam/cam_select_dialog.h
+++ b/src/qcam/cam_select_dialog.h
@@ -11,11 +11,14 @@
#include <libcamera/camera.h>
#include <libcamera/camera_manager.h>
+#include <libcamera/controls.h>
+#include <libcamera/property_ids.h>
#include <QDialog>
#include <QString>
class QComboBox;
+class QLabel;
class CameraSelectorDialog : public QDialog
{
@@ -31,9 +34,14 @@ public:
void addCamera(QString cameraId);
void removeCamera(QString cameraId);
+ /* Camera Information */
+ void updateCameraInfo(QString cameraId);
+
private:
libcamera::CameraManager *cm_;
/* UI elements. */
QComboBox *cameraIdComboBox_;
+ QLabel *cameraLocation_;
+ QLabel *cameraModel_;
};