summary refs log tree commit diff
path: root/src/ui/Avatar.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-12 10:21:53 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-12 10:21:53 +0200
commit5b09c8e652756f8b631fc3e5b6d72a3df3e4faa3 (patch)
treee4237234458b172d65898e87f8311da8d1bbd0d0 /src/ui/Avatar.cc
parentDismiss modal by clicking on the overlay (diff)
downloadnheko-5b09c8e652756f8b631fc3e5b6d72a3df3e4faa3.tar.xz
Handle surrogate pairs in avatars
Diffstat (limited to '')
-rw-r--r--src/ui/Avatar.cc4
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;