From 6219604ff8295dd1383648c953c791f9985db1e6 Mon Sep 17 00:00:00 2001 From: Mayeul Cantan Date: Sun, 1 Nov 2020 02:47:03 +0100 Subject: Smooth avatars in widgets --- src/ui/Avatar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui') diff --git a/src/ui/Avatar.cpp b/src/ui/Avatar.cpp index 70ebfcf2..0d1bb924 100644 --- a/src/ui/Avatar.cpp +++ b/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; -- cgit 1.4.1