Refactored Avatar and RoomInfoListItem to access rounding settings in place

This commit is contained in:
Aidan Hahn 2019-09-01 14:41:23 -07:00
parent b10d453bd5
commit a1c2aed36a
No known key found for this signature in database
GPG key ID: 327711E983899316
8 changed files with 22 additions and 2267119 deletions

View file

@ -1,3 +1,4 @@
/*
* nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr>
*
@ -135,11 +136,10 @@ UserInfoWidget::reset()
}
void
UserInfoWidget::setAvatar(const QImage &img, bool rounded)
UserInfoWidget::setAvatar(const QImage &img)
{
avatar_image_ = img;
userAvatar_->setImage(img);
userAvatar_->setRounded(rounded);
update();
}