summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/nextcloud-client/files/nextcloud-client-3.6.4-drop-dependency-on-Qt-Quick-Controls-1.patch')
-rw-r--r--net-misc/nextcloud-client/files/nextcloud-client-3.6.4-drop-dependency-on-Qt-Quick-Controls-1.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/net-misc/nextcloud-client/files/nextcloud-client-3.6.4-drop-dependency-on-Qt-Quick-Controls-1.patch b/net-misc/nextcloud-client/files/nextcloud-client-3.6.4-drop-dependency-on-Qt-Quick-Controls-1.patch
new file mode 100644
index 000000000000..e1bb0a11e13f
--- /dev/null
+++ b/net-misc/nextcloud-client/files/nextcloud-client-3.6.4-drop-dependency-on-Qt-Quick-Controls-1.patch
@@ -0,0 +1,59 @@
+From 600ad8f6003daee635093ad713f3f90cb7cc7485 Mon Sep 17 00:00:00 2001
+From: Florian Schmaus <flo@geekplace.eu>
+Date: Thu, 5 Jan 2023 11:58:08 +0100
+Subject: [PATCH] Drop dependency on Qt Quick Controls 1
+
+Qt Quick Controls 1 where deprecated with Qt 5.11 [1]. Nextcloud still
+depends on Quick Controls 1 by importing QtQuick.Dialogs. Removing
+those imports will cause the QMl script to use the according API from
+Quick Controls 2, which are, fortunately largely API-comptible.
+
+This helps distribution to deprecate and remove Quick Controls 1 [2].
+
+1: https://doc.qt.io/qt-6/qtquickcontrols-changes-qt6.html#migrating-from-qt-quick-controls-1
+2: https://bugs.gentoo.org/889772
+
+Signed-off-by: Florian Schmaus <flo@geekplace.eu>
+--- a/src/gui/BasicComboBox.qml
++++ b/src/gui/BasicComboBox.qml
+@@ -13,7 +13,6 @@
+ */
+
+ import QtQuick 2.15
+-import QtQuick.Dialogs 1.3
+ import QtQuick.Layouts 1.15
+ import QtQuick.Controls 2.15
+ import QtGraphicalEffects 1.0
+--- a/src/gui/PredefinedStatusButton.qml
++++ b/src/gui/PredefinedStatusButton.qml
+@@ -13,7 +13,6 @@
+ */
+
+ import QtQuick 2.15
+-import QtQuick.Dialogs 1.3
+ import QtQuick.Layouts 1.15
+ import QtQuick.Controls 2.15
+
+--- a/src/gui/UserStatusSelector.qml
++++ b/src/gui/UserStatusSelector.qml
+@@ -13,7 +13,6 @@
+ */
+
+ import QtQuick 2.6
+-import QtQuick.Dialogs 1.3
+ import QtQuick.Layouts 1.15
+ import QtQuick.Controls 2.15
+ import QtQuick.Window 2.15
+--- a/src/gui/UserStatusSelectorButton.qml
++++ b/src/gui/UserStatusSelectorButton.qml
+@@ -13,7 +13,6 @@
+ */
+
+ import QtQuick 2.6
+-import QtQuick.Dialogs 1.3
+ import QtQuick.Layouts 1.15
+ import QtQuick.Controls 2.15
+
+--
+2.38.2
+