This commit is contained in:
parent
85aa81af1e
commit
ca01478803
31
0001-Support-ZXing-2.0.patch
Normal file
31
0001-Support-ZXing-2.0.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From c92fe3125c08e61b454b41f151b435a6a9e6da4b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Volker Krause <vkrause@kde.org>
|
||||||
|
Date: Wed, 4 Jan 2023 17:28:31 +0100
|
||||||
|
Subject: [PATCH] Support ZXing 2.0
|
||||||
|
|
||||||
|
An alternative approach going forward might be replacing the entire direct
|
||||||
|
ZXing use and video stream processing by KF::Prison. Avoids duplicated
|
||||||
|
maintenance, but adds a new dependency.
|
||||||
|
---
|
||||||
|
src/QrCodeDecoder.cpp | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/QrCodeDecoder.cpp b/src/QrCodeDecoder.cpp
|
||||||
|
index a7b0cf5..86d1e7b 100644
|
||||||
|
--- a/src/QrCodeDecoder.cpp
|
||||||
|
+++ b/src/QrCodeDecoder.cpp
|
||||||
|
@@ -90,7 +90,11 @@ void QrCodeDecoder::decodeImage(const QImage &image)
|
||||||
|
// If a QR code could be found and decoded, emit a signal with the decoded string.
|
||||||
|
// Otherwise, emit a signal for failed decoding.
|
||||||
|
if (result.isValid())
|
||||||
|
+#if ZXING_VERSION < QT_VERSION_CHECK(2, 0, 0)
|
||||||
|
emit decodingSucceeded(QString::fromStdString(TextUtfEncoding::ToUtf8(result.text())));
|
||||||
|
+#else
|
||||||
|
+ emit decodingSucceeded(QString::fromStdString(result.text()));
|
||||||
|
+#endif
|
||||||
|
else
|
||||||
|
emit decodingFailed();
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.39.1
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 9 08:09:58 UTC 2023 - Christophe Marin <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Add patch to fix build with ZXing >= 2.0:
|
||||||
|
* 0001-Support-ZXing-2.0.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 1 16:00:38 UTC 2021 - Enrico Belleri <idesmi@protonmail.com>
|
Fri Oct 1 16:00:38 UTC 2021 - Enrico Belleri <idesmi@protonmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package kaidan
|
# spec file for package kaidan
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -21,11 +21,12 @@ Version: 0.8.0
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: A XMPP client based on KDE Framework
|
Summary: A XMPP client based on KDE Framework
|
||||||
License: GPL-3.0-or-later AND SUSE-GPL-3.0+-with-openssl-exception AND MIT AND AML AND CC-BY-SA-4.0
|
License: GPL-3.0-or-later AND SUSE-GPL-3.0+-with-openssl-exception AND MIT AND AML AND CC-BY-SA-4.0
|
||||||
Group: Productivity/Networking/Instant Messenger
|
|
||||||
URL: https://www.kaidan.im
|
URL: https://www.kaidan.im
|
||||||
Source0: https://download.kde.org/unstable/%{name}/%{version}/%{name}-%{version}.tar.xz
|
Source0: https://download.kde.org/unstable/%{name}/%{version}/%{name}-%{version}.tar.xz
|
||||||
Source1: https://download.kde.org/unstable/%{name}/%{version}/%{name}-%{version}.tar.xz.sig
|
Source1: https://download.kde.org/unstable/%{name}/%{version}/%{name}-%{version}.tar.xz.sig
|
||||||
Source2: kaidan.keyring
|
Source2: kaidan.keyring
|
||||||
|
# PATCH-FIX-UPSTREAM
|
||||||
|
Patch0: 0001-Support-ZXing-2.0.patch
|
||||||
BuildRequires: cmake >= 3.3
|
BuildRequires: cmake >= 3.3
|
||||||
BuildRequires: extra-cmake-modules >= 5.40.0
|
BuildRequires: extra-cmake-modules >= 5.40.0
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user