Commit bc5770af authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fix keyboard selection on the todo tree view



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent c3837da6
Pipeline #234040 canceled with stage
in 1 minute and 53 seconds
......@@ -198,6 +198,8 @@ TreeListView {
}
]
onClicked: root.viewAndRetainTodoData(model, listItem);
contentItem: IncidenceMouseArea {
id: mouseArea
......@@ -208,16 +210,13 @@ TreeListView {
incidenceData: model
collectionId: model.collectionId
propagateComposedEvents: true
acceptedButtons: Qt.RightButton
preventStealing: !Kirigami.Settings.tabletMode && !Kirigami.Settings.isMobile
drag.target: !Kirigami.Settings.isMobile && !model.isReadOnly && root.dragDropEnabled ? listItem : undefined
onReleased: listItem.Drag.drop()
onViewClicked: {
root.viewAndRetainTodoData(model, listItem);
listItem.clicked(); // Properly highlight the tree item
}
onViewClicked: listItem.clicked()
onEditClicked: KalendarUiUtils.setUpEdit(model.incidencePtr)
onDeleteClicked: KalendarUiUtils.setUpDelete(model.incidencePtr,
model.endTime ? model.endTime :
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment