- Label
+ Text
{
id: title
+ anchors.horizontalCenter: parent.horizontalCenter
+
color:"white"
- font.pointSize: 64
+ font.pointSize: 26
text: newGameDialogPage.name
}
text: "Initial time"
color: "white"
font.pointSize: 26
- anchors.top: whiteSmall.bottom
+ anchors.verticalCenter: whiteInitialTime.verticalCenter
}
readOnly: true
anchors.top: whiteSmall.bottom
- anchors.left: initialTimeText.right
+ anchors.left: whiteTurnsPerAddition.left
property int hours
property int minutes
readOnly: true
anchors.top: whiteSmall.bottom
- anchors.left: whiteInitialTime.right
+ anchors.left: blackTurnsPerAddition.left
property int hours
property int minutes
text: hours + " h " + minutes + " min " + seconds + " s"
-
MouseArea
{
- anchors.fill: parent
- onClicked: {timePicker.timeType = "initial"; timePicker.player = "black"; timePicker.open()}
+ anchors.fill: parent
+ onClicked: {timePicker.timeType = "initial"; timePicker.player = "black"; timePicker.open()}
}
}
{
id: additionalTimeText
- anchors.top: whiteInitialTime.bottom
+ anchors.verticalCenter: whiteAdditionalTime.verticalCenter
text: "Additional time"
color: "white"
readOnly: true
anchors.top: whiteInitialTime.bottom
- anchors.left: additionalTimeText.right
-
+ anchors.topMargin: 15
+ // anchors.left: additionalTimeText.right
+ anchors.left: whiteTurnsPerAddition.left
property int hours
property int minutes
property int seconds
visible: newGameDialogPage.askAddition && !equalTimesSwitch.checked
readOnly: true
- anchors.top: whiteInitialTime.bottom
- anchors.left: whiteAdditionalTime.right
+ anchors.top: whiteAdditionalTime.top
+ anchors.left: blackTurnsPerAddition.left
property int hours
property int minutes
color: "white"
font.pointSize: 26
visible: newGameDialogPage.askTurnsPerAddition
- anchors.top: whiteAdditionalTime.bottom
+ anchors.verticalCenter: whiteTurnsPerAddition.verticalCenter
}
TextField
readOnly: true;
anchors.top: whiteAdditionalTime.bottom
+ anchors.topMargin: 15
anchors.left: turnsPerAdditionText.right
+ anchors.leftMargin: 25
text: "1"
visible: newGameDialogPage.askTurnsPerAddition && !equalTimesSwitch.checked
readOnly: true;
- anchors.top: whiteAdditionalTime.bottom
+ anchors.top: whiteTurnsPerAddition.top
anchors.left: whiteTurnsPerAddition.right
+ anchors.leftMargin: 25
text: "1"
text: "Start game"
anchors.top: whiteTurnsPerAddition.bottom
+ anchors.topMargin: 15
anchors.right: parent.right
onClicked: