Fix emoji alignment issue (#43)

This commit is contained in:
george99g 2017-07-04 23:40:41 +03:00 committed by mujx
parent 140cbd3c27
commit 03437cc693

View file

@ -43,5 +43,5 @@ void EmojiItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt
font.setPixelSize(19); font.setPixelSize(19);
painter->setFont(font); painter->setFont(font);
painter->drawText(viewOption.rect, emoji); painter->drawText(viewOption.rect, Qt::AlignCenter, emoji);
} }