From c590cb76a0f84378fd4e973e0dd036a9e10632f2 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Fri, 6 Feb 2026 14:14:31 +0100 Subject: [PATCH] Use Application.layoutDirection --- src/roominfo/RoomDrawer.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roominfo/RoomDrawer.qml b/src/roominfo/RoomDrawer.qml index 3c178e412..5130244d2 100644 --- a/src/roominfo/RoomDrawer.qml +++ b/src/roominfo/RoomDrawer.qml @@ -59,7 +59,7 @@ Kirigami.OverlayDrawer { if (_lastX === -1) { return; } - if (Qt.application.layoutDirection === Qt.RightToLeft) { + if (Application.layoutDirection === Qt.RightToLeft) { root.actualWidth = Math.min(root.maxWidth, Math.max(root.minWidth, root.roomDrawerWidth - _lastX + mapToGlobal(mouseX, mouseY).x)); } else { root.actualWidth = Math.min(root.maxWidth, Math.max(root.minWidth, root.roomDrawerWidth + _lastX - mapToGlobal(mouseX, mouseY).x)); @@ -68,7 +68,7 @@ Kirigami.OverlayDrawer { } enabled: true - edge: Qt.application.layoutDirection == Qt.RightToLeft ? Qt.LeftEdge : Qt.RightEdge + edge: Application.layoutDirection == Qt.RightToLeft ? Qt.LeftEdge : Qt.RightEdge // If modal has been changed and the drawer is closed automatically then dim on popup open will have been switched off in main.qml so switch it back on after the animation completes. // This is to avoid dim being active for a split second when the drawer is switched to modal which looks terrible.