From 1e2633e472f432cecdb7c2d3610a98c2e13671b9 Mon Sep 17 00:00:00 2001 From: Leonardo Robol Date: Tue, 25 Oct 2011 12:14:59 +0200 Subject: [PATCH] Alignment fix. --- larss/unreadcountitemdelegate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/larss/unreadcountitemdelegate.cpp b/larss/unreadcountitemdelegate.cpp index c01e8d7..c7d5613 100644 --- a/larss/unreadcountitemdelegate.cpp +++ b/larss/unreadcountitemdelegate.cpp @@ -29,7 +29,8 @@ UnReadCountItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &op QFont font = option.font; font.setBold(true); painter->setFont(font); - painter->drawText(option.rect, Qt::AlignLeft, QString ("%1 (%2)").arg(index.data(Qt::DisplayRole).toString()).arg(unreadPosts)); + painter->drawText(option.rect, option.displayAlignment, + QString (" %1 (%2)").arg(index.data(Qt::DisplayRole).toString()).arg(unreadPosts)); return; } -- 2.1.4