mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
* Fixed info-icon wonkiness in TreeView.
This commit is contained in:
@@ -100,8 +100,7 @@ TreeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
if ( oldX > 0 )
|
if ( oldX > 0 )
|
||||||
o.rect.setX( oldX );
|
o.rect.setX( oldX );
|
||||||
|
|
||||||
if ( m_view->hoveredIndex().row() == index.row() && m_view->hoveredIndex().column() == index.column() &&
|
if ( m_view->hoveredIndex() == index && !index.data().toString().isEmpty() && index.column() == 0 )
|
||||||
!index.data().toString().isEmpty() && index.column() == 0 )
|
|
||||||
{
|
{
|
||||||
o.rect.setWidth( o.rect.width() - 16 );
|
o.rect.setWidth( o.rect.width() - 16 );
|
||||||
QRect arrowRect( o.rect.x() + o.rect.width(), o.rect.y() + 1, o.rect.height() - 2, o.rect.height() - 2 );
|
QRect arrowRect( o.rect.x() + o.rect.width(), o.rect.y() + 1, o.rect.height() - 2, o.rect.height() - 2 );
|
||||||
|
Reference in New Issue
Block a user