summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorMayeul Cantan <oss+nheko@mayeul.net>2020-11-01 02:47:03 +0100
committerMayeul Cantan <oss+nheko@mayeul.net>2020-11-07 13:53:01 +0100
commit6219604ff8295dd1383648c953c791f9985db1e6 (patch)
tree0cf82a2ec843c20990320f2c9ab307c887533e1b /src/ui
parentSmooth pictures in timeline (diff)
downloadnheko-6219604ff8295dd1383648c953c791f9985db1e6.tar.xz
Smooth avatars in widgets
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/Avatar.cpp4
1 files changed, 3 insertions, 1 deletions
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;