double clicked

This commit is contained in:
2026-04-29 20:16:03 +02:00
parent 8db28ec3a0
commit a3a55ba8d1
2 changed files with 8 additions and 0 deletions
@@ -78,6 +78,10 @@ LazyListView {
}
}
onDoubleClicked: event => {
if (event.button === Qt.LeftButton)
notifInner.toggleExpand(!notifInner.expanded);
}
onPositionChanged: event => {
if (pressed) {
const diffY = event.y - startY;
@@ -79,6 +79,10 @@ LazyListView {
Component.onCompleted: modelData?.lock(this)
Component.onDestruction: modelData?.unlock(this)
onDoubleClicked: event => {
if (event.button === Qt.LeftButton)
root.requestToggleExpand(!root.expanded);
}
onPositionChanged: event => {
if (pressed && !root.expanded) {
const diffY = event.y - startY;