This commit is contained in:
朱子楚\zhuzi 2024-03-23 22:28:14 +08:00
parent 37101c97c5
commit e0254f2f80
2 changed files with 5 additions and 5 deletions

View File

@ -37,6 +37,6 @@ FluWindow {
var y = transientParent.y + (transientParent.height - height)/2 var y = transientParent.y + (transientParent.height - height)/2
control.stayTop = Qt.binding(function(){return transientParent.stayTop}) control.stayTop = Qt.binding(function(){return transientParent.stayTop})
control.setGeometry(x,y,width,height) control.setGeometry(x,y,width,height)
control.visible = true control.visibility = Window.Windowed
} }
} }

View File

@ -26,9 +26,9 @@ FluWindow {
} }
Connections{ Connections{
target: control.transientParent target: control.transientParent
function onVisibleChanged(){ function onVisibilityChanged(){
if(control.transientParent.visible === false){ if(control.transientParent.visibility === Window.Hidden){
control.visible = false control.visibility = Window.Hidden
} }
} }
} }
@ -37,6 +37,6 @@ FluWindow {
var y = transientParent.y + (transientParent.height - height)/2 var y = transientParent.y + (transientParent.height - height)/2
control.stayTop = Qt.binding(function(){return transientParent.stayTop}) control.stayTop = Qt.binding(function(){return transientParent.stayTop})
control.setGeometry(x,y,width,height) control.setGeometry(x,y,width,height)
control.visible = true control.visibility = Window.Windowed
} }
} }