double clicked
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user