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

Stop selecting todo delegate on right-click, only invoke context menu



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 20731036
Pipeline #232743 failed with stage
in 1 minute and 56 seconds
......@@ -198,8 +198,6 @@ TreeListView {
}
]
onClicked: root.viewAndRetainTodoData(model, listItem)
contentItem: IncidenceMouseArea {
id: mouseArea
......@@ -210,14 +208,16 @@ TreeListView {
incidenceData: model
collectionId: model.collectionId
acceptedButtons: Qt.RightButton
propagateComposedEvents: true
preventStealing: !Kirigami.Settings.tabletMode && !Kirigami.Settings.isMobile
drag.target: !Kirigami.Settings.isMobile && !model.isReadOnly && root.dragDropEnabled ? listItem : undefined
onReleased: listItem.Drag.drop()
onViewClicked: listItem.clicked()
onViewClicked: {
root.viewAndRetainTodoData(model, listItem);
listItem.clicked(); // Properly highlight the tree item
}
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