File Backport-dbus-menu-bar-to-Qt-5.6.2.patch of Package plasma5-integration

From b98050e146888879f6801a5aa74ec41bcb021fea Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Thu, 2 Mar 2017 13:29:14 +0100
Subject: [PATCH] Backport dbus menu bar to Qt 5.6.2

---
 CMakeLists.txt                         | 2 +-
 src/platformtheme/kdeplatformtheme.cpp | 4 ++--
 src/platformtheme/kdeplatformtheme.h   | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

Index: plasma-integration-5.9.3/CMakeLists.txt
===================================================================
--- plasma-integration-5.9.3.orig/CMakeLists.txt
+++ plasma-integration-5.9.3/CMakeLists.txt
@@ -45,7 +45,7 @@ set_package_properties(XCB PROPERTIES
     PURPOSE "Required to pass style properties to native Windows on X11 Platform"
 )
 
-find_package(Breeze ${PROJECT_VERSION} CONFIG)
+find_package(Breeze "5.8" CONFIG)
 set_package_properties(Breeze PROPERTIES
                        TYPE REQUIRED
                        PURPOSE "For setting the default QStyle name")
Index: plasma-integration-5.9.3/src/platformtheme/kdeplatformtheme.cpp
===================================================================
--- plasma-integration-5.9.3.orig/src/platformtheme/kdeplatformtheme.cpp
+++ plasma-integration-5.9.3/src/platformtheme/kdeplatformtheme.cpp
@@ -51,7 +51,7 @@
 #include <KLocalizedString>
 #include <KWindowSystem>
 
-#if QT_VERSION >= QT_VERSION_CHECK(5,7,0)
+#if QT_VERSION >= QT_VERSION_CHECK(5,6,2)
 #include "qdbusmenubar_p.h"
 #endif
 
@@ -326,7 +326,7 @@ QPlatformSystemTrayIcon *KdePlatformThem
     return new KDEPlatformSystemTrayIcon;
 }
 
-#if QT_VERSION >= QT_VERSION_CHECK(5,7,0)
+#if QT_VERSION >= QT_VERSION_CHECK(5,6,2)
 QPlatformMenuBar *KdePlatformTheme::createPlatformMenuBar() const
 {
     if (isDBusGlobalMenuAvailable()) {
Index: plasma-integration-5.9.3/src/platformtheme/kdeplatformtheme.h
===================================================================
--- plasma-integration-5.9.3.orig/src/platformtheme/kdeplatformtheme.h
+++ plasma-integration-5.9.3/src/platformtheme/kdeplatformtheme.h
@@ -55,7 +55,7 @@ public:
 
     QPlatformSystemTrayIcon *createPlatformSystemTrayIcon() const Q_DECL_OVERRIDE;
 
-#if QT_VERSION >= QT_VERSION_CHECK(5,7,0)
+#if QT_VERSION >= QT_VERSION_CHECK(5,6,2)
     QPlatformMenuBar *createPlatformMenuBar() const Q_DECL_OVERRIDE;
 #endif
 
Index: plasma-integration-5.9.3/src/platformtheme/CMakeLists.txt
===================================================================
--- plasma-integration-5.9.3.orig/src/platformtheme/CMakeLists.txt
+++ plasma-integration-5.9.3/src/platformtheme/CMakeLists.txt
@@ -36,7 +36,7 @@ set(platformtheme_SRCS
     main.cpp
 )
 
-if(Qt5Core_VERSION VERSION_EQUAL "5.7.0" OR Qt5Core_VERSION VERSION_GREATER "5.7.0")
+if(Qt5Core_VERSION VERSION_EQUAL "5.6.2" OR Qt5Core_VERSION VERSION_GREATER "5.6.2")
 set(platformtheme_SRCS
     qdbusmenubar.cpp # fork of Qt's qdbusmenubar with some added setters for our convenience
     ${platformtheme_SRCS}