rounding options for Avatar class
This commit is contained in:
parent
26002bf0e4
commit
8a47388ec6
4 changed files with 2266811 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue