mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-24 03:30:59 +08:00
Merge branch 'temp'
This commit is contained in:
commit
c05222bd81
@ -43,12 +43,12 @@ Rectangle{
|
|||||||
property alias layoutStandardbuttons: layout_standard_buttons
|
property alias layoutStandardbuttons: layout_standard_buttons
|
||||||
property var maxClickListener : function(){
|
property var maxClickListener : function(){
|
||||||
if(FluTools.isMacos()){
|
if(FluTools.isMacos()){
|
||||||
if (d.win.visibility === Window.FullScreen)
|
if (d.win.visibility === Window.FullScreen || d.win.visibility === Window.Maximized)
|
||||||
d.win.showNormal()
|
d.win.showNormal()
|
||||||
else
|
else
|
||||||
d.win.showFullScreen()
|
d.win.showFullScreen()
|
||||||
}else{
|
}else{
|
||||||
if (d.win.visibility === Window.Maximized)
|
if (d.win.visibility === Window.Maximized || d.win.visibility === Window.FullScreen)
|
||||||
d.win.showNormal()
|
d.win.showNormal()
|
||||||
else
|
else
|
||||||
d.win.showMaximized()
|
d.win.showMaximized()
|
||||||
@ -93,7 +93,7 @@ Rectangle{
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
property bool isRestore: win && Window.Maximized === win.visibility
|
property bool isRestore: win && (Window.Maximized === win.visibility || Window.FullScreen === win.visibility)
|
||||||
property bool resizable: win && !(win.height === win.maximumHeight && win.height === win.minimumHeight && win.width === win.maximumWidth && win.width === win.minimumWidth)
|
property bool resizable: win && !(win.height === win.maximumHeight && win.height === win.minimumHeight && win.width === win.maximumWidth && win.width === win.minimumWidth)
|
||||||
function containsPointToItem(point,item){
|
function containsPointToItem(point,item){
|
||||||
var pos = item.mapToGlobal(0,0)
|
var pos = item.mapToGlobal(0,0)
|
||||||
|
Loading…
Reference in New Issue
Block a user