From 48b8233d6e344c0d8895b984093b9c3e4af8a86e Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sat, 19 Jan 2019 22:47:14 +0100 Subject: Add variable to select writing direction --- qml/mw-ui.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index bd327f7..9ebc589 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -13,6 +13,11 @@ Rectangle { width: 1000; height: 700 property alias view: view + //: For Right to Left language, set this string to RTL + property var direction: qsTr("LTR") + LayoutMirroring.enabled: (direction == "LTR" ? false : true) + LayoutMirroring.childrenInherit: true + Settings { property alias width: box.width property alias height: box.height -- cgit v1.2.1