From 5f148b950e5af10b59d31ae4011bbde117c55267 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Tue, 28 Nov 2017 17:48:44 +0200 Subject: [PATCH] support RTL to tooltips and previews --- containment/package/contents/ui/ConfigOverlay.qml | 3 +++ plasmoid/package/contents/ui/ToolTipInstance.qml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/containment/package/contents/ui/ConfigOverlay.qml b/containment/package/contents/ui/ConfigOverlay.qml index 284b22e25..81d7c9b70 100644 --- a/containment/package/contents/ui/ConfigOverlay.qml +++ b/containment/package/contents/ui/ConfigOverlay.qml @@ -459,6 +459,9 @@ MouseArea { width: handleRow.childrenRect.width + (2 * handleRow.spacing) height: Math.max(configureButton.height, label.contentHeight, closeButton.height) hoverEnabled: true + LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft + LayoutMirroring.childrenInherit: true + onEntered: hideTimer.stop(); onExited: hideTimer.restart(); Row { diff --git a/plasmoid/package/contents/ui/ToolTipInstance.qml b/plasmoid/package/contents/ui/ToolTipInstance.qml index 0f73ea55f..52362d76e 100644 --- a/plasmoid/package/contents/ui/ToolTipInstance.qml +++ b/plasmoid/package/contents/ui/ToolTipInstance.qml @@ -106,6 +106,7 @@ Column { text: appName opacity: flatIndex == 0 textFormat: Text.PlainText + horizontalAlignment: Text.AlignLeft } // window title PlasmaComponents.Label { @@ -116,6 +117,7 @@ Column { elide: Text.ElideRight text: generateTitle() textFormat: Text.PlainText + horizontalAlignment: Text.AlignLeft opacity: 0.75 } // subtext @@ -127,6 +129,7 @@ Column { elide: Text.ElideRight text: isWin ? generateSubText() : "" textFormat: Text.PlainText + horizontalAlignment: Text.AlignLeft opacity: 0.6 visible: text !== "" }