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 => {
|
onPositionChanged: event => {
|
||||||
if (pressed) {
|
if (pressed) {
|
||||||
const diffY = event.y - startY;
|
const diffY = event.y - startY;
|
||||||
|
|||||||
@@ -79,6 +79,10 @@ LazyListView {
|
|||||||
|
|
||||||
Component.onCompleted: modelData?.lock(this)
|
Component.onCompleted: modelData?.lock(this)
|
||||||
Component.onDestruction: modelData?.unlock(this)
|
Component.onDestruction: modelData?.unlock(this)
|
||||||
|
onDoubleClicked: event => {
|
||||||
|
if (event.button === Qt.LeftButton)
|
||||||
|
root.requestToggleExpand(!root.expanded);
|
||||||
|
}
|
||||||
onPositionChanged: event => {
|
onPositionChanged: event => {
|
||||||
if (pressed && !root.expanded) {
|
if (pressed && !root.expanded) {
|
||||||
const diffY = event.y - startY;
|
const diffY = event.y - startY;
|
||||||
|
|||||||
Reference in New Issue
Block a user