fix: warnings when compiling with Qt 6.10 (#6422)

This commit is contained in:
nerix
2025-10-05 15:18:54 +02:00
committed by GitHub
parent 2c44a2efd2
commit 38a3bf2ef8
17 changed files with 105 additions and 24 deletions
+4
View File
@@ -137,6 +137,10 @@ find_package(Qt${MAJOR_QT_VERSION} REQUIRED
Svg
Concurrent
)
if(CHATTERINO_ALLOW_PRIVATE_QT_API)
# Only exists since 6.10 and prints a warning regarding private headers
find_package(Qt${MAJOR_QT_VERSION} COMPONENTS GuiPrivate)
endif()
message(STATUS "Qt version: ${Qt${MAJOR_QT_VERSION}_VERSION}")