From patchwork Fri Mar 20 08:50:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Show Liu X-Patchwork-Id: 3221 Return-Path: Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3983F6041A for ; Fri, 20 Mar 2020 09:59:13 +0100 (CET) Received: by mail-pl1-x644.google.com with SMTP id t3so2221025plz.9 for ; Fri, 20 Mar 2020 01:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GP09lEr6IVTprj5wjX7qfXaeHlaQMVnk20kyD7nc8AI=; b=Qs4AOTxJ2j29mHHduH/Brm+iJO946+FdyBAjE/iHAnd92mgI/rDv5kvtKgjzBVmoxf Nq3HTO3UV2w2X4GDC+EGSp2uMowzYwRGEE8Ec7MySisLEn/VnDayDby/ylQJoOJyfBOl /ESBtaKIRmAUqRYS1qgGP6LNZsEPiq2xj/y/th63wDmGSb+RbOdFt2RGdRRna7ghek0m SJtl82EtHXRVn2vJ5mAFOWBPwitLX8QRXbWXCepFIPJO9P6k0bAvMO9t7wI0+l6kQvx8 1hpTkerULIOJHZIj35RoRgtDeuGn9jnxVl9lBw9d8x6jxR/Gb6iQLU163Tn1s1gWs1OX DpBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GP09lEr6IVTprj5wjX7qfXaeHlaQMVnk20kyD7nc8AI=; b=YmwztSNe/FcskgttI39d2C58GCZRE6IJlwg+4Xibe8WoQOyYmL6gqRfOP0AnRMt7NA l6fSF/R3qPy2mw3wAXEQEO/SZ9jFfcwOCgqX/gfCA6e475m/WqrzqYgYyVWJUbdT03KT 0z+bbzFEwJMpcWFO2Yteje8usbdm/isvxGSRNOpqDOdu3Tz4Wwf/dTEWmvbdUnrmEjba xwdwP1Wz9phzQtQUFpk5GrRV768Jcc9T2I1I6LimnGO6Slk++j6JA58olXeLzrRtDZNj tx+tRB3IieZgldNuO9diQccjglWYsBc3Jb06xTW4Tshw1kiX/An/+A3/gE3h8oGSLw7T DenA== X-Gm-Message-State: ANhLgQ1e9faHuV31SgISv+HOo7+O0gmsTOf8dtTo4kS0VyvSwwNCZ+/I k/sqOmZYi0EioZqOWtziiinVZP6Wvwa2Xw== X-Google-Smtp-Source: ADFU+vskgTS5yBYsojjTHs8CEAgdDimmBvwpFWGsh/2oWHmNWVjsjdQhiPXVHleso5nhMAALrzeBMQ== X-Received: by 2002:a17:90b:8f:: with SMTP id bb15mr7615946pjb.186.1584694751187; Fri, 20 Mar 2020 01:59:11 -0700 (PDT) Received: from localhost.localdomain (211-20-20-223.HINET-IP.hinet.net. [211.20.20.223]) by smtp.gmail.com with ESMTPSA id 26sm4604653pfp.130.2020.03.20.01.59.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 01:59:10 -0700 (PDT) From: Show Liu To: libcamera-devel@lists.libcamera.org Date: Fri, 20 Mar 2020 16:50:27 +0800 Message-Id: <20200320085029.17875-2-show.liu@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200320085029.17875-1-show.liu@linaro.org> References: <20200320085029.17875-1-show.liu@linaro.org> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC] [PATCH 1/3] Added statusbar to show the camera stream configuration 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-List-Received-Date: Fri, 20 Mar 2020 08:59:13 -0000 qcam: Added statusbar to show the camera stream information Signed-off-by: Show Liu Reviewed-by: Niklas Söderlund --- src/qcam/main_window.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp index ae1760d..98e55ba 100644 --- a/src/qcam/main_window.cpp +++ b/src/qcam/main_window.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -238,6 +239,8 @@ int MainWindow::startCapture() return ret; } + statusBar()->showMessage(QString(cfg.toString().c_str())); + adjustSize(); allocator_ = FrameBufferAllocator::create(camera_); @@ -342,6 +345,8 @@ void MainWindow::stopCapture() config_.reset(); + statusBar()->clearMessage(); + titleTimer_.stop(); setWindowTitle(title_); }