From 55676b06c25f6369cb2abb72e786616e2bbc84ea Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Fri, 6 Feb 2026 13:57:20 +0100 Subject: [PATCH] QrScannerPage: Prevent shadowing --- src/app/qml/QrScannerPage.qml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app/qml/QrScannerPage.qml b/src/app/qml/QrScannerPage.qml index b3e5823ae..a0b63443f 100644 --- a/src/app/qml/QrScannerPage.qml +++ b/src/app/qml/QrScannerPage.qml @@ -18,7 +18,7 @@ Kirigami.Page { required property NeoChatConnection connection padding: 0 - Component.onCompleted: camera.start() + Component.onCompleted: session.camera.start() Connections { target: root.QQC2.ApplicationWindow.window @@ -66,12 +66,8 @@ Kirigami.Page { CaptureSession { id: session - camera: Camera { - id: camera - } - imageCapture: ImageCapture { - id: imageCapture - } + camera: Camera {} + imageCapture: ImageCapture {} videoOutput: viewFinder } }