summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-09-26 15:26:16 +0200
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-09-26 15:41:00 +0200
commitf5a1cb81eb25211b9ea91cabffb3013e8e0bb98c (patch)
tree1c3e70c94d235e1a108ea67a94d9505ba5e671e7 /examples
parent5a6e5dc44ba4718662eb27123d8cb4273b369adf (diff)
QtBluetooth : pingpong example on OS X
Re-order some declarations to make the example work on OS X. Change-Id: I9e74ce7b19a3d749f6ba0f951c1ce013f42729f7 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/bluetooth/pingpong/assets/Board.qml24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/bluetooth/pingpong/assets/Board.qml b/examples/bluetooth/pingpong/assets/Board.qml
index bd78c18b..65e06e66 100644
--- a/examples/bluetooth/pingpong/assets/Board.qml
+++ b/examples/bluetooth/pingpong/assets/Board.qml
@@ -71,18 +71,6 @@ Rectangle {
}
}
- property double leftBlockUpdate: pingPong.leftBlockY
- onLeftBlockUpdateChanged: leftblock.y = pingPong.leftBlockY
-
- property double rightBlockUpdate: pingPong.rightBlockY
- onRightBlockUpdateChanged: rightblock.y = pingPong.rightBlockY
-
- property double leftBlockY: leftblock.y
- onLeftBlockYChanged: pingPong.updateLeftBlock(leftblock.y)
-
- property double rightBlockY: rightblock.y
- onRightBlockYChanged: pingPong.updateRightBlock(rightblock.y)
-
// Left pedal - server role
Rectangle {
id: leftblock
@@ -125,6 +113,18 @@ Rectangle {
}
}
+ property double leftBlockY: leftblock.y
+ onLeftBlockYChanged: pingPong.updateLeftBlock(leftblock.y)
+
+ property double leftBlockUpdate: pingPong.leftBlockY
+ onLeftBlockUpdateChanged: leftblock.y = pingPong.leftBlockY
+
+ property double rightBlockY: rightblock.y
+ onRightBlockYChanged: pingPong.updateRightBlock(rightblock.y)
+
+ property double rightBlockUpdate: pingPong.rightBlockY
+ onRightBlockUpdateChanged: rightblock.y = pingPong.rightBlockY
+
Rectangle {
id: splitter
color: "#363636"