gentoo-ebuilds/dev-games/tiled/files/tiled-1.11-qt6.8.2.patch
Andrei Sabalenka b536077513
dev-games/tiled: add 1.11.2, fix compiling with Qt 6.8.2
Closes: https://bugs.gentoo.org/949525
Signed-off-by: Andrei Sabalenka <mechakotik@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40103
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2025-02-25 19:45:37 +02:00

20 lines
642 B
Diff

commit 60388da00ef8e64608c581369b5c68e85162e31d
Author: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
Date: Fri Feb 14 20:49:16 2025 +0100
Fixed compile against Qt 6.8.2
A rather smaller change than 776d3b67b011f970a65e8a743795401851684cc9
for the 1.11 branch, which keeps compatibility down to Qt 5.12.
diff --git a/src/libtiled/qtcompat_p.h b/src/libtiled/qtcompat_p.h
index 3b46dc1b..60c089ed 100644
--- a/src/libtiled/qtcompat_p.h
+++ b/src/libtiled/qtcompat_p.h
@@ -28,5 +28,5 @@ using ::endl;
#endif
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
-using QStringRef = QStringView;
+#define QStringRef QStringView
#endif