diff options
author | Mayeul Cantan <oss+nheko@mayeul.net> | 2020-11-01 02:47:03 +0100 |
---|---|---|
committer | Mayeul Cantan <oss+nheko@mayeul.net> | 2020-11-07 13:53:01 +0100 |
commit | 6219604ff8295dd1383648c953c791f9985db1e6 (patch) | |
tree | 0cf82a2ec843c20990320f2c9ab307c887533e1b /src/ui | |
parent | Smooth pictures in timeline (diff) | |
download | nheko-6219604ff8295dd1383648c953c791f9985db1e6.tar.xz |
Smooth avatars in widgets
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/Avatar.cpp | 4 |
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; |