MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / paintEvent

Method paintEvent

QKeyMapper/qvbuttonpanel.cpp:126–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected