[utilities/qrca] src/qml: Formatting changes

Nicolas Fella <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 484d44593cc42e5e572681a986b0b4c56216cb33 by Nicolas Fella, on behalf of Michael Rostom.
Committed on 07/08/2026 at 14:28.
Pushed by nicolasfella into branch 'master'.

Formatting changes

Added missing semicolons (spawned off https://invent.kde.org/utilities/qrca/-/merge_requests/133)

M  +11   -11   src/qml/QrCodeScannerPage.qml

https://invent.kde.org/utilities/qrca/-/commit/484d44593cc42e5e572681a986b0b4c56216cb33

diff --git a/src/qml/QrCodeScannerPage.qml b/src/qml/QrCodeScannerPage.qml
index cddff1b..5776983 100644
--- a/src/qml/QrCodeScannerPage.qml
+++ b/src/qml/QrCodeScannerPage.qml
@@ -28,14 +28,13 @@ Kirigami.Page {
 
     onWindowActiveChanged: {
         // Deactivate camera on mobile, if the window is inactive
-        if (! Kirigami.Settings.isMobile)
-            return
-
+        if (!Kirigami.Settings.isMobile)
+            return;
         if (scanner.windowActive) {
-            camera.start()
-            deactivateCamera.running = false
+            camera.start();
+            deactivateCamera.running = false;
         } else {
-            deactivateCamera.running = true
+            deactivateCamera.running = true;
         }
     }
 
@@ -46,7 +45,7 @@ Kirigami.Page {
         running: false
         triggeredOnStart: false
         onTriggered: {
-            camera.stop()
+            camera.stop();
         }
     }
 
@@ -288,8 +287,10 @@ Kirigami.Page {
                 visible: Qt.platform.os != "android"
                 onClicked: {
                     // disabledPlugins won't disable clipboard plugin on old versions of purpose framework, because it didn't have the property
-                    shareSheetLoader.setSource("ShareSheet.qml",
-                                               { "text": resultSheet.tag.text, "disabledPlugins": ["clipboardplugin"]});
+                    shareSheetLoader.setSource("ShareSheet.qml", {
+                        "text": resultSheet.tag.text,
+                        "disabledPlugins": ["clipboardplugin"]
+                    });
                     shareSheetLoader.item.open();
                 }
                 Layout.fillWidth: true
@@ -300,7 +301,6 @@ Kirigami.Page {
         id: shareSheetLoader
     }
 
-
     Kirigami.OverlaySheet {
         id: cameraSelectorSheet
 
@@ -319,7 +319,7 @@ Kirigami.Page {
                     camera.cameraDevice = modelData;
                     camera.start();
                     cameraSelectorSheet.close();
-                    scanner_settings.camera_id = modelData.id
+                    scanner_settings.camera_id = modelData.id;
                 }
             }
         }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.