summary refs log tree commit diff
path: root/src/UserInfoWidget.cpp
diff options
context:
space:
mode:
authorAidan Hahn <aidan@aidanis.online>2019-08-28 18:34:04 -0700
committerAidan Hahn <aidan@aidanis.online>2019-08-28 18:34:04 -0700
commit8a47388ec64880de554e1457cdcd5cbe78d37214 (patch)
tree463378d1b1ef206f6e5074464a3205d85727064b /src/UserInfoWidget.cpp
parentadded logic in avatar class to determine rounding type (diff)
downloadnheko-8a47388ec64880de554e1457cdcd5cbe78d37214.tar.xz
rounding options for Avatar class
Diffstat (limited to '')
-rw-r--r--src/UserInfoWidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/UserInfoWidget.cpp b/src/UserInfoWidget.cpp

index 5345fb2a..8cd37dd0 100644 --- a/src/UserInfoWidget.cpp +++ b/src/UserInfoWidget.cpp
@@ -135,10 +135,11 @@ UserInfoWidget::reset() } void -UserInfoWidget::setAvatar(const QImage &img) +UserInfoWidget::setAvatar(const QImage &img, bool rounded) { avatar_image_ = img; userAvatar_->setImage(img); + userAvatar_->setRounded(rounded); update(); }