projects
/
qzeecontrol
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix cursor movement and display.
[qzeecontrol]
/
qml
/
QZeeControl
/
MainPage.qml
diff --git
a/qml/QZeeControl/MainPage.qml
b/qml/QZeeControl/MainPage.qml
index
ed1bb3d
..
b86c1b7
100644
(file)
--- a/
qml/QZeeControl/MainPage.qml
+++ b/
qml/QZeeControl/MainPage.qml
@@
-88,23
+88,18
@@
Page {
width: 256
height: 256
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
BluetoothDiscoveryModel{
id: btDiscovery