summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-27 18:21:20 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-27 18:21:20 (GMT)
commit23067788e15279b925347b6a81a5e03e6b846c34 (patch)
treef6c8ec9461599655380116219099e41742e5bcdb
parente3a0b04ad6aaf62144dc9aa3b825d42390cc0477 (diff)
downloadswift-23067788e15279b925347b6a81a5e03e6b846c34.zip
swift-23067788e15279b925347b6a81a5e03e6b846c34.tar.bz2
More padding before the text in group headings in the roster.
-rw-r--r--Swift/QtUI/Roster/RosterDelegate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/Roster/RosterDelegate.cpp b/Swift/QtUI/Roster/RosterDelegate.cpp
index a26dd19..cd37136 100644
--- a/Swift/QtUI/Roster/RosterDelegate.cpp
+++ b/Swift/QtUI/Roster/RosterDelegate.cpp
@@ -71,7 +71,7 @@ void RosterDelegate::paintGroup(QPainter* painter, const QStyleOptionViewItem& o
linePath.addRoundedRect(region, groupCornerRadius_, groupCornerRadius_);
painter->fillPath(fillPath, backgroundBrush);
painter->drawPath(linePath);
- QRect textRect = region.adjusted(horizontalMargin_, 0, -1 * horizontalMargin_, 0);
+ QRect textRect = region.adjusted(2 * horizontalMargin_ + 1, 0, -1 * horizontalMargin_, 0);
painter->setFont(groupFont_);
painter->setPen(QPen(QColor(254, 254, 254)));
painter->drawText(textRect.adjusted(1, 1, 0, 0), Qt::AlignTop, index.data(Qt::DisplayRole).toString());