From e4e9a4de8e8028c5cb4230a918aad0cbc0fabeeb Mon Sep 17 00:00:00 2001 From: dorian Date: Mon, 9 Sep 2019 09:52:02 +0200 Subject: [PATCH] fixed minor updating bug in boulder result rects --- resources/qml/Widgets/ResultWidget.qml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/resources/qml/Widgets/ResultWidget.qml b/resources/qml/Widgets/ResultWidget.qml index 2d4588b..a9dc924 100644 --- a/resources/qml/Widgets/ResultWidget.qml +++ b/resources/qml/Widgets/ResultWidget.qml @@ -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] } }