fixed minor updating bug in boulder result rects

This commit is contained in:
dorian 2019-09-09 09:52:02 +02:00
parent adbc540c0c
commit e4e9a4de8e

View file

@ -311,6 +311,9 @@ DataListView {
resultList.unshift(0)
}
}
else {
resultList = [-1,-1]
}
return resultList
}
@ -452,7 +455,7 @@ DataListView {
height: parent.height / 2
width: parent.width / 2
visible: text !== "0"
visible: parseInt(text) > 0
fontSizeMode: Text.Fit
font.pixelSize: height
@ -461,7 +464,7 @@ DataListView {
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
text: boulderResCv.resultData[1] === undefined ? "0":boulderResCv.resultData[1]
text: boulderResCv.resultData[1]
}
Label {
@ -476,7 +479,7 @@ DataListView {
height: parent.height / 2
width: parent.width / 2
visible: text !== "0"
visible: parseInt(text) > 0
fontSizeMode: Text.Fit
font.pixelSize: height
@ -485,7 +488,7 @@ DataListView {
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
text: boulderResCv.resultData[0] === undefined ? "0":boulderResCv.resultData[0]
text: boulderResCv.resultData[0]
}
}