[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-workspace] plasma/generic/applets/batterymonitor/contents/ui: Port to Formats from PlasmaCore f
From: Bhushan Shah <bhush94 () gmail ! com>
Date: 2014-01-24 12:07:42
Message-ID: E1W6fXy-00070N-NE () scm ! kde ! org
[Download RAW message or body]
Git commit 79e60015205fa7762a6a1258744077638721ee4c by Bhushan Shah.
Committed on 24/01/2014 at 17:21.
Pushed by bshah into branch 'master'.
Port to Formats from PlasmaCore for formatting duration
M +5 -1 plasma/generic/applets/batterymonitor/contents/ui/BatteryItem.qml
http://commits.kde.org/kde-workspace/79e60015205fa7762a6a1258744077638721ee4c
diff --git a/plasma/generic/applets/batterymonitor/contents/ui/BatteryItem.qml \
b/plasma/generic/applets/batterymonitor/contents/ui/BatteryItem.qml index \
d0ce486..23e98dc 100755
--- a/plasma/generic/applets/batterymonitor/contents/ui/BatteryItem.qml
+++ b/plasma/generic/applets/batterymonitor/contents/ui/BatteryItem.qml
@@ -56,6 +56,10 @@ Item {
}
}
+ PlasmaCore.Formats {
+ id: formats
+ }
+
PlasmaCore.FrameSvgItem {
id: padding
imagePath: "widgets/viewitem"
@@ -244,7 +248,7 @@ Item {
DetailsLabel {
id: remainingTimeLabel
// FIXME Uses overall remaining time, not bound to individual \
battery
- text: locale.prettyFormatDuration(dialogItem.remainingTime)
+ text: formats.formatSpelloutDuration (dialogItem.remainingTime)
visible: model["Is Power Supply"] && model["State"] != \
"NoCharge" && text != ""
//visible: showRemainingTime && model["Is Power Supply"] && \
model["State"] != "NoCharge" && text != "" && dialogItem.remainingTime > 0 }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic