feat:根据qApp的布局方向设置是否镜像布局

This commit is contained in:
hanpinlong 2024-07-23 10:42:25 +08:00 committed by youdiansaodongxi
parent d4dea45fb6
commit 567e6d2e13
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ Item {
property int animationDuration: menuSetting.get("animationDuration") property int animationDuration: menuSetting.get("animationDuration")
property var normalGeometry: mainWindow.normalRect property var normalGeometry: mainWindow.normalRect
property string currentSearchText: "" property string currentSearchText: ""
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
LayoutMirroring.childrenInherit: true;
Component.onCompleted: { Component.onCompleted: {
mainWindow.fullScreenChanged.connect(enterFullScreen); mainWindow.fullScreenChanged.connect(enterFullScreen);