From 23067788e15279b925347b6a81a5e03e6b846c34 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Thu, 27 Aug 2009 19:21:20 +0100 Subject: More padding before the text in group headings in the roster. 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()); -- cgit v0.10.2-6-g49f6