File 0001-Revert-Remove-Qt-version-check.patch of Package plasma-framework

From 39aa628e17145ca250458e20ae922c3bd0e4e9c6 Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Mon, 7 Jan 2019 00:35:45 +0100
Subject: Remove Qt version check

Now that Qt 5.10 is the minimum required version
---
 src/declarativeimports/core/iconitem.cpp | 7 -------
 src/plasmaquick/dialog.cpp               | 2 --
 2 files changed, 9 deletions(-)

Reverted and rebased by Antonio Larrosa <alarrosa@suse.com> so Qt 5.9 is
still supported

Index: plasma-framework-5.56.0git.20190301T055628~21e671bee/src/declarativeimports/core/iconitem.cpp
===================================================================
--- plasma-framework-5.56.0git.20190301T055628~21e671bee.orig/src/declarativeimports/core/iconitem.cpp	2019-03-01 05:56:28.000000000 +0100
+++ plasma-framework-5.56.0git.20190301T055628~21e671bee/src/declarativeimports/core/iconitem.cpp	2019-03-01 07:46:14.400456528 +0100
@@ -67,6 +67,11 @@
     connect(KIconLoader::global(), &KIconLoader::iconLoaderSettingsChanged,
             this, &IconItem::updateImplicitSize);
 
+#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
+    connect(this, &QQuickItem::enabledChanged,
+            this, &IconItem::onEnabledChanged);
+#endif
+
     connect(this, &IconItem::implicitWidthChanged, this, &IconItem::implicitWidthChanged2);
     connect(this, &IconItem::implicitHeightChanged, this, &IconItem::implicitHeightChanged2);
 
@@ -674,8 +679,10 @@
 {
     if (change == ItemVisibleHasChanged && value.boolValue) {
         m_blockNextAnimation = true;
+#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
     } else if (change == ItemEnabledHasChanged) {
         onEnabledChanged();
+#endif
     } else if (change == ItemSceneChange && value.window) {
         if (m_window) {
             disconnect(m_window.data(), &QWindow::visibleChanged, this, &IconItem::windowVisibleChanged);
Index: plasma-framework-5.56.0git.20190301T055628~21e671bee/src/plasmaquick/dialog.cpp
===================================================================
--- plasma-framework-5.56.0git.20190301T055628~21e671bee.orig/src/plasmaquick/dialog.cpp	2019-03-01 05:56:28.000000000 +0100
+++ plasma-framework-5.56.0git.20190301T055628~21e671bee/src/plasmaquick/dialog.cpp	2019-03-01 07:46:14.400456528 +0100
@@ -1356,8 +1356,10 @@
             setPosition(popupPosition(d->visualParent, size()));
         }
 
+#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
         // Bug 381242: Qt remembers minimize state and re-applies it when showing
         setWindowStates(windowStates() & ~Qt::WindowMinimized);
+#endif
         QQuickWindow::setVisible(visible);
         //signal will be emitted and proxied from the QQuickWindow code
     } else {