update transitions
This commit is contained in:
parent
b4f4ec4ac9
commit
3c655d0051
6 changed files with 10 additions and 23 deletions
|
|
@ -95,7 +95,7 @@ Item {
|
|||
|
||||
depthIndex = 0
|
||||
PageController.decrementDrawerDepth()
|
||||
FocusController.setRootItem(null)
|
||||
FocusController.dropRootObject(root)
|
||||
}
|
||||
|
||||
function onOpenTriggered() {
|
||||
|
|
@ -118,7 +118,7 @@ Item {
|
|||
}
|
||||
|
||||
depthIndex = PageController.incrementDrawerDepth()
|
||||
FocusController.setRootItem(root)
|
||||
FocusController.pushRootObject(root)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,25 +15,13 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
// MouseArea {
|
||||
// id: globalMouseArea
|
||||
// z: 99
|
||||
// anchors.fill: parent
|
||||
|
||||
// enabled: true
|
||||
|
||||
// onPressed: function(mouse) {
|
||||
// forceActiveFocus()
|
||||
// mouse.accepted = false
|
||||
// }
|
||||
// }
|
||||
|
||||
// Set a timer to set focus after a short delay
|
||||
Timer {
|
||||
id: timer
|
||||
interval: 500 // Milliseconds
|
||||
onTriggered: {
|
||||
FocusController.resetFocus()
|
||||
FocusController.resetRootObject()
|
||||
FocusController.setFocusOnDefaultItem()
|
||||
}
|
||||
repeat: false // Stop the timer after one trigger
|
||||
running: !GC.isMobile() // Start the timer
|
||||
|
|
|
|||
|
|
@ -28,11 +28,11 @@ Popup {
|
|||
}
|
||||
|
||||
onOpened: {
|
||||
FocusController.setRootItem(root)
|
||||
FocusController.pushRootObject(root)
|
||||
}
|
||||
|
||||
onClosed: {
|
||||
FocusController.setRootItem(null)
|
||||
FocusController.dropRootObject(root)
|
||||
}
|
||||
|
||||
background: Rectangle {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue