void QAbstractButtonPrivate::notifyChecked() { #ifndef QT_NO_BUTTONGROUP Q_Q(QAbstractButton); if (group) { QAbstractButton *previous = group->d_func()->checkedButton; group->d_func()->checkedButton = q; if (group->d_func()->exclusive && previous && previous != q) previous->nextCheckState(); } else #endif if (autoExclusive) { if (QAbstractButton *b = queryCheckedButton()) b->setChecked(false); } }