From 38d877059d5ada513660937efe61aa33efffcbe0 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Tue, 22 Dec 2020 09:21:53 +0100 Subject: Allow text right to left in Configuration screen --- qml/Configuration.qml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'qml') diff --git a/qml/Configuration.qml b/qml/Configuration.qml index 71171e7..b36f28d 100644 --- a/qml/Configuration.qml +++ b/qml/Configuration.qml @@ -4,6 +4,8 @@ import QtQuick.Dialogs 1.1 // Configuration summary Page Rectangle { + LayoutMirroring.enabled: (direction == "LTR" ? false : true) + LayoutMirroring.childrenInherit: true Version {id:version} property var title: qsTr("Your configuration") width: view.width; height: view.height @@ -20,12 +22,17 @@ Rectangle { id: confList width: view.width height: view.height -150 + spacing: 3 model: ConfList - delegate: Label { - text: name - leftPadding: 50 - textFormat: Text.RichText - color: "white" + delegate: Row { + width: view.width + Label { + text: name + leftPadding: 50 + rightPadding: 50 + textFormat: Text.RichText + color: "white" + } } } MButton { -- cgit v1.2.1