File support-Qt-6_10_0.patch of Package deepin-terminal

From dda05002da8d71c8348a9c9e941b12f370f7b2bc Mon Sep 17 00:00:00 2001
From: Felix Yan <felixonmars@archlinux.org>
Date: Wed, 15 Oct 2025 00:54:27 +0800
Subject: [PATCH] fix: compatibility with Qt 6.10

Credits to Antonio Rojas from Arch Linux.
---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 856dea86..9935a085 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -80,6 +80,9 @@ message("   >>> Build with DTK: ${DTK_VERSION_MAJOR}")
 
 find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS ${qt_required_components})
 find_package(Dtk${DTK_VERSION_MAJOR} COMPONENTS Widget REQUIRED)
+if(Qt${QT_VERSION_MAJOR}_VERSION VERSION_GREATER_EQUAL 6.10)
+  find_package(Qt${QT_VERSION_MAJOR} COMPONENTS GuiPrivate WidgetsPrivate REQUIRED)
+endif()
 
 include(FindPkgConfig)
 
openSUSE Build Service is sponsored by