[libcamera-devel] [RFC] [PATCH 1/3] Added statusbar to show the camera stream configuration

Niklas Söderlund niklas.soderlund at ragnatech.se
Fri Mar 20 14:59:03 CET 2020


Hi Show,

Thanks for your work.

On 2020-03-20 16:50:27 +0800, Show Liu wrote:
> qcam: Added statusbar to show the camera stream information
> 
> Signed-off-by: Show Liu <show.liu at linaro.org>

Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>

> ---
>  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 <QTimer>
>  #include <QToolBar>
>  #include <QToolButton>
> +#include <QStatusBar>
>  
>  #include <libcamera/camera_manager.h>
>  #include <libcamera/version.h>
> @@ -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_);
>  }
> -- 
> 2.20.1
> 
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel

-- 
Regards,
Niklas Söderlund


More information about the libcamera-devel mailing list