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 May 4, 2022
1 parent 63bb525 commit 7fac637
Show file tree
Hide file tree
Showing 2 changed files with 8 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: Qt.application.layoutDirection === Qt.RightToLef
LayoutMirroring.childrenInherit: true

UserStatusSelector {
id: view
userStatusSelectorModel: model
Expand Down
3 changes: 3 additions & 0 deletions src/gui/tray/Window.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Window {

property int fileActivityDialogObjectId: -1

LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLef
LayoutMirroring.childrenInherit: true

readonly property int maxMenuHeight: Style.trayWindowHeight - Style.trayWindowHeaderHeight - 2 * Style.trayWindowBorderWidth

function openFileActivityDialog(objectName, objectId) {
Expand Down

0 comments on commit 7fac637

Please sign in to comment.