From b10d453bd5341587e94702f98b86f307ed2a4c92 Mon Sep 17 00:00:00 2001 From: Aidan Hahn Date: Wed, 28 Aug 2019 21:36:28 -0700 Subject: add controll bits for avatar rounding --- src/ui/Avatar.cpp | 3 ++- src/ui/Avatar.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui') 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; }; -- cgit 1.5.1