[plasma/spectacle/Plasma/6.7] src: Scan for QR code when editing existing image

Kai Uwe Broulik <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit eb401ec3faa20ca7860148c7b92bf0650f2a3e33 by Kai Uwe Broulik.
Committed on 28/07/2026 at 06:26.
Pushed by broulik into branch 'Plasma/6.7'.

Scan for QR code when editing existing image

Set the exported image and then run the scanner on it.

BUG: 521097


(cherry picked from commit 70f74ffa9d6e58dfab76a392ab105b7a84177699)

Co-authored-by: Kai Uwe Broulik <[email protected]>

M  +4    -0    src/SpectacleCore.cpp

https://invent.kde.org/plasma/spectacle/-/commit/eb401ec3faa20ca7860148c7b92bf0650f2a3e33

diff --git a/src/SpectacleCore.cpp b/src/SpectacleCore.cpp
index acf9f1d12..8c8bfaf7f 100644
--- a/src/SpectacleCore.cpp
+++ b/src/SpectacleCore.cpp
@@ -986,6 +986,10 @@ void SpectacleCore::activate(const QStringList &arguments, const QString &workin
             m_returnToViewer = true;
             showViewerIfGuiMode();
             SpectacleWindow::setTitleForAll(SpectacleWindow::Saved, m_editExistingUrl.fileName());
+            if (!existingImage.isNull()) {
+                setExportImage(existingImage);
+                ExportManager::instance()->scanQRCode();
+            }
             return;
         } else {
             m_cliOptions[Option::EditExisting] = false;
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.