From 28e0cecebd574fedcfd636e75f1cba4b3f654f55 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Sun, 23 Oct 2016 06:58:48 -0500 Subject: [PATCH] sddm-breeze: Requires: qt5-qtquickcontrols instead (kde#371493) --- ...e-username-password-textboxes-when-u.patch | 53 +++++++++++++++++++ ...ove-unused-import-QtGraphicalEffects.patch | 27 ++++++++++ plasma-workspace.spec | 14 +++-- 3 files changed, 90 insertions(+), 4 deletions(-) create mode 100644 0002-Directly-show-the-username-password-textboxes-when-u.patch create mode 100644 0003-Remove-unused-import-QtGraphicalEffects.patch diff --git a/0002-Directly-show-the-username-password-textboxes-when-u.patch b/0002-Directly-show-the-username-password-textboxes-when-u.patch new file mode 100644 index 0000000..8db530e --- /dev/null +++ b/0002-Directly-show-the-username-password-textboxes-when-u.patch @@ -0,0 +1,53 @@ +From 70fc5cc70281abad8e50ae17a9d0d90817488813 Mon Sep 17 00:00:00 2001 +From: Antonio Larrosa +Date: Fri, 21 Oct 2016 14:33:04 +0200 +Subject: [PATCH 2/3] Directly show the username/password textboxes when user + list is empty + +Summary: +If the user list is empty (for example, because regular users are hidden +or sddm's configuration includes something like MinimumUid=2000) +show directly the username/password textboxes instead of an empty +user list. + +Test Plan: +I edited /etc/sddm.conf and added MinimumUid=2000 to the [Users] group, +then restarted sddm. + +Reviewers: #plasma, davidedmundson + +Reviewed By: #plasma, davidedmundson + +Subscribers: plasma-devel + +Tags: #plasma + +Differential Revision: https://phabricator.kde.org/D3128 +--- + sddm-theme/Main.qml | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/sddm-theme/Main.qml b/sddm-theme/Main.qml +index 4230cbe..9078743 100644 +--- a/sddm-theme/Main.qml ++++ b/sddm-theme/Main.qml +@@ -90,7 +90,15 @@ PlasmaCore.ColorScope { + id: userListComponent + userListModel: userModel + userListCurrentIndex: userModel.lastIndex >= 0 ? userModel.lastIndex : 0 +- showUserList: (userListModel.count && userListModel.disableAvatarsThreshold) ? userListModel.count <= userListModel.disableAvatarsThreshold : true ++ showUserList: { ++ if ( !userListModel.hasOwnProperty("count") ++ || !userListModel.hasOwnProperty("disableAvatarsThreshold")) ++ return true ++ ++ if ( userListModel.count == 0 ) return false ++ ++ return userListModel.count <= userListModel.disableAvatarsThreshold ++ } + + notificationMessage: { + var text = "" +-- +2.7.4 + diff --git a/0003-Remove-unused-import-QtGraphicalEffects.patch b/0003-Remove-unused-import-QtGraphicalEffects.patch new file mode 100644 index 0000000..e407257 --- /dev/null +++ b/0003-Remove-unused-import-QtGraphicalEffects.patch @@ -0,0 +1,27 @@ +From b61c232722aa80567590ee6dfee655e93e95f7ff Mon Sep 17 00:00:00 2001 +From: Kai Uwe Broulik +Date: Sun, 23 Oct 2016 13:24:00 +0200 +Subject: [PATCH 3/3] Remove unused import QtGraphicalEffects + +BUG: 371493 +FIXED-IN: 5.8.3 +--- + sddm-theme/Background.qml | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/sddm-theme/Background.qml b/sddm-theme/Background.qml +index 9a15c94..085ea74 100644 +--- a/sddm-theme/Background.qml ++++ b/sddm-theme/Background.qml +@@ -23,8 +23,6 @@ + ***************************************************************************/ + + import QtQuick 2.2 +-import QtGraphicalEffects 1.0 +- + + FocusScope { + property alias source: image.source +-- +2.7.4 + diff --git a/plasma-workspace.spec b/plasma-workspace.spec index c0469d9..2d70f2e 100644 --- a/plasma-workspace.spec +++ b/plasma-workspace.spec @@ -7,7 +7,7 @@ Name: plasma-workspace Summary: Plasma workspace, applications and applets Version: 5.8.2 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ URL: https://quickgit.kde.org/?p=%{name}.git @@ -52,6 +52,8 @@ Patch51: kde-runtime-4.9.0-installdbgsymbols.patch Patch52: plasma-workspace-5.6.4-installdbgsymbols.patch ## upstream Patches +Patch2: 0002-Directly-show-the-username-password-textboxes-when-u.patch +Patch3: 0003-Remove-unused-import-QtGraphicalEffects.patch ## upstream Patches (master branch) # systray-related fixes @@ -377,9 +379,8 @@ Summary: SDDM breeze theme # upgrade path, when sddm-breeze was split out Obsoletes: plasma-workspace < 5.3.2-8 Requires: kf5-plasma -# Background.qml:import QtGraphicalEffects 1.0 -# see also https://bugs.kde.org/show_bug.cgi?id=371493 -Requires: qt5-graphicaleffects +# Background.qml:import QtQuick +Requires: qt5-qtquickcontrols # QML imports: # org.kde.plasma.workspace.components # org.kde.plasma.workspace.keyboardlayout @@ -431,6 +432,8 @@ BuildArch: noarch %setup -q ## upstream patches +%patch2 -p1 -b .0002 +%patch3 -p1 -b .0003 #patch31 -p1 -b .0031 %patch33 -p1 -b .0033 @@ -709,6 +712,9 @@ fi %changelog +* Sun Oct 23 2016 Rex Dieter - 5.8.2-4 +- sddm-breeze: Requires: qt5-qtquickcontrols instead (kde#371493) + * Sat Oct 22 2016 Rex Dieter - 5.8.2-3 - sddm-breeze: Requires: qt5-qtgraphicaleffects (kde#371493)