aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/CheckIndicator.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/material/CheckIndicator.qml')
-rw-r--r--src/imports/controls/material/CheckIndicator.qml14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/imports/controls/material/CheckIndicator.qml b/src/imports/controls/material/CheckIndicator.qml
index 224d7dbc..3e765593 100644
--- a/src/imports/controls/material/CheckIndicator.qml
+++ b/src/imports/controls/material/CheckIndicator.qml
@@ -47,7 +47,7 @@ Rectangle {
border.width: control.checked ? width / 2 : 2
radius: 2
- property alias control: ripple.control
+ property Item control
Behavior on border.width {
NumberAnimation {
@@ -64,12 +64,12 @@ Rectangle {
}
Ripple {
- id: ripple
- width: parent.width
- height: width
- control: control
- colored: control.checked
- opacity: control.down || control.visualFocus ? 1 : 0
+ x: (parent.width - width) / 2
+ y: (parent.height - height) / 2
+ width: 28; height: 28
+ pressed: control.pressed
+ active: control.down || control.visualFocus || control.hovered
+ color: control.checked ? control.Material.checkBoxCheckedRippleColor : control.Material.checkBoxUncheckedRippleColor
}
// TODO: This needs to be transparent