From b63519d201628bd662b4d616b90db88d3fcce163 Mon Sep 17 00:00:00 2001 From: Utkarsh Tiwari Date: Mon, 8 Aug 2022 23:55:54 +0530 Subject: qcam: MainWindow: Replace cameraCombo_ with CameraSelectorDialog Replace the cameraCombo_ on the toolbar with a QPushButton which displays the CameraSelectorDialog. This would allow the user to view information about the camera when switching. The QPushButton text is set to the camera Id currently in use. Signed-off-by: Utkarsh Tiwari Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/qcam/main_window.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qcam/main_window.h') diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h index e17c8010..3fa98b05 100644 --- a/src/qcam/main_window.h +++ b/src/qcam/main_window.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -31,7 +32,6 @@ #include "viewfinder.h" class QAction; -class QComboBox; class CameraSelectorDialog; class Image; @@ -60,7 +60,7 @@ private Q_SLOTS: void quit(); void updateTitle(); - void switchCamera(int index); + void switchCamera(); void toggleCapture(bool start); void saveImageAs(); @@ -90,7 +90,7 @@ private: /* UI elements */ QToolBar *toolbar_; QAction *startStopAction_; - QComboBox *cameraCombo_; + QPushButton *cameraSelectButton_; QAction *saveRaw_; ViewFinder *viewfinder_; -- cgit v1.2.1