mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-19 23:41:51 +02:00
* Alignment for source parents in playlists.
This commit is contained in:
parent
ed1b4013e8
commit
0a8263e083
@ -1,6 +1,6 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2010-2014, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2010-2011, Jeff Mitchell <jeff@tomahawk-player.org>
|
||||
* Copyright 2013-2014, Teo Mrnjavac <teo@kde.org>
|
||||
*
|
||||
@ -530,7 +530,7 @@ PlaylistItemDelegate::drawSource( QPainter* painter, const QStyleOptionViewItem&
|
||||
{
|
||||
painter->save();
|
||||
|
||||
QRect avatarRect = rect.adjusted( 32, rect.height() - 48, 0, -16 );
|
||||
QRect avatarRect = rect.adjusted( 12, rect.height() - 48, 0, -16 );
|
||||
QRect textRect = avatarRect.adjusted( avatarRect.height() + 32, 0, -32, 0 );
|
||||
avatarRect.setWidth( avatarRect.height() );
|
||||
|
||||
@ -553,7 +553,7 @@ PlaylistItemDelegate::drawSource( QPainter* painter, const QStyleOptionViewItem&
|
||||
|
||||
painter->setOpacity( 0.15 );
|
||||
painter->setBrush( QColor( "#000000" ) );
|
||||
painter->drawRect( rect.adjusted( 32, rect.height() - 8, -32, -8 ) );
|
||||
painter->drawRect( rect.adjusted( 0, rect.height() - 8, -32, -8 ) );
|
||||
|
||||
painter->restore();
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2010-2014, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2013, Teo Mrnjavac <teo@kde.org>
|
||||
*
|
||||
* Tomahawk is free software: you can redistribute it and/or modify
|
||||
|
Loading…
x
Reference in New Issue
Block a user