aboutsummaryrefslogtreecommitdiffstats
path: root/DemoApplication/controls/CNTabButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'DemoApplication/controls/CNTabButton.qml')
-rw-r--r--DemoApplication/controls/CNTabButton.qml10
1 files changed, 4 insertions, 6 deletions
diff --git a/DemoApplication/controls/CNTabButton.qml b/DemoApplication/controls/CNTabButton.qml
index 7557832..48e9205 100644
--- a/DemoApplication/controls/CNTabButton.qml
+++ b/DemoApplication/controls/CNTabButton.qml
@@ -3,12 +3,10 @@ import QtQuick.Controls 2.2
import CursorNavigation 1.0
TabButton {
+ id: root
CursorNavigation.acceptsCursor: true
- Rectangle {
- anchors.fill: parent
- color: "transparent"
- border.width: 2
- border.color: "red"
- visible: parent.CursorNavigation.hasCursor
+ CNCursorIndicator { cursorItem : parent }
+ CursorNavigation.onActivated: {
+ root.checked = true;
}
}