mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 18:35:07 +03:00
qcam: Use QSize through the code base
Qt has a QSize class to store sizes. Use it to replace width and height where applicable. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
ac02d741dc
commit
acd02afab0
5 changed files with 19 additions and 20 deletions
|
@ -232,8 +232,8 @@ int MainWindow::startCapture()
|
|||
}
|
||||
|
||||
Stream *stream = cfg.stream();
|
||||
ret = viewfinder_->setFormat(cfg.pixelFormat, cfg.size.width,
|
||||
cfg.size.height);
|
||||
ret = viewfinder_->setFormat(cfg.pixelFormat,
|
||||
QSize(cfg.size.width, cfg.size.height));
|
||||
if (ret < 0) {
|
||||
std::cout << "Failed to set viewfinder format" << std::endl;
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue