anchors.top: whiteSmall.bottom
anchors.left: whiteTurnsPerAddition.left
- property int hours
- property int minutes
- property int seconds
+ property int hours: 0
+ property int minutes: 30
+ property int seconds: 0
text: {hours + " h " + minutes + " min " + seconds + " s"}
anchors.top: whiteSmall.bottom
anchors.left: blackTurnsPerAddition.left
- property int hours
- property int minutes
- property int seconds
+ property int hours: 0
+ property int minutes: 30
+ property int seconds: 0
text: hours + " h " + minutes + " min " + seconds + " s"
anchors.topMargin: 15
// anchors.left: additionalTimeText.right
anchors.left: whiteTurnsPerAddition.left
- property int hours
- property int minutes
- property int seconds
+ property int hours: 0
+ property int minutes: 0
+ property int seconds: 30
text: hours + " h " + minutes + " min " + seconds + " s"
anchors.top: whiteAdditionalTime.top
anchors.left: blackTurnsPerAddition.left
- property int hours
- property int minutes
- property int seconds
+ property int hours: 0
+ property int minutes: 0
+ property int seconds: 30
text: hours + " h " + minutes + " min " + seconds + " s"
onClicked:
{
turnsDialog.player = "white"
- turnsColumn.selectedIndex = parent.text-1
turnsDialog.open()
+ turnsColumn.selectedIndex = parent.text-1 //Needs to be after open(), or gets overridden by the previous chosen value
+
+
}
}
onClicked:
{
turnsDialog.player = "black"
- turnsColumn.selectedIndex = parent.text-1
turnsDialog.open()
+ turnsColumn.selectedIndex = parent.text-1 //Needs to be after open(), or gets overridden by the previous chosen value
}
}
TumblerColumn
{
id: turnsColumn
- selectedIndex: 1
items: turnsList