From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A8FE41580B7 for ; Sat, 4 Sep 2021 21:01:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A688FE0826; Sat, 4 Sep 2021 21:01:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7030DE0817 for ; Sat, 4 Sep 2021 21:01:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5969A33E695 for ; Sat, 4 Sep 2021 21:01:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5951DB0 for ; Sat, 4 Sep 2021 21:01:21 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1630789123.2a33f82ee80caa693a8a22b30667f42c89aaa929.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/plasma/files/, kde-frameworks/plasma/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-frameworks/plasma/files/plasma-5.85.0-fix-ExpandableListItem-overlapping.patch kde-frameworks/plasma/plasma-5.85.0-r3.ebuild X-VCS-Directories: kde-frameworks/plasma/files/ kde-frameworks/plasma/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 2a33f82ee80caa693a8a22b30667f42c89aaa929 X-VCS-Branch: master Date: Sat, 4 Sep 2021 21:01:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 45d44a86-f3f6-4e43-9e94-9e4df29fd7b7 X-Archives-Hash: 8c78e295119832c3454c955a1a79aa5e commit: 2a33f82ee80caa693a8a22b30667f42c89aaa929 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Sep 4 11:09:00 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Sep 4 20:58:43 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a33f82e kde-frameworks/plasma: ExpandableListItem: Fix overlapping entries Upstream commit f393bace87e5fc8c0e68eff9faf0656df64715ed KDE-bug: https://bugs.kde.org/show_bug.cgi?id=428102 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> ...5.85.0-fix-ExpandableListItem-overlapping.patch | 41 +++++++++++ kde-frameworks/plasma/plasma-5.85.0-r3.ebuild | 80 ++++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/kde-frameworks/plasma/files/plasma-5.85.0-fix-ExpandableListItem-overlapping.patch b/kde-frameworks/plasma/files/plasma-5.85.0-fix-ExpandableListItem-overlapping.patch new file mode 100644 index 00000000000..8063039b762 --- /dev/null +++ b/kde-frameworks/plasma/files/plasma-5.85.0-fix-ExpandableListItem-overlapping.patch @@ -0,0 +1,41 @@ +From f393bace87e5fc8c0e68eff9faf0656df64715ed Mon Sep 17 00:00:00 2001 +From: Nate Graham +Date: Wed, 1 Sep 2021 12:30:01 -0600 +Subject: [PATCH] ExpandableListItem: Fix overlapping entries with many + expanded items + +A previous hack was done wrong, and was not taking into account disabled +items. + +BUG: 428102 +FIXED-IN: 5.86 +--- + .../plasmaextracomponents/qml/ExpandableListItem.qml | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml +index 47b3e3684..851961a4c 100644 +--- a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml ++++ b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml +@@ -523,7 +523,7 @@ Item { + + // Container for actions list, so that we can add left and right margins to it + Item { +- height: actionsList.contentHeight ++ height: actionsList.height + width: mainRowLayout.width + + // TODO: Implement keyboard focus +@@ -538,7 +538,8 @@ Item { + anchors.leftMargin: listItemIcon.width + PlasmaCore.Units.smallSpacing + anchors.rightMargin: listItemIcon.width + PlasmaCore.Units.smallSpacing * 2 + +- height: PlasmaCore.Units.gridUnit * 2 * actionsList.count ++ // Need to take into account disabled/invisible items ++ height: PlasmaCore.Units.gridUnit * 2 * Array.from(contextualActionsModel).filter(item => item.enabled).length + + focus: true + clip: true +-- +GitLab + diff --git a/kde-frameworks/plasma/plasma-5.85.0-r3.ebuild b/kde-frameworks/plasma/plasma-5.85.0-r3.ebuild new file mode 100644 index 00000000000..433fe380d17 --- /dev/null +++ b/kde-frameworks/plasma/plasma-5.85.0-r3.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +KDE_ORG_NAME="${PN}-framework" +PVCUT=$(ver_cut 1-2) +QTMIN=5.15.2 +VIRTUALX_REQUIRED="test" +inherit ecm kde.org + +DESCRIPTION="Plasma framework" + +LICENSE="LGPL-2+" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +IUSE="gles2-only man wayland X" + +RESTRICT+=" test" + +RDEPEND=" + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtdeclarative-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5[gles2-only=,X=] + >=dev-qt/qtquickcontrols-${QTMIN}:5 + >=dev-qt/qtsql-${QTMIN}:5 + >=dev-qt/qtsvg-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + =kde-frameworks/kactivities-${PVCUT}*:5 + =kde-frameworks/karchive-${PVCUT}*:5 + =kde-frameworks/kconfig-${PVCUT}*:5 + =kde-frameworks/kconfigwidgets-${PVCUT}*:5 + =kde-frameworks/kcoreaddons-${PVCUT}*:5 + =kde-frameworks/kdeclarative-${PVCUT}*:5 + =kde-frameworks/kglobalaccel-${PVCUT}*:5 + =kde-frameworks/kguiaddons-${PVCUT}*:5 + =kde-frameworks/ki18n-${PVCUT}*:5 + =kde-frameworks/kiconthemes-${PVCUT}*:5 + =kde-frameworks/kio-${PVCUT}*:5 + =kde-frameworks/kirigami-${PVCUT}*:5 + =kde-frameworks/knotifications-${PVCUT}*:5 + =kde-frameworks/kpackage-${PVCUT}*:5 + =kde-frameworks/kservice-${PVCUT}*:5 + =kde-frameworks/kwidgetsaddons-${PVCUT}*:5 + =kde-frameworks/kwindowsystem-${PVCUT}*:5 + =kde-frameworks/kxmlgui-${PVCUT}*:5 + !gles2-only? ( media-libs/libglvnd[X?] ) + wayland? ( + =kde-frameworks/kwayland-${PVCUT}*:5 + media-libs/libglvnd + ) + X? ( + >=dev-qt/qtx11extras-${QTMIN}:5 + x11-libs/libX11 + x11-libs/libxcb + ) +" +DEPEND="${RDEPEND} + X? ( x11-base/xorg-proto ) +" +BDEPEND="man? ( >=kde-frameworks/kdoctools-${PVCUT}:5 )" + +PATCHES=( + "${FILESDIR}"/${P}-fix-plasma-scaling-w-int-scale-factors.patch + "${FILESDIR}"/${P}-fix-pinned-calendar-dots.patch # KDE-bug 440627 + "${FILESDIR}"/${P}-fix-cmake.patch # bug 809815 + "${FILESDIR}"/${P}-fix-ExpandableListItem-overlapping.patch # KDE-bug 428102 +) + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package !gles2-only OpenGL) + $(cmake_use_find_package man KF5DocTools) + $(cmake_use_find_package wayland EGL) + $(cmake_use_find_package wayland KF5Wayland) + $(cmake_use_find_package X X11) + $(cmake_use_find_package X XCB) + ) + + ecm_src_configure +}