Bug 322979

Summary: Layout is mirrored
Product: [Plasma] plasma4 Reporter: Andreas Kuhl <mail>
Component: widget-batteryAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.10.97   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot

Description Andreas Kuhl 2013-07-30 08:48:38 UTC
Although I use a western language (German), the layout is mirrored (see attached screenshot).

Reverting this commit fixed it for me:

-------------

commit 6b373d596eeedb47146e04d9db5bcaa2d2331400
Author: Kai Uwe Broulik <kde@privat.broulik.de>
Date:   Thu Jul 25 14:56:25 2013 +0200

    Enable LayoutMirroring
    Has some issues with the Plasma components (slider isn't mirrored, checkbox isn't either)
    but let's not forget about the parts of the world where they write from right to left ;)

diff --git a/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml b/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml
index cddd38e..34a0904 100644
--- a/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml
+++ b/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml
@@ -31,6 +31,9 @@ Item {

     property bool show_remaining_time: false

+    LayoutMirroring.enabled: true
+    LayoutMirroring.childrenInherit: true
+
     Component.onCompleted: {
         plasmoid.aspectRatioMode = IgnoreAspectRatio
         updateLogic(true);

-------------

Reproducible: Always
Comment 1 Andreas Kuhl 2013-07-30 08:53:07 UTC
Created attachment 81444 [details]
screenshot
Comment 2 Kai Uwe Broulik 2013-08-01 08:46:29 UTC
Git commit f7a33b7c0a69438c48fb752380bf7c09325f2765 by Kai Uwe Broulik.
Committed on 01/08/2013 at 08:45.
Pushed by broulik into branch 'KDE/4.11'.

Enable LayoutMirroring only on right-to-left languages.
Thought it would detect that automatically.

M  +1    -1    plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml

http://commits.kde.org/kde-workspace/f7a33b7c0a69438c48fb752380bf7c09325f2765