Fix cursor movement and display.
authorRuediger Gad <rgad@fb2.fh-frankfurt.de>
Thu, 12 Apr 2012 09:00:59 +0000 (11:00 +0200)
committerRuediger Gad <rgad@fb2.fh-frankfurt.de>
Thu, 12 Apr 2012 09:00:59 +0000 (11:00 +0200)
qml/QZeeControl/MainPage.qml

index ed1bb3d..b86c1b7 100644 (file)
@@ -88,23 +88,18 @@ Page {
 
         width: 256
         height: 256
+    }
 
-        Rectangle{
-            id: cursor
-            width: 10
-            height: 10
-            color: "red"
-            z: 32
-
-            x: moveArea.x + (moveArea.width * 0.5) + btConn.x
-            y: moveArea.y + (moveArea.height * 0.5) + btConn.y
+    Rectangle{
+        id: cursorRectangle
+        width: 10
+        height: 10
+        color: "red"
 
-            onXChanged: console.log("New x: " + x)
-            onYChanged: console.log("New y: " + y)
-        }
+        x: moveArea.x + (moveArea.width * 0.5) + btConn.x - (cursorRectangle.width * 0.5)
+        y: moveArea.y + (moveArea.height * 0.5) + btConn.y - (cursorRectangle.height * 0.5)
     }
 
-
     BluetoothDiscoveryModel{
         id: btDiscovery