Compare commits
2 commits
cd0500c40b
...
bf617ba72c
Author | SHA1 | Date | |
---|---|---|---|
bf617ba72c | |||
5694d61c4b |
2 changed files with 14 additions and 1 deletions
|
@ -33,6 +33,19 @@ ColoredItemDelegate {
|
||||||
NumberAnimation { target: partDel; property: "scale"; from: 0.8; to: 1.0; duration: 400 }
|
NumberAnimation { target: partDel; property: "scale"; from: 0.8; to: 1.0; duration: 400 }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
visible: widgetData["route_quota"] !== null && parseInt(widgetData["route_quota"]) - 1 === thisIndex
|
||||||
|
|
||||||
|
anchors {
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
verticalCenter: parent.bottom
|
||||||
|
}
|
||||||
|
|
||||||
|
height: 3
|
||||||
|
color: Material.primaryTextColor
|
||||||
|
}
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
id: partDelCol
|
id: partDelCol
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ Row {
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font.bold: thisData["result_l"] !== undefined && thisData["result_r"] !== undefined && thisData[thisKey] === thisData["result"]
|
font.bold: thisData["result_l"] !== undefined && thisData["result_r"] !== undefined && thisData[thisKey] === thisData["result"]
|
||||||
|
|
||||||
text: control.thisData[thisKey] ?? ""
|
text: (control.thisData[thisKey] !== undefined && parseInt(control.thisData[thisKey]) > 0) ? control.thisData[thisKey] : ""
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue