From 098183ddca3f0131efaea78107aa911a47746c10 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 25 May 2012 14:14:06 -0400 Subject: [PATCH] Keep Remove button size in accounts delegate same as Add --- src/AccountDelegate.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AccountDelegate.cpp b/src/AccountDelegate.cpp index 1d7a23c01..77eb60bfe 100644 --- a/src/AccountDelegate.cpp +++ b/src/AccountDelegate.cpp @@ -281,7 +281,10 @@ AccountDelegate::paint ( QPainter* painter, const QStyleOptionViewItem& option, btnRect = QRect( opt.rect.right() - PADDING - btnWidth, center - ( installMetrics.height() + 4 ) / 2, btnWidth, installMetrics.height() + 2*PADDING ); #ifdef Q_WS_MAC - btnRect.adjust( -4, 2, 4, -2 ); + btnRect.adjust( -4, 0, 4, 0 ); + + if ( hasConfigWrench ) + btnRect.moveTop( btnRect.top() + 2 ); #endif leftEdge = btnRect.left(); m_cachedButtonRects[ index ] = btnRect;