emulators/pcsx2: Prepare for Qt 6.10

Backport upstream patch to fix build with Qt 6.10.

With hat:	kde@
This commit is contained in:
Jason E. Hale
2025-12-04 18:44:58 -05:00
parent d56f43f408
commit ef8d58bfe7
2 changed files with 30 additions and 1 deletions

View File

@@ -1,4 +1,8 @@
--- cmake/SearchForStuff.cmake.orig 2025-06-23 10:47:03 UTC
Backport [1] to fix build with Qt 6.10.
[1] https://github.com/PCSX2/pcsx2/commit/8dffc857079e942ca77b091486c20c3c6530e4ed
--- cmake/SearchForStuff.cmake.orig 2025-06-29 19:47:12 UTC
+++ cmake/SearchForStuff.cmake
@@ -1,6 +1,8 @@
#-------------------------------------------------------------------------------
@@ -9,3 +13,14 @@
find_package(Git)
# Require threads on all OSes.
@@ -108,6 +110,10 @@ find_package(Qt6 6.7.3 COMPONENTS CoreTools Core GuiTo
# Find the Qt components that we need.
find_package(Qt6 6.7.3 COMPONENTS CoreTools Core GuiTools Gui WidgetsTools Widgets LinguistTools REQUIRED)
+
+if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
+ find_package(Qt6 COMPONENTS GuiPrivate REQUIRED)
+endif()
if(WIN32)
add_subdirectory(3rdparty/rainterface EXCLUDE_FROM_ALL)

View File

@@ -0,0 +1,14 @@
Back port [1] to fix build with Qt 6.10.
[1] https://github.com/PCSX2/pcsx2/commit/8dffc857079e942ca77b091486c20c3c6530e4ed
--- pcsx2-qt/CMakeLists.txt.orig 2025-06-29 19:47:12 UTC
+++ pcsx2-qt/CMakeLists.txt
@@ -265,6 +265,7 @@ target_link_libraries(pcsx2-qt PRIVATE
PCSX2
Qt6::Core
Qt6::Gui
+ Qt6::GuiPrivate
Qt6::Widgets
KDAB::kddockwidgets
)