From 03437cc6935e4d5812fc17aee1e3f79dcdc6bc92 Mon Sep 17 00:00:00 2001 From: george99g Date: Tue, 4 Jul 2017 23:40:41 +0300 Subject: [PATCH] Fix emoji alignment issue (#43) --- src/EmojiItemDelegate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EmojiItemDelegate.cc b/src/EmojiItemDelegate.cc index 13c43b3e..b17a7315 100644 --- a/src/EmojiItemDelegate.cc +++ b/src/EmojiItemDelegate.cc @@ -43,5 +43,5 @@ void EmojiItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt font.setPixelSize(19); painter->setFont(font); - painter->drawText(viewOption.rect, emoji); + painter->drawText(viewOption.rect, Qt::AlignCenter, emoji); }