Smooth avatars in widgets

pull/314/head
Mayeul Cantan 4 years ago
parent 2c542c398a
commit 6219604ff8
  1. 4
      src/ui/Avatar.cpp

@ -121,7 +121,9 @@ Avatar::paintEvent(QPaintEvent *)
bool rounded = QSettings().value("user/avatar_circles", true).toBool();
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing);
painter.setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform |
QPainter::TextAntialiasing);
QRectF r = rect();
const int hs = size_ / 2;

Loading…
Cancel
Save