From 0b1499cd90d1c7230f304d0272926689b0524285 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Tue, 28 Nov 2017 20:22:25 +0200 Subject: [PATCH] RTL support for config win Timers --- shell/package/contents/configuration/LatteTextField.qml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/shell/package/contents/configuration/LatteTextField.qml b/shell/package/contents/configuration/LatteTextField.qml index cb15b5ce2..ec55c3db1 100644 --- a/shell/package/contents/configuration/LatteTextField.qml +++ b/shell/package/contents/configuration/LatteTextField.qml @@ -40,6 +40,7 @@ PlasmaComponents.TextField { font.italic: true inputMethodHints: Qt.ImhDigitsOnly placeholderText: i18n("none") + horizontalAlignment: Text.AlignLeft width: internalContent.width + theme.mSize(theme.defaultFont).width * 3.5 @@ -61,12 +62,14 @@ PlasmaComponents.TextField { RowLayout { id: internalContent - spacing: 0 anchors.top: parent.top anchors.bottom: parent.bottom anchors.right: parent.right + LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft + LayoutMirroring.childrenInherit: true + PlasmaComponents.Label { Layout.alignment: Qt.AlignVCenter color: textField.textColor @@ -80,7 +83,9 @@ PlasmaComponents.TextField { Layout.fillHeight: true Layout.preferredWidth: height Layout.maximumWidth: height - Layout.leftMargin: 0.7 * theme.mSize(theme.defaultFont).width + Layout.leftMargin: Qt.application.layoutDirection === Qt.RightToLeft ? 0 : 0.7 * theme.mSize(theme.defaultFont).width + Layout.rightMargin: Qt.application.layoutDirection === Qt.RightToLeft ? 0.7 * theme.mSize(theme.defaultFont).width : 0 + text: "-" onClicked: decrement() }