summaryrefslogtreecommitdiff
path: root/src/qcam/main_window.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-22 12:53:13 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-24 10:33:42 +0200
commitacd02afab0298bc91099fa280f13775e8e5e315b (patch)
tree9108fc21b0e5b3d2d5239a97ab0d1e34b00b81b9 /src/qcam/main_window.cpp
parentac02d741dceb081d1166b78e13f180a3a375579d (diff)
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>
Diffstat (limited to 'src/qcam/main_window.cpp')
-rw-r--r--src/qcam/main_window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp
index 66aaf40c..e0668176 100644
--- a/src/qcam/main_window.cpp
+++ b/src/qcam/main_window.cpp
@@ -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;