13 QQuickStyleItem::connectToControl();
14 auto checkDelegate = control<QQuickCheckDelegate>();
15 connect(checkDelegate, &QQuickCheckDelegate::downChanged,
this, &QQuickStyleItem::markImageDirty);
16 connect(checkDelegate, &QQuickCheckDelegate::checkStateChanged,
this, &QQuickStyleItem::markImageDirty);
21 initStyleOptionBase(styleOption);
22 auto checkDelegate = control<QQuickCheckDelegate>();
24 styleOption.state |= checkDelegate->isDown() ? QStyle::State_Sunken : QStyle::State_Raised;
25 if (checkDelegate->isTristate() && checkDelegate->checkState() == Qt::PartiallyChecked)
26 styleOption.state |= QStyle::State_NoChange;
28 styleOption.state |= checkDelegate->isChecked() ? QStyle::State_On : QStyle::State_Off;