summary refs log tree commit diff
path: root/src/CommunitiesListItem.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-30 21:41:47 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-30 21:41:47 +0300
commit3097037c3dc882be2efe64dce6aefeea43d5f040 (patch)
tree1e3375fbd423c3bd18513e6d2a502b7fa1e4cfb8 /src/CommunitiesListItem.cc
parentShow room tooltips when the sidebar is collapsed (diff)
downloadnheko-3097037c3dc882be2efe64dce6aefeea43d5f040.tar.xz
Add prototype room settings menu
Diffstat (limited to 'src/CommunitiesListItem.cc')
-rw-r--r--src/CommunitiesListItem.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CommunitiesListItem.cc b/src/CommunitiesListItem.cc

index e86216e8..0650c0cf 100644 --- a/src/CommunitiesListItem.cc +++ b/src/CommunitiesListItem.cc
@@ -2,6 +2,7 @@ #include "Painter.h" #include "Ripple.h" #include "RippleOverlay.h" +#include "Utils.h" CommunitiesListItem::CommunitiesListItem(QSharedPointer<Community> community, QString community_id, @@ -74,7 +75,7 @@ CommunitiesListItem::paintEvent(QPaintEvent *) font.setPixelSize(conf::roomlist::fonts::communityBubble); p.setFont(font); - p.drawLetterAvatar(community_->getName()[0], + p.drawLetterAvatar(utils::firstChar(community_->getName()), avatarFgColor_, avatarBgColor_, width(),