1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 16:29:43 +01:00

* Info button for tracks.

This commit is contained in:
Christian Muehlhaeuser 2012-05-05 17:00:35 +02:00
parent 61fb4744f3
commit a9b3ad786c

View File

@ -600,7 +600,7 @@ TrackView::updateHoverIndex( const QPoint& pos )
if ( !m_model || m_model->style() != TrackModel::Detailed )
return;
if ( idx.column() == TrackModel::Artist || idx.column() == TrackModel::Album )
if ( idx.column() == TrackModel::Artist || idx.column() == TrackModel::Album || idx.column() == TrackModel::Track )
{
if ( pos.x() > header()->sectionViewportPosition( idx.column() ) + header()->sectionSize( idx.column() ) - 16 &&
pos.x() < header()->sectionViewportPosition( idx.column() ) + header()->sectionSize( idx.column() ) )
@ -686,6 +686,12 @@ TrackView::mousePressEvent( QMouseEvent* event )
break;
}
case TrackModel::Track:
{
ViewManager::instance()->show( item->query() );
break;
}
default:
break;
}