@@ -14,6 +14,7 @@
#include <QTimer>
#include <libcamera/camera_manager.h>
+#include <libcamera/version.h>
#include "main_window.h"
#include "viewfinder.h"
@@ -25,6 +26,7 @@ MainWindow::MainWindow(const OptionsParser::Options &options)
{
int ret;
+ setWindowTitle();
viewfinder_ = new ViewFinder(this);
setCentralWidget(viewfinder_);
viewfinder_->setFixedSize(500, 500);
@@ -50,6 +52,12 @@ MainWindow::~MainWindow()
CameraManager::instance()->stop();
}
+void MainWindow::setWindowTitle()
+{
+ QMainWindow::setWindowTitle("QCam : "
+ + QString::fromStdString(libcamera::version.toString()));
+}
+
int MainWindow::openCamera()
{
CameraManager *cm = CameraManager::instance();
@@ -33,6 +33,8 @@ public:
~MainWindow();
private:
+ void setWindowTitle();
+
int openCamera();
int startCapture();
Provide the version string reported by the libcamera library on the qcam test utility. This helps confirm the exact version of the library that is being used while testing. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> --- src/qcam/main_window.cpp | 8 ++++++++ src/qcam/main_window.h | 2 ++ 2 files changed, 10 insertions(+)