update transitions
This commit is contained in:
parent
b4f4ec4ac9
commit
3c655d0051
6 changed files with 10 additions and 23 deletions
|
|
@ -37,11 +37,11 @@ DrawerType2 {
|
||||||
target: root
|
target: root
|
||||||
enabled: !GC.isMobile()
|
enabled: !GC.isMobile()
|
||||||
function onOpened() {
|
function onOpened() {
|
||||||
FocusController.setRootItem(root)
|
FocusController.pushRootObject(root)
|
||||||
}
|
}
|
||||||
|
|
||||||
function onClosed() {
|
function onClosed() {
|
||||||
FocusController.setRootItem(null)
|
FocusController.dropRootObject(root)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,11 +24,11 @@ DrawerType2 {
|
||||||
target: root
|
target: root
|
||||||
enabled: !GC.isMobile()
|
enabled: !GC.isMobile()
|
||||||
function onOpened() {
|
function onOpened() {
|
||||||
FocusController.setRootItem(root)
|
FocusController.pushRootObject(root)
|
||||||
}
|
}
|
||||||
|
|
||||||
function onClosed() {
|
function onClosed() {
|
||||||
FocusController.setRootItem(null)
|
FocusController.dropRootObject(root)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ Item {
|
||||||
|
|
||||||
depthIndex = 0
|
depthIndex = 0
|
||||||
PageController.decrementDrawerDepth()
|
PageController.decrementDrawerDepth()
|
||||||
FocusController.setRootItem(null)
|
FocusController.dropRootObject(root)
|
||||||
}
|
}
|
||||||
|
|
||||||
function onOpenTriggered() {
|
function onOpenTriggered() {
|
||||||
|
|
@ -118,7 +118,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
depthIndex = PageController.incrementDrawerDepth()
|
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
|
// Set a timer to set focus after a short delay
|
||||||
Timer {
|
Timer {
|
||||||
id: timer
|
id: timer
|
||||||
interval: 500 // Milliseconds
|
interval: 500 // Milliseconds
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
FocusController.resetFocus()
|
FocusController.resetRootObject()
|
||||||
|
FocusController.setFocusOnDefaultItem()
|
||||||
}
|
}
|
||||||
repeat: false // Stop the timer after one trigger
|
repeat: false // Stop the timer after one trigger
|
||||||
running: !GC.isMobile() // Start the timer
|
running: !GC.isMobile() // Start the timer
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,11 @@ Popup {
|
||||||
}
|
}
|
||||||
|
|
||||||
onOpened: {
|
onOpened: {
|
||||||
FocusController.setRootItem(root)
|
FocusController.pushRootObject(root)
|
||||||
}
|
}
|
||||||
|
|
||||||
onClosed: {
|
onClosed: {
|
||||||
FocusController.setRootItem(null)
|
FocusController.dropRootObject(root)
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|
|
||||||
|
|
@ -299,7 +299,6 @@ PageType {
|
||||||
tabBarStackView.goToTabBarPage(PageEnum.PageHome)
|
tabBarStackView.goToTabBarPage(PageEnum.PageHome)
|
||||||
ServersModel.processedIndex = ServersModel.defaultIndex
|
ServersModel.processedIndex = ServersModel.defaultIndex
|
||||||
tabBar.currentIndex = 0
|
tabBar.currentIndex = 0
|
||||||
FocusController.setRootItem(null) // TODO: move to do it automaticaly
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue