File qsyncthingtray-fix-qt-cmake.patch of Package qsyncthingtray

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -125,10 +125,12 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows
 endif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
 
 if (${QST_BUILD_WEBKIT})
-  qt5_use_modules(QSyncthingTray Widgets Network WebKitWidgets)
+  find_package(Qt5 COMPONENTS WebKitWidgets)
+  target_link_libraries(QSyncthingTray Qt5::Widgets Qt5::Network Qt5::WebKitWidgets)
   target_compile_definitions(QSyncthingTray PRIVATE BUILD_WEBKIT=1)
 else()
-  qt5_use_modules(QSyncthingTray Widgets Network WebEngineWidgets)
+  find_package(Qt5 COMPONENTS WebEngineWidgets)
+  target_link_libraries(QSyncthingTray Qt5::Widgets Qt5::Network Qt5::WebEngineWidgets)
 endif()
 
 
openSUSE Build Service is sponsored by