Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
c3837da6
Commit
c3837da6
authored
Sep 16, 2022
by
Claudio Cambra
Browse files
Stop selecting todo delegate on right-click, only invoke context menu
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
20731036
Pipeline
#232743
failed with stage
in 1 minute and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/MainViews/TodoTreeView.qml
View file @
c3837da6
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment