Enable antialiasing for reply button (#5491)
This commit is contained in:
@@ -233,7 +233,9 @@ void MessageLayoutContainer::paintElements(QPainter &painter,
|
||||
painter.drawRect(element->getRect());
|
||||
#endif
|
||||
|
||||
painter.save();
|
||||
element->paint(painter, ctx.messageColors);
|
||||
painter.restore();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -392,6 +392,7 @@ void ImageWithCircleBackgroundLayoutElement::paint(
|
||||
if (pixmap && !this->image_->animated())
|
||||
{
|
||||
QRectF boxRect(this->getRect());
|
||||
painter.setRenderHint(QPainter::Antialiasing);
|
||||
painter.setPen(Qt::NoPen);
|
||||
painter.setBrush(QBrush(this->color_, Qt::SolidPattern));
|
||||
painter.drawEllipse(boxRect);
|
||||
|
||||
Reference in New Issue
Block a user