[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kde-workspace] plasma/generic/applets/batterymonitor/contents/ui: Small cleanup, hide label
From:       Sebastian_Kügler <sebas () kde ! org>
Date:       2013-10-23 23:31:10
Message-ID: E1VZ7tO-0002VG-0h () scm ! kde ! org
[Download RAW message or body]

Git commit be03bfc4837cef8986ea338a253e839bb552c2cb by Sebastian Kügler.
Committed on 23/10/2013 at 23:31.
Pushed by sebas into branch 'master'.

Small cleanup, hide label

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


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

diff --git a/plasma/generic/applets/batterymonitor/contents/ui/CompactRepresentation.qml \
b/plasma/generic/applets/batterymonitor/contents/ui/CompactRepresentation.qml index \
                fe8cc06..8e2e5fe 100755
--- a/plasma/generic/applets/batterymonitor/contents/ui/CompactRepresentation.qml
+++ b/plasma/generic/applets/batterymonitor/contents/ui/CompactRepresentation.qml
@@ -49,9 +49,9 @@ ListView {
         //return (plasmoid.formFactor == PlasmaCore.Types.Vertical || \
plasmoid.formFactor == PlasmaCore.Types.Horizontal);  }
 
-    Component.onCompleted: {
-        print("JOOOOOO" + batteries);
-    }
+//     Component.onCompleted: {
+//         print("JOOOOOO" + batteries);
+//     }
 
     delegate: Item {
         id: batteryContainer
@@ -91,11 +91,11 @@ ListView {
             Components.Label {
                 id: batteryLabel
                 width: parent.width
-                height: paintedHeight
+                height: visible ? paintedHeight : 0
                 horizontalAlignment: Text.AlignHCenter
                 text: percent + "%"// FIXME i18nc("battery percentage below battery \
                icon", "%1%", percent)
-                font.pixelSize: Math.max(batteryContainer.iconSize/8, 10)
-                visible: true//!isConstrained()
+                font.pixelSize: Math.max(batteryContainer.iconSize/8, \
theme.smallestReadableFont.pixelSize) +                visible: \
false//!isConstrained()  }
         }
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic