13void QQuickFluentWinUI3FocusStroke::paint(QPainter *painter)
15 painter->setRenderHint(QPainter::Antialiasing);
17 QRectF rect = boundingRect();
18 path.moveTo(rect.left(), rect.top() + m_radius);
19 path.lineTo(rect.left(), rect.bottom() - m_radius);
20 path.arcTo(QRectF(rect.left(), rect.bottom() - 2 * m_radius, 2 * m_radius, 2 * m_radius), 180, 90);
21 path.lineTo(rect.right() - m_radius, rect.bottom());
22 path.arcTo(QRectF(rect.right() - 2 * m_radius, rect.bottom() - 2 * m_radius, 2 * m_radius, 2 * m_radius), 270, 90);
23 path.lineTo(rect.right(), rect.top() + m_radius);
24 path.lineTo(rect.right(), rect.top() + m_radius);
25 path.lineTo(rect.right(), rect.top());
26 path.lineTo(rect.left(), rect.top());
27 painter->fillPath(path, m_color);