[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnupg-devel
Subject:    Add missing include (fix some qt6 compile error)
From:       Laurent Montel <montel () kde ! org>
Date:       2022-08-22 6:11:02
Message-ID: 2221421.3T26gck7j8 () localhost ! localdomain
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


Hi,
This patch will help to build against qt6.
We need to include <QStringList> vs using forward declaration

Could you apply it please ?
Thanks

-- 
Laurent Montel | laurent.montel@kdab.com | KDE/Qt Senior Software Engineer 
KDAB (France) S.A.S., a KDAB Group company
Tel: France +33 (0)4 90 84 08 53, http://www.kdab.fr
KDAB - The Qt, C++ and OpenGL Experts

["add_missing_include_qstringlist_util.patch" (add_missing_include_qstringlist_util.patch)]

commit f49f3775a1d0dd85b06fb3942a0f9ae044436373
Author: Laurent Montel <montel@kde.org>
Date:   Mon Aug 22 08:05:10 2022 +0200

    qt: Add #include <QStringList> needed for building against qt6
    
    * lang/qt/src/util.h in qt6 we need to use #include <QStringList>
    --
    
    It fixes some compile qt6 compile error.
    
    Signed-off-by: Laurent Montel <montel@kde.org>

diff --git a/lang/qt/src/util.h b/lang/qt/src/util.h
index 6aba62e6..76d3831f 100644
--- a/lang/qt/src/util.h
+++ b/lang/qt/src/util.h
@@ -36,12 +36,12 @@
 
 #include <gpgme.h>
 
+#include <QtCore/QStringList>
+
 #include <sstream>
 #include <string>
 #include <vector>
 
-class QStringList;
-
 namespace GpgME
 {
 class Key;

["signature.asc" (application/pgp-signature)]

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@lists.gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic