diff options
author | Aidan Hahn <aidan@aidanis.online> | 2019-09-03 19:59:08 -0700 |
---|---|---|
committer | Aidan Hahn <aidan@aidanis.online> | 2019-09-03 19:59:08 -0700 |
commit | 4a223ef50817fc21c3aa31bc97808ec15294a2b1 (patch) | |
tree | c32ce00a9236a6fac69ae401042863ac71d3bf8c /src | |
parent | group similar ui options on settings page (diff) | |
download | nheko-4a223ef50817fc21c3aa31bc97808ec15294a2b1.tar.xz |
relinted
Diffstat (limited to 'src')
-rw-r--r-- | src/RoomInfoListItem.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/RoomInfoListItem.cpp b/src/RoomInfoListItem.cpp index 5b41794b..8aadbea2 100644 --- a/src/RoomInfoListItem.cpp +++ b/src/RoomInfoListItem.cpp @@ -19,8 +19,8 @@ #include <QDebug> #include <QMouseEvent> #include <QPainter> -#include <QtGlobal> #include <QSettings> +#include <QtGlobal> #include "AvatarProvider.h" #include "Cache.h" @@ -291,9 +291,8 @@ RoomInfoListItem::paintEvent(QPaintEvent *event) p.setPen(Qt::NoPen); p.setBrush(brush); - rounded ? - p.drawEllipse(avatarRegion.center(), wm.iconSize / 2, wm.iconSize / 2) : - p.drawRoundedRect(avatarRegion, 3, 3); + rounded ? p.drawEllipse(avatarRegion.center(), wm.iconSize / 2, wm.iconSize / 2) + : p.drawRoundedRect(avatarRegion, 3, 3); QFont bubbleFont; bubbleFont.setPointSizeF(bubbleFont.pointSizeF() * 1.4); @@ -306,9 +305,8 @@ RoomInfoListItem::paintEvent(QPaintEvent *event) p.save(); QPainterPath path; - rounded ? - path.addEllipse(wm.padding, wm.padding, wm.iconSize, wm.iconSize) : - path.addRoundedRect(avatarRegion, 3, 3); + rounded ? path.addEllipse(wm.padding, wm.padding, wm.iconSize, wm.iconSize) + : path.addRoundedRect(avatarRegion, 3, 3); p.setClipPath(path); |