| 124 | } |
| 125 | |
| 126 | void QVButtonPanel::paintEvent(QPaintEvent *event) |
| 127 | { |
| 128 | Q_UNUSED(event); |
| 129 | QPainter painter(this); |
| 130 | painter.setRenderHint(QPainter::Antialiasing, true); |
| 131 | // Draw the background with optional rounded corners |
| 132 | painter.setBrush(m_bgColor); |
| 133 | painter.setPen(Qt::NoPen); |
| 134 | if (m_radius > 0) { |
| 135 | painter.drawRoundedRect(rect(), m_radius, m_radius); |
| 136 | } else { |
| 137 | painter.drawRect(rect()); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // ── Public API ─────────────────────────────────────────────────────────────── |
| 142 |
nothing calls this directly
no outgoing calls
no test coverage detected