Bug 512048 - SwipeListItem in RtL has broken padding and prints errors
Summary: SwipeListItem in RtL has broken padding and prints errors
Status: CONFIRMED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: Master
Platform: Other Linux
: HI normal
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-13 22:38 UTC by cwo
Modified: 2025-11-14 10:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
kde connect plugin settings with wrong highlight padding (102.66 KB, image/png)
2025-11-13 22:38 UTC, cwo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cwo 2025-11-13 22:38:02 UTC
Created attachment 186755 [details]
kde connect plugin settings with wrong highlight padding

SUMMARY

SwipeListItem prints a lot of errors when used in RtL, and the highlight is misaligned.

Tested using both KDE Connect's Plugin Settings page and Discover's Settings, both have the error and misaligned highlight (need to sue keyboard navigation in Discover, it does not highlight on hover).

The error is a lot of


<Unknown File>: QML QQuickAnchors: Binding loop detected for property "left":
file:///home/wolki/kde/usr/lib64/qml/org/kde/kirigami/SwipeListItem.qml:309:17
<Unknown File>: QML QQuickAnchors: Binding loop detected for property "left":
file:///home/wolki/kde/usr/lib64/qml/org/kde/kirigami/SwipeListItem.qml:309:17
qml: Don't override the leftPadding or rightPadding on a SwipeListItem!
This makes it impossible for me to adjust my layout as I need to for various usecases.
I'll try to fix the mistake for you, but you should remove your overrides from your app's code entirely.
If I can't fix the paddings, I'll fall back to a default layout, but it'll be slightly incorrect and lacks
adaptations needed for touch screens and right-to-left languages, among other things.

Looking at the implementations, it seems they don't do anything with the leftPadding or rightPadding values, and the errors do not happen in LtR. I suspect there's something wrong in SwipeListItem that triggers this
.
STEPS TO REPRODUCE
1.  kdeconnect-app --reverse
2. Click an available device in sidebar
3. Click Settings button in toolbar
4. Hover over entry

OBSERVED RESULT

Errors printed in console output, misaligned highlight on list items

EXPECTED RESULT

No errors, correct padding
SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 cwo 2025-11-13 22:38:55 UTC
Oops, forgot:

Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-300.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: Intel® HD Graphics 520

Same thing happens on a different computer using the Fedora builds of everything, instead of my own master builds.