Skip to content

Commit

Permalink
enable reversed locale layout in QML
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Feb 2, 2022
1 parent c21f02b commit f53b347
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/UserStatusSelectorDialog.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import QtQml 2.15
import QtQuick 2.15
import QtQuick.Window 2.15

import com.nextcloud.desktopclient 1.0 as NC
Expand All @@ -20,6 +22,9 @@ Window {

flags: Qt.Dialog

LayoutMirroring.enabled: true
LayoutMirroring.childrenInherit: true

UserStatusSelector {
id: view
userStatusSelectorModel: model
Expand Down
2 changes: 2 additions & 0 deletions src/gui/tray/Window.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Window {
color: "transparent"
flags: Systray.useNormalWindow ? Qt.Window : Qt.Dialog | Qt.FramelessWindowHint

LayoutMirroring.enabled: true
LayoutMirroring.childrenInherit: true

property var fileActivityDialogAbsolutePath: ""
readonly property int maxMenuHeight: Style.trayWindowHeight - Style.trayWindowHeaderHeight - 2 * Style.trayWindowBorderWidth
Expand Down

0 comments on commit f53b347

Please sign in to comment.