+
+
+ TextField
+ {
+ id: blackInitialTime
+ enabled: !equalTimesSwitch.checked
+
+ readOnly: true
+
+
+
+ MouseArea
+ {
+ anchors.fill: parent
+ onClicked: {timePicker.timeType = "initial"; timePicker.player = "black"; timePicker.open()}
+ }
+ }
+
+
+
+ Text
+ {
+ id: additionalTimeText
+ text: "Additional time"
+ color: "white"
+ font.pointSize: 26
+ visible: newGameDialog.askAddition
+// anchors.top: initialTimeText.bottom
+// anchors.horizontalCenter: parent.horizontalCenter
+ }
+
+
+
+ TextField
+ {
+ id: whiteAdditionalTime
+ visible: newGameDialog.askAddition
+ readOnly: true
+
+ onTextChanged: {if (equalTimesSwitch.checked) blackAdditionalTime.text = text}
+
+ MouseArea
+ {
+ anchors.fill: parent
+ onClicked: {timePicker.timeType = "additional"; timePicker.player = "white"; timePicker.open()}
+ }
+ }
+
+ TextField
+ {
+ id: blackAdditionalTime
+ visible: newGameDialog.askAddition
+ enabled: !equalTimesSwitch.checked
+ readOnly: true
+
+ MouseArea
+ {
+ anchors.fill: parent
+ onClicked: {timePicker.timeType = "additional"; timePicker.player = "black"; timePicker.open()}
+ }
+ }
+
+
+
+ Text
+ {
+ text: "Turns per addition"
+ color: "white"
+ font.pointSize: 26
+ visible: newGameDialog.askAddition
+// anchors.top: additionalTimeText.bottom
+// anchors.horizontalCenter: parent.horizontalCenter
+ }
+ TextField
+ {
+ id: whiteTurnsPerAddition
+ visible: newGameDialog.askAddition
+
+ inputMask: "D00"
+ text: "1"
+
+ onTextChanged: {if (equalTimesSwitch.checked) blackTurnsPerAddition.text = text}
+ }
+
+ TextField
+ {
+ id: blackTurnsPerAddition
+ visible: newGameDialog.askAddition
+ enabled: !equalTimesSwitch.checked
+ inputMask: "D00"
+ text: "1"
+ }
+
+
+
+ }
+