Paint CallButton eliipse with high quality.

This commit is contained in:
John Preston 2020-11-30 18:49:30 +03:00
parent 84b3ac9b58
commit c4df097339

View file

@ -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);