Skip to content

Commit

Permalink
include third gender as suggested in #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Danfro committed Nov 20, 2021
1 parent 32728a2 commit e789d3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qml/Setting.qml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Page {

Column {
Repeater {
model: [i18n.tr("Male"), i18n.tr("Female")]
model: [i18n.tr("Male"), i18n.tr("Female"), i18n.tr("Other")]
Button {
text: modelData
width: parent.width
Expand Down Expand Up @@ -288,6 +288,8 @@ Page {
function calStride() {
if (sexValue.text == i18n.tr("Male")) {
strideText.text = Math.round(heightText.text * 0.3937008 * 0.415 * 100) / 100
} else if (sexValue.text == i18n.tr("Other")) {
strideText.text = Math.round(heightText.text * 0.3937008 * 0.414 * 100) / 100
} else {
strideText.text = Math.round(heightText.text * 0.3937008 * 0.413 * 100) / 100
}
Expand Down

0 comments on commit e789d3a

Please sign in to comment.