mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 16:14:40 +02:00
Fix positioning...moveLeft/Right don't do what you think they do...
This commit is contained in:
@@ -93,8 +93,8 @@ AclJobDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, co
|
|||||||
|
|
||||||
if ( allowBtnRect.right() >= denyBtnRect.left() )
|
if ( allowBtnRect.right() >= denyBtnRect.left() )
|
||||||
{
|
{
|
||||||
allowBtnRect.moveLeft( minPixels / 2 );
|
allowBtnRect.moveLeft( allowBtnRect.left() - minPixels / 2 );
|
||||||
denyBtnRect.moveRight( minPixels / 2 );
|
denyBtnRect.moveLeft( denyBtnRect.left() + minPixels / 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
drawRoundedButton( painter, allowBtnRect, allowBtnRect.contains( m_savedHoverPos ) );
|
drawRoundedButton( painter, allowBtnRect, allowBtnRect.contains( m_savedHoverPos ) );
|
||||||
|
Reference in New Issue
Block a user