mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Keep Remove button size in accounts delegate same as Add
This commit is contained in:
@@ -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 );
|
btnRect = QRect( opt.rect.right() - PADDING - btnWidth, center - ( installMetrics.height() + 4 ) / 2, btnWidth, installMetrics.height() + 2*PADDING );
|
||||||
|
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
btnRect.adjust( -4, 2, 4, -2 );
|
btnRect.adjust( -4, 0, 4, 0 );
|
||||||
|
|
||||||
|
if ( hasConfigWrench )
|
||||||
|
btnRect.moveTop( btnRect.top() + 2 );
|
||||||
#endif
|
#endif
|
||||||
leftEdge = btnRect.left();
|
leftEdge = btnRect.left();
|
||||||
m_cachedButtonRects[ index ] = btnRect;
|
m_cachedButtonRects[ index ] = btnRect;
|
||||||
|
Reference in New Issue
Block a user