Handle surrogate pairs in avatars
This commit is contained in:
parent
8beef5e61f
commit
5b09c8e652
6 changed files with 25 additions and 13 deletions
|
|
@ -21,7 +21,7 @@ public:
|
|||
void setBackgroundColor(const QColor &color);
|
||||
void setIcon(const QIcon &icon);
|
||||
void setImage(const QImage &image);
|
||||
void setLetter(const QChar &letter);
|
||||
void setLetter(const QString &letter);
|
||||
void setSize(int size);
|
||||
void setTextColor(const QColor &color);
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ private:
|
|||
void init();
|
||||
|
||||
ui::AvatarType type_;
|
||||
QChar letter_;
|
||||
QString letter_;
|
||||
QColor background_color_;
|
||||
QColor text_color_;
|
||||
QIcon icon_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue