commit: 46a48dfc19b7d0bd0dacaf64b694b74ae22122e1 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Mon Dec 15 21:41:10 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Mon Dec 15 21:54:35 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46a48dfc
kde-frameworks/kirigami: Fix visual regression See also: https://mail.kde.org/pipermail/distributions/2025-December/001651.html Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> .../kirigami-6.21.0-fix-visual-regression.patch | 31 +++++++++++++ kde-frameworks/kirigami/kirigami-6.21.0-r1.ebuild | 53 ++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/kde-frameworks/kirigami/files/kirigami-6.21.0-fix-visual-regression.patch b/kde-frameworks/kirigami/files/kirigami-6.21.0-fix-visual-regression.patch new file mode 100644 index 000000000000..6ca5fdc75c71 --- /dev/null +++ b/kde-frameworks/kirigami/files/kirigami-6.21.0-fix-visual-regression.patch @@ -0,0 +1,31 @@ +From 19127672cd812d177192cf84da4107f9abed2934 Mon Sep 17 00:00:00 2001 +From: Akseli Lahtinen <[email protected]> +Date: Fri, 12 Dec 2025 13:18:48 +0200 +Subject: [PATCH] SwipeListItem: Add back checking for parent width and + implicitWidth + +This adds back implicitWidth that was removed and also sets the width of +the item to parent.width if there is a parent to be found. + +Without this, some applications relying on this behavior to happen +automatically would look broken, such as Discover settings. +--- + src/controls/SwipeListItem.qml | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/controls/SwipeListItem.qml b/src/controls/SwipeListItem.qml +index 441d80712..208b047bd 100644 +--- a/src/controls/SwipeListItem.qml ++++ b/src/controls/SwipeListItem.qml +@@ -191,6 +191,8 @@ QQC2.SwipeDelegate { + + hoverEnabled: true + implicitHeight: Math.max(actionsLayout.implicitHeight, contentItem.implicitHeight) + topPadding + bottomPadding ++ implicitWidth: Math.max(actionsLayout.implicitWidth, contentItem.implicitWidth) + leftPadding + rightPadding ++ width: parent ? parent.width : implicitWidth + + Keys.onTabPressed: (event) => { + if (actionsLayout.hasVisibleActions) { +-- +GitLab + diff --git a/kde-frameworks/kirigami/kirigami-6.21.0-r1.ebuild b/kde-frameworks/kirigami/kirigami-6.21.0-r1.ebuild new file mode 100644 index 000000000000..c85b4c0cefda --- /dev/null +++ b/kde-frameworks/kirigami/kirigami-6.21.0-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_EXAMPLES="true" +ECM_QTHELP="false" +ECM_TEST="true" +QTMIN=6.8.1 +inherit ecm frameworks.kde.org toolchain-funcs + +DESCRIPTION="Lightweight user interface framework for mobile and convergent applications" +HOMEPAGE="https://community.kde.org/Kirigami" + +LICENSE="LGPL-2+" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="openmp" + +# requires package to already be installed +RESTRICT="test" + +# slot op: Uses Qt6::GuiPrivate for qguiapplication_p.h +DEPEND=" + >=dev-qt/qtbase-${QTMIN}:6=[concurrent,dbus,gui,network] + >=dev-qt/qtdeclarative-${QTMIN}:6 + >=dev-qt/qtsvg-${QTMIN}:6 +" +RDEPEND="${DEPEND} + examples? ( + !${CATEGORY}/${PN}:5[examples(-)] + >=dev-qt/qt5compat-${QTMIN}:6[qml] + ) +" +BDEPEND=">=dev-qt/qttools-${QTMIN}:6[linguist]" + +PATCHES=( "${FILESDIR}/${P}-fix-visual-regression.patch" ) # 6.22 backport + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_configure() { + local mycmakeargs=( + -DBUILD_EXAMPLES=$(usex examples) + $(cmake_use_find_package openmp OpenMP) + ) + + ecm_src_configure +}
