File qt6pas.patch of Package lazarus3

From 6a3d1381716e99185b97eddc0638b0e1420f301d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=BDeljan=20Rikalo?= <zeljko@lazarus-ide.org>
Date: Sun, 14 Apr 2024 13:19:52 +0200
Subject: [PATCH] Qt6: removed deprecated QString::IsSimpleText() from
 cbindings. issue #40901

(cherry picked from commit b71e3074a333b1573c6d662930b4689d92f5962e)
---
 lcl/interfaces/qt6/cbindings/Qt6Pas.pro        | 8 ++++----
 lcl/interfaces/qt6/cbindings/src/qstring_c.cpp | 5 -----
 lcl/interfaces/qt6/cbindings/src/qstring_c.h   | 1 -
 lcl/interfaces/qt6/qt62.pas                    | 1 -
 4 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/lcl/interfaces/qt6/cbindings/Qt6Pas.pro b/lcl/interfaces/qt6/cbindings/Qt6Pas.pro
index bb4dd573cfd..c6e7419f18e 100644
--- a/lcl/interfaces/qt6/cbindings/Qt6Pas.pro
+++ b/lcl/interfaces/qt6/cbindings/Qt6Pas.pro
@@ -10,13 +10,13 @@
 
 
 
-# Binding Release Version 6.2.7 against Qt6 6.2 LTS release.
+# Binding Release Version 6.2.8 against Qt6 6.2 LTS release.
 
-win32:VERSION = 6.2.7.0
-else:VERSION = 6.2.7
+win32:VERSION = 6.2.8.0
+else:VERSION = 6.2.8
 VER_MAJ = 6
 VER_MIN = 2
-VER_PAT = 7
+VER_PAT = 8
 win32:VERSION_PE_HEADER = 6.2
 
 QT += gui printsupport
diff --git a/lcl/interfaces/qt6/cbindings/src/qstring_c.cpp b/lcl/interfaces/qt6/cbindings/src/qstring_c.cpp
index 9cb602ebc08..d3d5058480f 100644
--- a/lcl/interfaces/qt6/cbindings/src/qstring_c.cpp
+++ b/lcl/interfaces/qt6/cbindings/src/qstring_c.cpp
@@ -1073,11 +1073,6 @@ bool QString_isNull(QStringH handle)
 	return (bool) ((QString *)handle)->isNull();
 }
 
-bool QString_isSimpleText(QStringH handle)
-{
-	return (bool) ((QString *)handle)->isSimpleText();
-}
-
 bool QString_isRightToLeft(QStringH handle)
 {
 	return (bool) ((QString *)handle)->isRightToLeft();
diff --git a/lcl/interfaces/qt6/cbindings/src/qstring_c.h b/lcl/interfaces/qt6/cbindings/src/qstring_c.h
index 6f0b6715207..377ef5a133a 100644
--- a/lcl/interfaces/qt6/cbindings/src/qstring_c.h
+++ b/lcl/interfaces/qt6/cbindings/src/qstring_c.h
@@ -166,7 +166,6 @@ C_EXPORT void QString_push_back2(QStringH handle, PWideString s);
 C_EXPORT void QString_push_front(QStringH handle, PWideChar c);
 C_EXPORT void QString_push_front2(QStringH handle, PWideString s);
 C_EXPORT bool QString_isNull(QStringH handle);
-C_EXPORT bool QString_isSimpleText(QStringH handle);
 C_EXPORT bool QString_isRightToLeft(QStringH handle);
 C_EXPORT void QString_chopped(QStringH handle, int len, PWideString retval);
 C_EXPORT void QString_first(QStringH handle, int n, PWideString retval);
diff --git a/lcl/interfaces/qt6/qt62.pas b/lcl/interfaces/qt6/qt62.pas
index 9def6242a2a..bef59bfc9bc 100644
--- a/lcl/interfaces/qt6/qt62.pas
+++ b/lcl/interfaces/qt6/qt62.pas
@@ -3214,7 +3214,6 @@ procedure QString_push_back(handle: QStringH; s: PWideString); cdecl; external Q
 procedure QString_push_front(handle: QStringH; c: PWideChar); cdecl; external Qt6PasLib name 'QString_push_front';
 procedure QString_push_front(handle: QStringH; s: PWideString); cdecl; external Qt6PasLib name 'QString_push_front2';
 function QString_isNull(handle: QStringH): Boolean; cdecl; external Qt6PasLib name 'QString_isNull';
-function QString_isSimpleText(handle: QStringH): Boolean; cdecl; external Qt6PasLib name 'QString_isSimpleText';
 function QString_isRightToLeft(handle: QStringH): Boolean; cdecl; external Qt6PasLib name 'QString_isRightToLeft';
 function QString_Create(size: Integer; AnonParam2: QtInitialization): QStringH; cdecl; external Qt6PasLib name 'QString_Create8';
 procedure QString_chopped(handle: QStringH; len: integer; retval: PWideString); cdecl; external Qt6PasLib name 'QString_chopped';
-- 
GitLab

openSUSE Build Service is sponsored by