2 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/Avatar.cpp b/src/ui/Avatar.cpp
index 94e330f6..6a87e002 100644
--- a/src/ui/Avatar.cpp
+++ b/src/ui/Avatar.cpp
@@ -104,11 +104,12 @@ Avatar::setIcon(const QIcon &icon)
}
void
-Avatar::rounded(bool setting)
+Avatar::setRounded(bool setting)
{
rounded_ = setting;
}
+void
Avatar::paintEvent(QPaintEvent *)
{
QPainter painter(this);
diff --git a/src/ui/Avatar.h b/src/ui/Avatar.h
index e5e4d873..5732da27 100644
--- a/src/ui/Avatar.h
+++ b/src/ui/Avatar.h
@@ -45,5 +45,5 @@ private:
QImage image_;
QPixmap pixmap_;
int size_;
- bool rounded_;
+ bool rounded_ = true;
};
|