From patchwork Sat Jan 28 16:24:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 18216 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id B7945BEFBE for ; Sat, 28 Jan 2023 20:50:33 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E6A23625E4; Sat, 28 Jan 2023 21:50:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1674939033; bh=OSPQX4oZYGKbc9i4Pa2LPcYoiknvlj6WzE/hZphcGGo=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=OBI6rWHRHwr0jayRPQQsfwTEs0tPDZhB3PiWx5slSaUlGD3zRdIkkgPTlGZfz55ra mkQAWs7oUKIGe6TPunHO+SHq8fBJ1v9XnhSCUF1z1S9hENaMFuiLltDwSmfexNx1wV yjWgWcfHU3waIzT2Q2kLSRj/RVHFqelL3iWbZZbyTlOTeSPtYayD8Is3RK7UvxOe0L JIGDT832bJKlVB6wxcv44ZWAIbX1jMCUcxk6CBLQx9BbmaZfT5TLEJBgPWOwZAVi26 8HR5tFo6v7ThP9gDkasP9a9IyFYxybPa2uF8xZp4FPZ82vl+ukAUFytcgnAevF5c4y TTvoDC9iA/lsQ== Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id ED84860430 for ; Sat, 28 Jan 2023 17:24:50 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="XYvcI+Bg"; dkim-atps=neutral Received: from g550jk.arnhem.chello.nl (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 3E071C3FEB; Sat, 28 Jan 2023 16:24:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1674923060; bh=OSPQX4oZYGKbc9i4Pa2LPcYoiknvlj6WzE/hZphcGGo=; h=From:To:Cc:Subject:Date; b=XYvcI+BgPlvY+SIomV2d0rcXaYxF4H5FE2tM5MKtVI13Te05LG+PIqEK0nvIV8qhX CjyZOf82hUNgYGMb+AcGD6ebIumG79DtUc2rk0UVLZhCZ4qzoinULGVzpDBgPujIF0 lOKFShXay3oNIBQVS2d8dt0inFTPjH2ESCJ/P2Ic= To: libcamera-devel@lists.libcamera.org Date: Sat, 28 Jan 2023 17:24:03 +0100 Message-Id: <20230128162402.892389-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 28 Jan 2023 21:50:30 +0100 Subject: [libcamera-devel] [PATCH] qcam: Decrease minimum width of selector dialog X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Luca Weiss via libcamera-devel From: Luca Weiss Reply-To: Luca Weiss Cc: Luca Weiss Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- src/apps/qcam/cam_select_dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) 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())