From c2fc538e2c176bbe3031113ee7d166beebec35ed Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 1 Apr 2024 14:40:19 +0200 Subject: [PATCH] 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`. --- qml/EntryDelegate.qml | 1 + qml/FieldsDelegate.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/qml/EntryDelegate.qml b/qml/EntryDelegate.qml index 6c0bbb1..40cdb46 100644 --- a/qml/EntryDelegate.qml +++ b/qml/EntryDelegate.qml @@ -14,6 +14,7 @@ Item { Kirigami.SwipeListItem { id: listItem + alwaysVisibleActions: true // default is broken in mobile/tablet mode contentItem: RowLayout { Kirigami.ListItemDragHandle { listItem: listItem diff --git a/qml/FieldsDelegate.qml b/qml/FieldsDelegate.qml index d668242..8a217b8 100644 --- a/qml/FieldsDelegate.qml +++ b/qml/FieldsDelegate.qml @@ -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