mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
* Info button for tracks.
This commit is contained in:
@@ -600,7 +600,7 @@ TrackView::updateHoverIndex( const QPoint& pos )
|
|||||||
if ( !m_model || m_model->style() != TrackModel::Detailed )
|
if ( !m_model || m_model->style() != TrackModel::Detailed )
|
||||||
return;
|
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 &&
|
if ( pos.x() > header()->sectionViewportPosition( idx.column() ) + header()->sectionSize( idx.column() ) - 16 &&
|
||||||
pos.x() < header()->sectionViewportPosition( idx.column() ) + header()->sectionSize( idx.column() ) )
|
pos.x() < header()->sectionViewportPosition( idx.column() ) + header()->sectionSize( idx.column() ) )
|
||||||
@@ -686,6 +686,12 @@ TrackView::mousePressEvent( QMouseEvent* event )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case TrackModel::Track:
|
||||||
|
{
|
||||||
|
ViewManager::instance()->show( item->query() );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user