mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
rounding options for Avatar class
This commit is contained in:
parent
26002bf0e4
commit
8a47388ec6
4 changed files with 2266811 additions and 2 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -3,6 +3,11 @@ tags
|
||||||
.clang_complete
|
.clang_complete
|
||||||
*wintoastlib*
|
*wintoastlib*
|
||||||
|
|
||||||
|
# GTAGS
|
||||||
|
GTAGS
|
||||||
|
GRTAGS
|
||||||
|
GPATH
|
||||||
|
|
||||||
# C++ objects and libs
|
# C++ objects and libs
|
||||||
|
|
||||||
*.slo
|
*.slo
|
||||||
|
|
|
@ -135,10 +135,11 @@ UserInfoWidget::reset()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
UserInfoWidget::setAvatar(const QImage &img)
|
UserInfoWidget::setAvatar(const QImage &img, bool rounded)
|
||||||
{
|
{
|
||||||
avatar_image_ = img;
|
avatar_image_ = img;
|
||||||
userAvatar_->setImage(img);
|
userAvatar_->setImage(img);
|
||||||
|
userAvatar_->setRounded(rounded);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2266803
src/cscope.out
Normal file
2266803
src/cscope.out
Normal file
File diff suppressed because it is too large
Load diff
|
@ -23,7 +23,7 @@ public:
|
||||||
void setLetter(const QString &letter);
|
void setLetter(const QString &letter);
|
||||||
void setSize(int size);
|
void setSize(int size);
|
||||||
void setTextColor(const QColor &color);
|
void setTextColor(const QColor &color);
|
||||||
void rounded(bool setting);
|
void setRounded(bool setting);
|
||||||
|
|
||||||
QColor backgroundColor() const;
|
QColor backgroundColor() const;
|
||||||
QColor textColor() const;
|
QColor textColor() const;
|
||||||
|
|
Loading…
Reference in a new issue