Avoid hidden swipe actions in mobile/tablet mode as those are broken

When clicking on an action the action is not triggered but the whole list
item enters a broken state instead. This can also be reproduced on the
desktop by setting `QT_QUICK_CONTROLS_MOBILE=1`.
This commit is contained in:
Martchus 2024-04-01 14:40:19 +02:00
parent f20c7b5d3d
commit c2fc538e2c
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Item {
Kirigami.SwipeListItem {
id: listItem
alwaysVisibleActions: true // default is broken in mobile/tablet mode
contentItem: RowLayout {
Kirigami.ListItemDragHandle {
listItem: listItem

View File

@ -14,6 +14,7 @@ Item {
Kirigami.SwipeListItem {
id: listItem
alwaysVisibleActions: true // default is broken in mobile/tablet mode
visible: !model.isLastRow
contentItem: RowLayout {
id: fieldRow