Merge lp:~seb128/ubuntu-system-settings/battery-full-charge-info into lp:ubuntu-system-settings
Status: | Merged |
---|---|
Approved by: | Iain Lane |
Approved revision: | 264 |
Merged at revision: | 264 |
Proposed branch: | lp:~seb128/ubuntu-system-settings/battery-full-charge-info |
Merge into: | lp:ubuntu-system-settings |
Diff against target: |
407 lines (+163/-40) 4 files modified
plugins/battery/PageComponent.qml (+33/-7) plugins/battery/battery.cpp (+56/-12) plugins/battery/battery.h (+14/-1) po/ubuntu-system-settings.pot (+60/-20) |
To merge this branch: | bzr merge lp:~seb128/ubuntu-system-settings/battery-full-charge-info |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Iain Lane | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Ken VanDine | Pending | ||
Review via email: mp+180146@code.launchpad.net |
Commit message
battery: display the last full charge
Description of the change
battery: display the last full charge
Some comments for the reviewer(s):
- in timeDeltaString(): I'm not sure how to/if we can do plurial in i18n.tr() (we have a 2 arguments format already which is used to specify a domain)
- the isCharging property is needed because chargeState is not a property (it takes a battery number as parameter) so it doesn't get dynamic update
- changing the line to be a bit thicker, that works better on the device
- I'm keeping the QDebug include while working on the panel at least, it's annoying to comment it/put it back for every commit
- getLastFullCharge() iterates on an higher timerange than getHistory
PASSED: Continuous integration, rev:259 jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- ci/217/ jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- saucy-amd64- ci/217
http://
Executed test runs:
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ ubuntu- system- settings- ci/217/ rebuild
http://