diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-29 19:37:45 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-30 15:26:16 +0000 |
commit | e8f1c609bf612c39bd45778bd22b693c39e3d059 (patch) | |
tree | f488c75f3a5c32e29927c3b997c60a3981f481e3 /src/imports/controls/CheckBox.qml | |
parent | 6bfcaea4c2d7d2efee9aab3bf3e20bf63f65abf3 (diff) |
CheckBox: support partially checked state for Default & Universal
Change-Id: Id2614c2f441718ef21445ef42c7d64ff64e072ce
Task-number: QTBUG-49961
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/CheckBox.qml')
-rw-r--r-- | src/imports/controls/CheckBox.qml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/imports/controls/CheckBox.qml b/src/imports/controls/CheckBox.qml index 20d8ef1c..4b7af3b1 100644 --- a/src/imports/controls/CheckBox.qml +++ b/src/imports/controls/CheckBox.qml @@ -67,7 +67,16 @@ T.CheckBox { x: (parent.width - width) / 2 y: (parent.height - height) / 2 source: "qrc:/qt-project.org/imports/Qt/labs/controls/images/check.png" - visible: control.checked + visible: control.checkState === Qt.Checked + } + + Rectangle { + x: (parent.width - width) / 2 + y: (parent.height - height) / 2 + width: 16 + height: 3 + color: "#353637" + visible: control.checkState === Qt.PartiallyChecked } } //! [indicator] |