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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user