From 01fbbb6683edbf1833ea02f302f94f1b8c85b5ee Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 20 Feb 2012 18:00:21 -0500 Subject: [PATCH] osx button size tweaks --- src/AccountDelegate.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AccountDelegate.cpp b/src/AccountDelegate.cpp index 6fdb22e0f..4af815b76 100644 --- a/src/AccountDelegate.cpp +++ b/src/AccountDelegate.cpp @@ -205,6 +205,9 @@ AccountDelegate::paint ( QPainter* painter, const QStyleOptionViewItem& option, painter->restore(); btnRect = QRect( opt.rect.right() - PADDING - btnWidth, opt.rect.bottom() - installMetrics.height() - 3*PADDING, btnWidth, installMetrics.height() + 2*PADDING ); +#ifdef Q_WS_MAC + btnRect.adjust( -4, 0, 4, 0 ); +#endif } leftEdge = btnRect.left(); @@ -242,6 +245,9 @@ AccountDelegate::paint ( QPainter* painter, const QStyleOptionViewItem& option, else 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 ); +#endif leftEdge = btnRect.left(); m_cachedButtonRects[ index ] = btnRect;