From af49b18c81a3998b59b1aae0daa16ec5050e44fc Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 18 Aug 2019 03:22:45 +0300 Subject: qcam: Pass camera manager to MainWindow class Pass the CameraManager instance from the main() function to the MainWindow class instead of accessing it through CameraManager::instance(). This prepares for the removal of the CameraManager::instance() method. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- src/qcam/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qcam/main.cpp') diff --git a/src/qcam/main.cpp b/src/qcam/main.cpp index da942f3d..05d3b77e 100644 --- a/src/qcam/main.cpp +++ b/src/qcam/main.cpp @@ -73,7 +73,7 @@ int main(int argc, char **argv) return EXIT_FAILURE; } - MainWindow *mainWindow = new MainWindow(options); + MainWindow *mainWindow = new MainWindow(cm, options); mainWindow->show(); ret = app.exec(); delete mainWindow; -- cgit v1.2.1