keeping parent's cusorshape and Drawer2Type's close-animation
This commit is contained in:
parent
a83cd29f72
commit
c461e00c5c
1 changed files with 12 additions and 5 deletions
|
|
@ -183,6 +183,12 @@ Item {
|
||||||
properties: "y"
|
properties: "y"
|
||||||
duration: 200
|
duration: 200
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onRunningChanged: {
|
||||||
|
if (!running) {
|
||||||
|
visibledMouseArea(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
Transition {
|
Transition {
|
||||||
|
|
@ -211,8 +217,7 @@ Item {
|
||||||
}
|
}
|
||||||
draw2Background.color = "#90000000"
|
draw2Background.color = "#90000000"
|
||||||
|
|
||||||
fullMouseArea.visible = true
|
visibledMouseArea(true)
|
||||||
dragArea.visible = true
|
|
||||||
|
|
||||||
root.y = 0
|
root.y = 0
|
||||||
root.state = "opened"
|
root.state = "opened"
|
||||||
|
|
@ -231,9 +236,6 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
fullMouseArea.visible = false
|
|
||||||
dragArea.visible = false
|
|
||||||
|
|
||||||
draw2Background.color = "transparent"
|
draw2Background.color = "transparent"
|
||||||
root.state = "closed"
|
root.state = "closed"
|
||||||
}
|
}
|
||||||
|
|
@ -250,4 +252,9 @@ Item {
|
||||||
close()
|
close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function visibledMouseArea(visbile) {
|
||||||
|
fullMouseArea.visible = visbile
|
||||||
|
dragArea.visible = visbile
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue