summary refs log tree commit diff
path: root/include/ui/Avatar.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui/Avatar.h')
-rw-r--r--include/ui/Avatar.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/include/ui/Avatar.h b/include/ui/Avatar.h

index b99ee683..dc089139 100644 --- a/include/ui/Avatar.h +++ b/include/ui/Avatar.h
@@ -9,40 +9,40 @@ class Avatar : public QWidget { - Q_OBJECT + Q_OBJECT - Q_PROPERTY(QColor textColor WRITE setTextColor READ textColor) - Q_PROPERTY(QColor backgroundColor WRITE setBackgroundColor READ backgroundColor) + Q_PROPERTY(QColor textColor WRITE setTextColor READ textColor) + Q_PROPERTY(QColor backgroundColor WRITE setBackgroundColor READ backgroundColor) public: - explicit Avatar(QWidget *parent = 0); - ~Avatar(); + explicit Avatar(QWidget *parent = 0); + ~Avatar(); - void setBackgroundColor(const QColor &color); - void setIcon(const QIcon &icon); - void setImage(const QImage &image); - void setLetter(const QChar &letter); - void setSize(int size); - void setTextColor(const QColor &color); + void setBackgroundColor(const QColor &color); + void setIcon(const QIcon &icon); + void setImage(const QImage &image); + void setLetter(const QChar &letter); + void setSize(int size); + void setTextColor(const QColor &color); - QColor backgroundColor() const; - QColor textColor() const; - int size() const; + QColor backgroundColor() const; + QColor textColor() const; + int size() const; - QSize sizeHint() const override; + QSize sizeHint() const override; protected: - void paintEvent(QPaintEvent *event) override; + void paintEvent(QPaintEvent *event) override; private: - void init(); - - ui::AvatarType type_; - QChar letter_; - QColor background_color_; - QColor text_color_; - QIcon icon_; - QImage image_; - QPixmap pixmap_; - int size_; + void init(); + + ui::AvatarType type_; + QChar letter_; + QColor background_color_; + QColor text_color_; + QIcon icon_; + QImage image_; + QPixmap pixmap_; + int size_; };