diff options
author | Utkarsh Tiwari <utkarsh02t@gmail.com> | 2022-08-08 23:55:54 +0530 |
---|---|---|
committer | Utkarsh Tiwari <utkarsh02t@gmail.com> | 2022-09-05 12:14:14 +0530 |
commit | b63519d201628bd662b4d616b90db88d3fcce163 (patch) | |
tree | c2f4274b11590057e51591e8329513d7513e0d15 /src/qcam/main_window.h | |
parent | 923927ae45dd10be5c3c854d568dae6751ccb87e (diff) |
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 <utkarsh02t@gmail.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/main_window.h')
-rw-r--r-- | src/qcam/main_window.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 <QMainWindow> #include <QMutex> #include <QObject> +#include <QPushButton> #include <QQueue> #include <QTimer> @@ -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_; |