From 396f18e0f2ee2e7b600673ec0f2a826b9b106c75 Mon Sep 17 00:00:00 2001 From: Ruediger Gad Date: Thu, 12 Apr 2012 11:00:59 +0200 Subject: [PATCH] Fix cursor movement and display. --- qml/QZeeControl/MainPage.qml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/qml/QZeeControl/MainPage.qml b/qml/QZeeControl/MainPage.qml index ed1bb3d..b86c1b7 100644 --- a/qml/QZeeControl/MainPage.qml +++ b/qml/QZeeControl/MainPage.qml @@ -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 -- 1.7.9.5