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:
parent
61fb4744f3
commit
a9b3ad786c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user