diff options
Diffstat (limited to 'src/controls/CheckBox.qml')
-rw-r--r-- | src/controls/CheckBox.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/controls/CheckBox.qml b/src/controls/CheckBox.qml index c9f1b8f1..d2ee44ce 100644 --- a/src/controls/CheckBox.qml +++ b/src/controls/CheckBox.qml @@ -139,6 +139,20 @@ AbstractCheckable { } /*! \internal */ + onPartiallyCheckedEnabledChanged: { + if (exclusiveGroup && partiallyCheckedEnabled) { + console.warn("Cannot have partially checked boxes in an ExclusiveGroup."); + } + } + + /*! \internal */ + onExclusiveGroupChanged: { + if (exclusiveGroup && partiallyCheckedEnabled) { + console.warn("Cannot have partially checked boxes in an ExclusiveGroup."); + } + } + + /*! \internal */ function cycleCheckBoxStates() { if (!partiallyCheckedEnabled) { checked = !checked; |