diff options
| author | Christian Ehrlicher <[email protected]> | 2025-10-17 16:01:55 +0200 | 
|---|---|---|
| committer | Christian Ehrlicher <[email protected]> | 2025-10-22 06:12:36 +0200 | 
| commit | b252b715c14da194c41e802319933f562e736082 (patch) | |
| tree | f70cce0a1c4f8b6f326018ce7dcf8ca76977648a | |
| parent | 30985c1fabb7281f2ac86cf576a092b7d48aeb3b (diff) | |
Windows11Style: fix drawing disabled, checked QRadioButton
A disabled, checked QRadioButton is not drawn as checked. This was
introduced with a39047eeb6202a3c081d2441be9dc4f3d017fb97
Pick-to: 6.10
Task-number: QTBUG-139605
Fixes: QTBUG-140449
Change-Id: I2c34637b0ef51d619a81a78862021a76ae5b20a0
Reviewed-by: Axel Spoerl <[email protected]>
| -rw-r--r-- | src/plugins/styles/modernwindows/qwindows11style.cpp | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/styles/modernwindows/qwindows11style.cpp b/src/plugins/styles/modernwindows/qwindows11style.cpp index 25142612c4f..849d0461b3f 100644 --- a/src/plugins/styles/modernwindows/qwindows11style.cpp +++ b/src/plugins/styles/modernwindows/qwindows11style.cpp @@ -923,15 +923,13 @@ void QWindows11Style::drawPrimitive(PrimitiveElement element, const QStyleOption      case PE_IndicatorRadioButton: {              const bool isRtl = option->direction == Qt::RightToLeft;              const bool isOn = option->state & State_On; -            qreal innerRadius = 7.0f; +            qreal innerRadius = radioButtonInnerRadius(state);              if (d->transitionsEnabled() && option->styleObject) {                  if (option->styleObject->property("_q_end_radius").isNull())                      option->styleObject->setProperty("_q_end_radius", innerRadius);                  QNumberStyleAnimation *animation = qobject_cast<QNumberStyleAnimation *>(d->animation(option->styleObject));                  innerRadius = animation ? animation->currentValue() : option->styleObject->property("_q_end_radius").toFloat();                  option->styleObject->setProperty("_q_inner_radius", innerRadius); -            } else { -                innerRadius = radioButtonInnerRadius(state);              }              QRectF rect = isRtl ? option->rect.adjusted(0, 0, -2, 0) : option->rect.adjusted(2, 0, 0, 0);  | 
