summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2023-01-28 17:24:03 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2023-02-23 16:05:19 +0000
commit910520730cb05934fcfa16bbb41bdb05f8d9e7f7 (patch)
tree0b1b581cf481b972b6d2dd4e6a4d34d9b7614ac6
parent58e0b6e18c425072a47594f42fc0b61801403aca (diff)
qcam: Decrease minimum width of selector dialog
On phone screens the default width is too wide, so the OK button cannot be clicked. Fix this by decreasing the minimum size of the dialog so it fits nicely. Signed-off-by: Luca Weiss <luca@z3ntu.xyz> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/apps/qcam/cam_select_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apps/qcam/cam_select_dialog.cpp b/src/apps/qcam/cam_select_dialog.cpp
index 3c8b12a9..2a600383 100644
--- a/src/apps/qcam/cam_select_dialog.cpp
+++ b/src/apps/qcam/cam_select_dialog.cpp
@@ -25,6 +25,9 @@ CameraSelectorDialog::CameraSelectorDialog(libcamera::CameraManager *cameraManag
/* Use a QFormLayout for the dialog. */
QFormLayout *layout = new QFormLayout(this);
+ /* Decrease minimum width of dialog to fit on narrow screens */
+ setMinimumSize(250, 100);
+
/* Setup the camera id combo-box. */
cameraIdComboBox_ = new QComboBox;
for (const auto &cam : cm_->cameras())