diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2018-02-12 12:25:10 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2018-02-12 13:28:54 +0000 |
commit | e318a1690e30986026e8428442003dc9e1640371 (patch) | |
tree | 1192017f7fae7c35b5d37dab9e281d7284d7f909 | |
parent | 4ff95c1ffa016f4d4844b5b790e83da1e4999b7d (diff) |
QQuickCheckDelegate: don't consider partially checked as checked
Same as fbcdccc for QQuickCheckBox. It was noticed missing from the
delegate counterpart while updating the "New Features in Qt 5.11"
wiki page.
[ChangeLog][Important Behavior Changes] CheckDelegate no longer considers
the partially checked state as a checked state. This fixes check state
cycling for a non-tri-state check delegate so that it goes from partially
checked to fully checked state.
Task-number: QTBUG-56295
Change-Id: I1de29178c265e027fdb91ba0b4604b110ddba06a
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/quicktemplates2/qquickcheckdelegate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickcheckdelegate.cpp b/src/quicktemplates2/qquickcheckdelegate.cpp index 9b0a8064..b53877df 100644 --- a/src/quicktemplates2/qquickcheckdelegate.cpp +++ b/src/quicktemplates2/qquickcheckdelegate.cpp @@ -167,7 +167,7 @@ void QQuickCheckDelegate::setCheckState(Qt::CheckState state) return; bool wasChecked = isChecked(); - d->checked = state != Qt::Unchecked; + d->checked = state == Qt::Checked; d->checkState = state; emit checkStateChanged(); if (d->checked != wasChecked) |