Bug 467884

Summary: SwipeListItem swiping is broken
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Andrey Reeshkov <reeshkov>
Component: generalAssignee: Andrey Reeshkov <reeshkov>
Status: RESOLVED FIXED    
Severity: normal CC: ben, me, nate, notmart, plasma-bugs, reeshkov
Priority: NOR Keywords: regression
Version: 5.104.0   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.105
Sentry Crash Report:
Attachments: screenshot

Description Andrey Reeshkov 2023-03-28 13:25:05 UTC
Created attachment 157668 [details]
screenshot

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open terminal
2. Run: QT_QUICK_CONTROLS_MOBILE=1 plasma-open-settings kcm_bluetooth
3. Click to control points

OBSERVED RESULT
In terminal error:
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/SwipeItemEventFilter.qml:26: TypeError: Cannot read property 'contentItem' of undefined
In UI nothing.

EXPECTED RESULT
Open controls to delete and connect device

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-04-03 23:12:37 UTC
Can confirm. These list items are intended to be swipable, but it looks like that's broken. And frankly the UX was always bad. But we should fix swiping at least, before we port away from SwipeListItem.
Comment 2 ratijas 2023-04-05 09:38:00 UTC
Git commit 63224c710f4c6db3ace69972c4040c5baa0c2942 by ivan tkachenko, on behalf of Andrey Reeshkov.
Committed on 04/04/2023 at 18:03.
Pushed by ratijas into branch 'master'.

SwipeListItem: Fix for QT_QUICK_CONTROLS_MOBILE

M  +9    -2    src/controls/templates/SwipeListItem.qml

https://invent.kde.org/frameworks/kirigami/commit/63224c710f4c6db3ace69972c4040c5baa0c2942
Comment 3 ratijas 2023-04-05 09:41:48 UTC
Git commit b37dce675f2679b78c6aa23d85b735f24b12b203 by ivan tkachenko, on behalf of Andrey Reeshkov.
Committed on 05/04/2023 at 09:38.
Pushed by ratijas into branch 'kf5'.

SwipeListItem: Fix for QT_QUICK_CONTROLS_MOBILE
(cherry picked from commit 63224c710f4c6db3ace69972c4040c5baa0c2942)

M  +9    -2    src/controls/templates/SwipeListItem.qml

https://invent.kde.org/frameworks/kirigami/commit/b37dce675f2679b78c6aa23d85b735f24b12b203