From d33ddf1b9977eb00fcc2c4e8d59b8d4d7726c418 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 23 Aug 2016 13:29:43 +0200 Subject: [PATCH] [System Tray] Take into account right-to-left layout when placing tooltips Make sure the tooltips always fly outside the dialog rather than ontop of its contents. Differential Revision: https://phabricator.kde.org/D2536 --- .../package/contents/ui/items/AbstractItem.qml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/applets/systemtray/package/contents/ui/items/AbstractItem.qml b/applets/systemtray/package/contents/ui/items/AbstractItem.qml index 65b3d3e90..429661418 100644 --- a/applets/systemtray/package/contents/ui/items/AbstractItem.qml +++ b/applets/systemtray/package/contents/ui/items/AbstractItem.qml @@ -53,11 +53,17 @@ PlasmaCore.ToolTipArea { icon: */ - location: if (abstractItem.parent && abstractItem.parent.objectName == "hiddenTasksColumn" && plasmoid.location != PlasmaCore.Types.LeftEdge) { + location: { + if (abstractItem.parent && abstractItem.parent.objectName === "hiddenTasksColumn") { + if (LayoutMirroring.enabled && plasmoid.location !== PlasmaCore.Types.RightEdge) { + return PlasmaCore.Types.LeftEdge; + } else if (plasmoid.location !== PlasmaCore.Types.LeftEdge) { return PlasmaCore.Types.RightEdge; - } else { - return plasmoid.location; - } + } + } + + return plasmoid.location; + } //BEGIN CONNECTIONS