aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-29 19:39:27 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-30 11:50:32 +0000
commitbb06d8913c4e781a37db100e2619a236a93b38a9 (patch)
tree1bd5cebf9531d02123692f3b2a886f9c55b7073d /src
parent8ba12ed7f25d8cfb7619b6eb0a26fe4ae3e823b1 (diff)
Material CheckBox: fix disabled state
Change-Id: Ia0b95ed25cad55477d90038db39ac22a6a3932ed Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/imports/controls/material/CheckBox.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/material/CheckBox.qml b/src/imports/controls/material/CheckBox.qml
index e7fbadaa..1c3e254b 100644
--- a/src/imports/controls/material/CheckBox.qml
+++ b/src/imports/controls/material/CheckBox.qml
@@ -64,7 +64,7 @@ T.CheckBox {
implicitWidth: 20
implicitHeight: 20
color: "transparent"
- border.color: control.checked ? control.Material.accentColor : control.Material.secondaryTextColor
+ border.color: control.checked && control.enabled ? control.Material.accentColor : control.Material.secondaryTextColor
border.width: control.checked ? width / 2 : 2
radius: 2