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
bc5770af
Commit
bc5770af
authored
Sep 16, 2022
by
Claudio Cambra
Browse files
Fix keyboard selection on the todo tree view
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
c3837da6
Pipeline
#234040
canceled with stage
in 1 minute and 53 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/MainViews/TodoTreeView.qml
View file @
bc5770af
...
...
@@ -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
:
...
...
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