1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

* Don't react to hover events unless TrackView is in Detailed mode.

This commit is contained in:
Christian Muehlhaeuser
2011-09-04 08:49:37 +02:00
parent 12c5b18b05
commit 5b8f35294b

View File

@@ -468,7 +468,7 @@ TrackView::updateHoverIndex( const QPoint& pos )
repaint();
}
if ( m_model->style() == TrackModel::Short )
if ( m_model->style() == TrackModel::Short || m_model->style() == TrackModel::ShortWithAvatars )
return;
if ( idx.column() == TrackModel::Artist || idx.column() == TrackModel::Album )
@@ -519,8 +519,11 @@ void
TrackView::mousePressEvent( QMouseEvent* event )
{
QTreeView::mousePressEvent( event );
QModelIndex idx = indexAt( event->pos() );
if ( m_model->style() == TrackModel::Short || m_model->style() == TrackModel::ShortWithAvatars )
return;
QModelIndex idx = indexAt( event->pos() );
if ( event->pos().x() > header()->sectionViewportPosition( idx.column() ) + header()->sectionSize( idx.column() ) - 16 &&
event->pos().x() < header()->sectionViewportPosition( idx.column() ) + header()->sectionSize( idx.column() ) )
{