support weird US temperature measurement
This commit is contained in:
parent
4a535edd59
commit
ce994a0d1e
1 changed files with 1 additions and 3 deletions
|
@ -177,9 +177,7 @@ Page {
|
|||
}
|
||||
MyDetailItem {
|
||||
label: qsTr("Temperature:")
|
||||
// TODO: use weird degrees for US users
|
||||
//value: useImperial ? celsiusToFahrenheit(battery.temperature) + " F" : Math.floor(battery.temperature / 10) + " °C"
|
||||
value: Math.floor(battery.temperature / 10) + " °C"
|
||||
value: (Qt.locale().measurementSystem == Locale.ImperialUSSystem) ? Math.floor((battery.temperature / 10) * 1.8 + 32) + " F" : Math.floor(battery.temperature / 10) + " °C"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue