diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-01-12 10:21:53 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-01-12 10:21:53 +0200 |
commit | 5b09c8e652756f8b631fc3e5b6d72a3df3e4faa3 (patch) | |
tree | e4237234458b172d65898e87f8311da8d1bbd0d0 /src/ui | |
parent | 8beef5e61f6210714a0247b334da3426c6724ec3 (diff) |
Handle surrogate pairs in avatars
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/Avatar.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/Avatar.cc b/src/ui/Avatar.cc index e3987e7a..17ee198e 100644 --- a/src/ui/Avatar.cc +++ b/src/ui/Avatar.cc @@ -7,7 +7,7 @@ Avatar::Avatar(QWidget *parent) { size_ = ui::AvatarSize; type_ = ui::AvatarType::Letter; - letter_ = QChar('A'); + letter_ = "A"; QFont _font(font()); _font.setPointSizeF(ui::FontSize); @@ -79,7 +79,7 @@ Avatar::setSize(int size) } void -Avatar::setLetter(const QChar &letter) +Avatar::setLetter(const QString &letter) { letter_ = letter; type_ = ui::AvatarType::Letter; |