{
if (checked)
{
+ whiteSmall.anchors.horizontalCenter = undefined
+ whiteSmall.anchors.right = whiteInitialTime.horizontalCenter
+
+ blackSmall.anchors.horizontalCenter = undefined
+ blackSmall.anchors.left = whiteInitialTime.horizontalCenter
+
+
+ }
+
+ else
+ {
+
+ whiteSmall.anchors.right = undefined
+ whiteSmall.anchors.horizontalCenter = whiteInitialTime.horizontalCenter
+
+ blackSmall.anchors.left = undefined
+ blackSmall.anchors.horizontalCenter = blackInitialTime.horizontalCenter
+
}
}
id: whiteSmall
anchors.top: rowRow.bottom
+
source: ":/rc/pic/white_small.png"
+
+ Component.onCompleted:
+ {
+ if (equalTimesSwitch.checked)
+ anchors.right = whiteInitialTime.horizontalCenter
+ else
+ anchors.horizontalCenter = whiteInitialTime.horizontalCenter
+ }
}
Image
id: blackSmall
anchors.top: rowRow.bottom
- anchors.left: whiteSmall.right
+
source: ":/rc/pic/black_small.png"
+
+ Component.onCompleted:
+ {
+ if (equalTimesSwitch.checked)
+ anchors.left = whiteInitialTime.horizontalCenter
+ else
+ anchors.horizontalCenter = blackInitialTime.horizontalCenter
+ }
}
Text
text: "Start game"
anchors.top: whiteTurnsPerAddition.bottom
+ anchors.right: parent.right
onClicked:
{