diff --git a/example/example_en_US.ts b/example/example_en_US.ts index 6c797b1b..dfdff1bc 100644 --- a/example/example_en_US.ts +++ b/example/example_en_US.ts @@ -375,6 +375,7 @@ TableView + TreeView2 @@ -2385,6 +2386,14 @@ Some contents... + + T_TreeView2 + + + TreeView2 + + + T_Typography diff --git a/example/example_zh_CN.ts b/example/example_zh_CN.ts index 7af389cd..91add544 100644 --- a/example/example_zh_CN.ts +++ b/example/example_zh_CN.ts @@ -375,6 +375,7 @@ TableView + TreeView2 表格 @@ -2468,6 +2469,14 @@ Some contents... 共计选中%1条数据 + + T_TreeView2 + + + TreeView2 + + + T_Typography diff --git a/src/Qt5/imports/FluentUI/Controls/FluPopup.qml b/src/Qt5/imports/FluentUI/Controls/FluPopup.qml index 1f777f0e..24f69723 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluPopup.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluPopup.qml @@ -11,7 +11,7 @@ Popup { parent: Overlay.overlay x: Math.round((d.parentWidth - width) / 2) y: Math.round((d.parentHeight - height) / 2) - closePolicy: Popup.CloseOnEscape + closePolicy: Popup.NoAutoClose enter: Transition { NumberAnimation { property: "opacity" diff --git a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml index fbdf62ee..6c959f43 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml @@ -65,7 +65,7 @@ Window { Component.onCompleted: { FluRouter.addWindow(window) useSystemAppBar = FluApp.useSystemAppBar - if(useSystemAppBar && autoCenter){ + if(!useSystemAppBar && autoCenter){ moveWindowToDesktopCenter() } fixWindowSize() diff --git a/src/Qt6/imports/FluentUI/Controls/FluPopup.qml b/src/Qt6/imports/FluentUI/Controls/FluPopup.qml index c933bea3..785ce5f2 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluPopup.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluPopup.qml @@ -11,7 +11,7 @@ Popup { parent: Overlay.overlay x: Math.round((d.parentWidth - width) / 2) y: Math.round((d.parentHeight - height) / 2) - closePolicy: Popup.CloseOnEscape + closePolicy: Popup.NoAutoClose enter: Transition { NumberAnimation { property: "opacity" diff --git a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml index 4b88b1e3..43438fe4 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml @@ -64,7 +64,7 @@ Window { Component.onCompleted: { FluRouter.addWindow(window) useSystemAppBar = FluApp.useSystemAppBar - if(useSystemAppBar && autoCenter){ + if(!useSystemAppBar && autoCenter){ moveWindowToDesktopCenter() } fixWindowSize()