mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
kde-frameworks/kirigami: Fix visual regression
See also: https://mail.kde.org/pipermail/distributions/2025-December/001651.html Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From 19127672cd812d177192cf84da4107f9abed2934 Mon Sep 17 00:00:00 2001
|
||||
From: Akseli Lahtinen <akselmo@akselmo.dev>
|
||||
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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user