aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-02-12 12:14:47 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2018-02-12 13:28:50 +0000
commit4ff95c1ffa016f4d4844b5b790e83da1e4999b7d (patch)
tree243d2c87eb4946f0a0dac12150414080112ff149 /src
parent675c150a28ae9f1ca5f4960caeed522da534f6fc (diff)
QQuickCheckDelegate: don't force tristate when partially checked
Same as 339ddd4 for QQuickCheckBox. It was noticed missing from the delegate counterpart while updating the "New Features in Qt 5.11" wiki page. This allows a parent node to present partially checked state of child nodes without being interactively a tri-state box. [ChangeLog][Important Behavior Changes] CheckDelegate no longer forces tristate to true when setting checkState to Qt.PartiallyChecked. This allows a delegate to present a partially checked state without being interactively a tri-state check delegate. Task-number: QTBUG-56295 Change-Id: If4aaa499b53b60de0a170d3d0adb662474eddaad Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quicktemplates2/qquickcheckdelegate.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/quicktemplates2/qquickcheckdelegate.cpp b/src/quicktemplates2/qquickcheckdelegate.cpp
index 9fd8c183..9b0a8064 100644
--- a/src/quicktemplates2/qquickcheckdelegate.cpp
+++ b/src/quicktemplates2/qquickcheckdelegate.cpp
@@ -166,9 +166,6 @@ void QQuickCheckDelegate::setCheckState(Qt::CheckState state)
if (d->checkState == state)
return;
- if (!d->tristate && state == Qt::PartiallyChecked)
- setTristate(true);
-
bool wasChecked = isChecked();
d->checked = state != Qt::Unchecked;
d->checkState = state;