This commit is contained in:
朱子楚\zhuzi 2024-04-02 00:32:06 +08:00
parent da9f63eb24
commit 7d1666597f
6 changed files with 22 additions and 4 deletions

View File

@ -375,6 +375,7 @@
<message> <message>
<location filename="qml/global/ItemsOriginal.qml" line="318"/> <location filename="qml/global/ItemsOriginal.qml" line="318"/>
<source>TableView</source> <source>TableView</source>
<oldsource>TreeView2</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
@ -2385,6 +2386,14 @@ Some contents...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>T_TreeView2</name>
<message>
<location filename="qml/page/T_TreeView2.qml" line="10"/>
<source>TreeView2</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>T_Typography</name> <name>T_Typography</name>
<message> <message>

View File

@ -375,6 +375,7 @@
<message> <message>
<location filename="qml/global/ItemsOriginal.qml" line="318"/> <location filename="qml/global/ItemsOriginal.qml" line="318"/>
<source>TableView</source> <source>TableView</source>
<oldsource>TreeView2</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
@ -2468,6 +2469,14 @@ Some contents...</source>
<translation type="unfinished">%1</translation> <translation type="unfinished">%1</translation>
</message> </message>
</context> </context>
<context>
<name>T_TreeView2</name>
<message>
<location filename="qml/page/T_TreeView2.qml" line="10"/>
<source>TreeView2</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>T_Typography</name> <name>T_Typography</name>
<message> <message>

View File

@ -11,7 +11,7 @@ Popup {
parent: Overlay.overlay parent: Overlay.overlay
x: Math.round((d.parentWidth - width) / 2) x: Math.round((d.parentWidth - width) / 2)
y: Math.round((d.parentHeight - height) / 2) y: Math.round((d.parentHeight - height) / 2)
closePolicy: Popup.CloseOnEscape closePolicy: Popup.NoAutoClose
enter: Transition { enter: Transition {
NumberAnimation { NumberAnimation {
property: "opacity" property: "opacity"

View File

@ -65,7 +65,7 @@ Window {
Component.onCompleted: { Component.onCompleted: {
FluRouter.addWindow(window) FluRouter.addWindow(window)
useSystemAppBar = FluApp.useSystemAppBar useSystemAppBar = FluApp.useSystemAppBar
if(useSystemAppBar && autoCenter){ if(!useSystemAppBar && autoCenter){
moveWindowToDesktopCenter() moveWindowToDesktopCenter()
} }
fixWindowSize() fixWindowSize()

View File

@ -11,7 +11,7 @@ Popup {
parent: Overlay.overlay parent: Overlay.overlay
x: Math.round((d.parentWidth - width) / 2) x: Math.round((d.parentWidth - width) / 2)
y: Math.round((d.parentHeight - height) / 2) y: Math.round((d.parentHeight - height) / 2)
closePolicy: Popup.CloseOnEscape closePolicy: Popup.NoAutoClose
enter: Transition { enter: Transition {
NumberAnimation { NumberAnimation {
property: "opacity" property: "opacity"

View File

@ -64,7 +64,7 @@ Window {
Component.onCompleted: { Component.onCompleted: {
FluRouter.addWindow(window) FluRouter.addWindow(window)
useSystemAppBar = FluApp.useSystemAppBar useSystemAppBar = FluApp.useSystemAppBar
if(useSystemAppBar && autoCenter){ if(!useSystemAppBar && autoCenter){
moveWindowToDesktopCenter() moveWindowToDesktopCenter()
} }
fixWindowSize() fixWindowSize()