Created
September 30, 2016 18:41
-
-
Save iamutkarshtiwari/bf12ac134c16f75a3e865082236b1720 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // All blue balls placement | |
| Row { | |
| id: blueAnswerBallsPlacement | |
| x: rootWindow.width / 2000 | |
| y: rootWindow.height / 1.2 | |
| Repeater { | |
| model: 15 | |
| Image { | |
| source: "resources/bargame/blue_ball.png" | |
| height: rootWindow.height / 9 | |
| width: rootWindow.width / 15 | |
| visible: true | |
| } | |
| } | |
| } | |
| // OK BUTTON | |
| Rectangle { | |
| id: playLabel | |
| x: rootWindow.width / 1.2 | |
| y: rootWindow.height / 2 | |
| width: rootWindow.width / 10 | |
| height: rootWindow.height / 9 | |
| color: "red" | |
| border.color: "black" | |
| border.width: 5 | |
| radius: 10 | |
| Text { | |
| id: play | |
| text: "OK" | |
| font.bold: true | |
| color: "white" | |
| font.pixelSize: rootWindow.height / 17 | |
| anchors.centerIn: playLabel | |
| } | |
| MouseArea { | |
| anchors.fill: parent | |
| onClicked: { | |
| blueAnswerBallsPlacement.children[2].visible = false; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment