summaryrefslogtreecommitdiffstats
path: root/examples/blob/blob.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blob/blob.qml')
-rw-r--r--examples/blob/blob.qml41
1 files changed, 21 insertions, 20 deletions
diff --git a/examples/blob/blob.qml b/examples/blob/blob.qml
index 53752c1..b1e3ffd 100644
--- a/examples/blob/blob.qml
+++ b/examples/blob/blob.qml
@@ -6,7 +6,7 @@ Canvas {
width:500
height:500
- property color color: "#ffee00"
+ property color color: "#ffeeaa"
Timer {
id: heartbeat;
@@ -30,26 +30,27 @@ Canvas {
onPositionChanged: { Blob.mouseMoved(mouseX, mouseY) }
}
- Row {
- spacing:10
- anchors.top:parent.top
+ Button {
+ anchors.bottom:parent.bottom
anchors.left:parent.left
- anchors.margins:10
- Button {
- id:join
- text: "Split"
- onClicked: Blob.blobColl.split();
- }
- Button {
- anchors.margins:16
- text: "Join"
- onClicked: Blob.blobColl.join();
- }
- Button {
- anchors.margins:16
- text: "Gravity"
- onClicked: Blob.toggleGravity();
- }
+ anchors.margins:16
+ id:join
+ text: "Split"
+ onClicked: Blob.blobColl.split();
+ }
+ Button {
+ anchors.bottom:parent.bottom
+ anchors.horizontalCenter:parent.horizontalCenter
+ anchors.margins:16
+ text: "Join"
+ onClicked: Blob.blobColl.join();
+ }
+ Button {
+ anchors.bottom:parent.bottom
+ anchors.right:parent.right
+ anchors.margins:16
+ text: "Gravity"
+ onClicked: Blob.toggleGravity();
}
Component.onCompleted: Blob.init()