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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Laurent Pinchart
2019-08-18 03:22:45 +03:00
parent 749dbd576f
commit af49b18c81
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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;