mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 05:17:05 +08:00
fix bug
This commit is contained in:
parent
37101c97c5
commit
e0254f2f80
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user