mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 18:35:07 +03:00
qcam: New viewfinder hierarchy
Create ViewFinder base class and rename the original ViewFinder as QPainter-based ViewFinder. Signed-off-by: Show Liu <show.liu@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
4a4a3e715b
commit
2daa704c96
5 changed files with 94 additions and 63 deletions
|
@ -28,6 +28,7 @@
|
|||
#include <libcamera/version.h>
|
||||
|
||||
#include "dng_writer.h"
|
||||
#include "viewfinder_qt.h"
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
|
@ -105,10 +106,11 @@ MainWindow::MainWindow(CameraManager *cm, const OptionsParser::Options &options)
|
|||
setWindowTitle(title_);
|
||||
connect(&titleTimer_, SIGNAL(timeout()), this, SLOT(updateTitle()));
|
||||
|
||||
viewfinder_ = new ViewFinder(this);
|
||||
connect(viewfinder_, &ViewFinder::renderComplete,
|
||||
ViewFinderQt *viewfinder = new ViewFinderQt(this);
|
||||
connect(viewfinder, &ViewFinderQt::renderComplete,
|
||||
this, &MainWindow::queueRequest);
|
||||
setCentralWidget(viewfinder_);
|
||||
viewfinder_ = viewfinder;
|
||||
setCentralWidget(viewfinder);
|
||||
adjustSize();
|
||||
|
||||
/* Hotplug/unplug support */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue