kirigami rebuild

This commit is contained in:
Rmys
2025-12-16 10:39:07 +03:00
parent 1eaefed29f
commit e326de4c39
2 changed files with 33 additions and 4 deletions
@@ -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
+2 -4
View File
@@ -23,9 +23,7 @@
<Dependency versionFrom="5.7.1">qt6-shadertools-devel</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level="1">12892328.patch</Patch> -->
<!-- <Patch level="1">8d96bcc3.patch</Patch> -->
<!-- <Patch level="1">140067bb.patch</Patch> -->
<Patch level="1">19127672.patch</Patch>
</Patches>
</Source>
<Package>
@@ -63,7 +61,7 @@
</Package>
<History>
<Update release="74">
<Update release="75">
<Date>2025-12-12</Date>
<Version>6.21.0</Version>
<Comment>Version bump.</Comment>