Paint CallButton eliipse with high quality.
This commit is contained in:
parent
84b3ac9b58
commit
c4df097339
1 changed files with 2 additions and 0 deletions
|
|
@ -130,6 +130,8 @@ void CallButton::paintEvent(QPaintEvent *e) {
|
|||
const auto &s = _stFrom->bgSize;
|
||||
p.setPen(Qt::NoPen);
|
||||
p.setBrush(*_bgOverride);
|
||||
|
||||
PainterHighQualityEnabler hq(p);
|
||||
p.drawEllipse(QRect(_stFrom->bgPosition, QSize(s, s)));
|
||||
} else if (paintFrom) {
|
||||
p.drawPixmap(bgPosition, _bgFrom);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue