File qt5_fixes.patch of Package synergy

diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index 54cafabc..67f63113 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -39,7 +39,7 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
     target_link_libraries (synergy dns_sd)
 endif()
 
-qt5_use_modules (synergy Core Widgets Network)
+target_link_libraries(synergy Qt5::Core Qt5::Widgets Qt5::Network)
 target_compile_definitions (synergy PRIVATE -DSYNERGY_VERSION_STAGE="${SYNERGY_VERSION_STAGE}")
 target_compile_definitions (synergy PRIVATE -DSYNERGY_REVISION="${SYNERGY_REVISION}")
 
diff --git a/src/gui/src/ActionDialog.h b/src/gui/src/ActionDialog.h
index 34e4e856..264c1bf4 100644
--- a/src/gui/src/ActionDialog.h
+++ b/src/gui/src/ActionDialog.h
@@ -21,6 +21,7 @@
 #define ACTIONDIALOG_H
 
 #include <QDialog>
+#include <QButtonGroup>
 
 #include "ui_ActionDialogBase.h"
 
diff --git a/src/gui/src/ScreenSetupView.h b/src/gui/src/ScreenSetupView.h
index 38eae2a4..f415f5c6 100644
--- a/src/gui/src/ScreenSetupView.h
+++ b/src/gui/src/ScreenSetupView.h
@@ -22,6 +22,7 @@
 
 #include <QTableView>
 #include <QFlags>
+#include <QHeaderView>
 
 #include "Screen.h"
 
openSUSE Build Service is sponsored by