mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
relinted
This commit is contained in:
parent
5326d29e56
commit
4a223ef508
1 changed files with 5 additions and 7 deletions
|
@ -19,8 +19,8 @@
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QtGlobal>
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
#include <QtGlobal>
|
||||||
|
|
||||||
#include "AvatarProvider.h"
|
#include "AvatarProvider.h"
|
||||||
#include "Cache.h"
|
#include "Cache.h"
|
||||||
|
@ -291,9 +291,8 @@ RoomInfoListItem::paintEvent(QPaintEvent *event)
|
||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
p.setBrush(brush);
|
p.setBrush(brush);
|
||||||
|
|
||||||
rounded ?
|
rounded ? p.drawEllipse(avatarRegion.center(), wm.iconSize / 2, wm.iconSize / 2)
|
||||||
p.drawEllipse(avatarRegion.center(), wm.iconSize / 2, wm.iconSize / 2) :
|
: p.drawRoundedRect(avatarRegion, 3, 3);
|
||||||
p.drawRoundedRect(avatarRegion, 3, 3);
|
|
||||||
|
|
||||||
QFont bubbleFont;
|
QFont bubbleFont;
|
||||||
bubbleFont.setPointSizeF(bubbleFont.pointSizeF() * 1.4);
|
bubbleFont.setPointSizeF(bubbleFont.pointSizeF() * 1.4);
|
||||||
|
@ -306,9 +305,8 @@ RoomInfoListItem::paintEvent(QPaintEvent *event)
|
||||||
p.save();
|
p.save();
|
||||||
|
|
||||||
QPainterPath path;
|
QPainterPath path;
|
||||||
rounded ?
|
rounded ? path.addEllipse(wm.padding, wm.padding, wm.iconSize, wm.iconSize)
|
||||||
path.addEllipse(wm.padding, wm.padding, wm.iconSize, wm.iconSize) :
|
: path.addRoundedRect(avatarRegion, 3, 3);
|
||||||
path.addRoundedRect(avatarRegion, 3, 3);
|
|
||||||
|
|
||||||
p.setClipPath(path);
|
p.setClipPath(path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue