The white and black crowns are now on top of their respective columns
when equal times is off and both on white (the only visible) column when
equal times is on.
The start game button is now aligned to right.
+ 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
id: whiteSmall
anchors.top: rowRow.bottom
source: ":/rc/pic/white_small.png"
source: ":/rc/pic/white_small.png"
+
+ Component.onCompleted:
+ {
+ if (equalTimesSwitch.checked)
+ anchors.right = whiteInitialTime.horizontalCenter
+ else
+ anchors.horizontalCenter = whiteInitialTime.horizontalCenter
+ }
id: blackSmall
anchors.top: rowRow.bottom
id: blackSmall
anchors.top: rowRow.bottom
- anchors.left: whiteSmall.right
source: ":/rc/pic/black_small.png"
source: ":/rc/pic/black_small.png"
+
+ Component.onCompleted:
+ {
+ if (equalTimesSwitch.checked)
+ anchors.left = whiteInitialTime.horizontalCenter
+ else
+ anchors.horizontalCenter = blackInitialTime.horizontalCenter
+ }
text: "Start game"
anchors.top: whiteTurnsPerAddition.bottom
text: "Start game"
anchors.top: whiteTurnsPerAddition.bottom
+ anchors.right: parent.right