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] } }