Feat: add start numbers to speed flowchart (fixes #30)
Some checks reported errors
continuous-integration/drone/push Build is running
continuous-integration/drone/pr Build was killed

This commit is contained in:
Dorian Zedler 2022-08-11 08:47:22 +02:00
parent 766da23e26
commit 21c479cd55
Signed by: dorian
GPG key ID: 989DE36109AFA354
3 changed files with 48 additions and 9 deletions

View file

@ -222,7 +222,7 @@ Item {
ListView { ListView {
id: roundListView id: roundListView
property int columnWidth: height * 0.3 property int columnWidth: height * 0.4
property int columnHeight: height property int columnHeight: height
anchors { anchors {
@ -386,8 +386,6 @@ Item {
height: roundItem.tileSize height: roundItem.tileSize
//scale: 0.9 //scale: 0.9
color: Material.dialogColor color: Material.dialogColor
border.color: "lightgrey"
border.width: 0
radius: height * 0.2 radius: height * 0.2
Column { Column {
@ -409,13 +407,15 @@ Item {
Label { Label {
Layout.preferredHeight: parent.height Layout.preferredHeight: parent.height
Layout.preferredWidth: parent.width * 0.15 Layout.preferredWidth: parent.width * 0.08
height: parent.height
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
font.pixelSize: height * 0.7 font.pixelSize: height * 0.4
fontSizeMode: Text.Fit font.bold: true
minimumPixelSize: 1 opacity: 0.7
text: matchItm.thisMatchData[index] !== undefined ? text: matchItm.thisMatchData[index] !== undefined ?
( (
@ -428,7 +428,8 @@ Item {
Label { Label {
Layout.preferredHeight: parent.height Layout.preferredHeight: parent.height
Layout.fillWidth: true Layout.maximumWidth: parent.width * 0.6
height: parent.height height: parent.height
@ -443,13 +444,50 @@ Item {
text: matchItm.thisMatchData[index] !== undefined ? matchItm.thisMatchData[index]['firstname'] + " " + matchItm.thisMatchData[index]['lastname'] :"-" text: matchItm.thisMatchData[index] !== undefined ? matchItm.thisMatchData[index]['firstname'] + " " + matchItm.thisMatchData[index]['lastname'] :"-"
} }
Rectangle {
Layout.preferredHeight: parent.height * 0.8
Layout.preferredWidth: parent.width * 0.13
radius: height / 2
border.width: 1
border.color: Material.frameColor
color: "transparent"
Label {
anchors.fill: parent
padding: parent.parent.height * 0.1
leftPadding: padding * 2
rightPadding: leftPadding
font.pixelSize: parent.height * 0.5
font.bold: true
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
text: matchItm.thisMatchData[index] !== undefined ? matchItm.thisMatchData[index]["start_number"]:""
}
}
Item {
Layout.fillHeight: true
Layout.fillWidth: true
}
Label { Label {
Layout.preferredHeight: parent.height Layout.preferredHeight: parent.height
Layout.preferredWidth: parent.width * 0.15
height: parent.height height: parent.height
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignRight
font.pixelSize: height * 0.5 font.pixelSize: height * 0.5
font.bold: matchItm.winnerIndex === index
color: matchItm.winnerIndex === index ? Material.color(Material.Green):Material.primaryTextColor
text: matchItm.thisMatchData[index] !== undefined && matchItm.thisMatchData[index]['result'+matchItm.thisRound] !== undefined ? text: matchItm.thisMatchData[index] !== undefined && matchItm.thisMatchData[index]['result'+matchItm.thisRound] !== undefined ?
( parseFloat(matchItm.thisMatchData[index]['result'+matchItm.thisRound]) ? ( parseFloat(matchItm.thisMatchData[index]['result'+matchItm.thisRound]) ?

View file

@ -9,7 +9,7 @@ Rectangle {
// always unlock in debug mode // always unlock in debug mode
//property bool unlocked: QT_DEBUG || appSettings.read("speedBackendPurchase") === "1" //property bool unlocked: QT_DEBUG || appSettings.read("speedBackendPurchase") === "1"
property bool unlocked: appSettings.read("speedBackendPurchase") === "1" property bool unlocked: true //appSettings.read("speedBackendPurchase") === "1"
Component.onCompleted: { Component.onCompleted: {
console.warn("unlocked:", appSettings.read("speedBackendPurchase")) console.warn("unlocked:", appSettings.read("speedBackendPurchase"))

View file

@ -199,6 +199,7 @@ Window {
//openWidget({person: 6623}) //openWidget({person: 6623})
//console.log(JSON.stringify(serverConn.getParamsFromUrl(""))) //console.log(JSON.stringify(serverConn.getParamsFromUrl("")))
//openWidgetFromUrl("https://l.bluerock.dev/?comp=11501&cat=GER_M") //openWidgetFromUrl("https://l.bluerock.dev/?comp=11501&cat=GER_M")
openWidgetFromUrl("https://www.digitalrock.de/egroupware/ranking/json.php?cat=12&comp=12171&type=")
} }
FontLoader { FontLoader {