aboutsummaryrefslogtreecommitdiffstats
path: root/DemoApplication/controls/CNButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'DemoApplication/controls/CNButton.qml')
-rw-r--r--DemoApplication/controls/CNButton.qml30
1 files changed, 1 insertions, 29 deletions
diff --git a/DemoApplication/controls/CNButton.qml b/DemoApplication/controls/CNButton.qml
index fb8e1b8..6530fc4 100644
--- a/DemoApplication/controls/CNButton.qml
+++ b/DemoApplication/controls/CNButton.qml
@@ -8,28 +8,6 @@ Button {
implicitHeight: 40
CursorNavigation.acceptsCursor: true
- //property bool hasCursor: CursorNavigation.hasCursor
-
- Rotation {
- id: rot
- origin.x: root.width/2
- origin.y: root.height/2
- }
-
- transform: rot
-
- CursorNavigation.onHasCursorChanged: {
- if (!hasCursor)
- rot.angle = 0
- }
-
- CursorNavigation.onMagnitudeChanged: {
- rot.angle = magnitude*45.0;
- var a = angle * Math.PI/180.0
- rot.axis.x = -Math.sin(a)
- rot.axis.y = Math.cos(a)
- rot.axis.z = 0
- }
background: Rectangle {
anchors.fill: parent
@@ -48,12 +26,6 @@ Button {
text: root.text
}
- Rectangle {
- border.width: 2
- border.color: "red"
- anchors.fill: parent
- visible: root.CursorNavigation.hasCursor
- color: "transparent"
- }
+ CNCursorIndicator { cursorItem : root; radius: 40}
}
}