[plasma/spectacle] 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 70f74ffa9d6e58dfab76a392ab105b7a84177699 by Kai Uwe Broulik.
Committed on 28/07/2026 at 05:26.
Pushed by broulik into branch 'master'.
Scan for QR code when editing existing image
Set the exported image and then run the scanner on it.
BUG: 521097
M +4 -0 src/SpectacleCore.cpp
https://invent.kde.org/plasma/spectacle/-/commit/70f74ffa9d6e58dfab76a392ab105b7a84177699
diff --git a/src/SpectacleCore.cpp b/src/SpectacleCore.cpp
index 55c973450..9431315b5 100644
--- a/src/SpectacleCore.cpp
+++ b/src/SpectacleCore.cpp
@@ -991,6 +991,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;