Skip to content
Snippets Groups Projects
Commit 6219604f authored by Mayeul Cantan's avatar Mayeul Cantan
Browse files

Smooth avatars in widgets

parent 2c542c39
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment