1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 08:19:42 +01:00

* Fixed info-icon wonkiness in TreeView.

This commit is contained in:
Christian Muehlhaeuser 2012-11-28 08:34:27 +01:00
parent 0580ad7050
commit ad179b842c

View File

@ -100,8 +100,7 @@ TreeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
if ( oldX > 0 )
o.rect.setX( oldX );
if ( m_view->hoveredIndex().row() == index.row() && m_view->hoveredIndex().column() == index.column() &&
!index.data().toString().isEmpty() && index.column() == 0 )
if ( m_view->hoveredIndex() == index && !index.data().toString().isEmpty() && index.column() == 0 )
{
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 );