1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

* Handle non left-aligned QueryLabels (badly). Will have to be rewritten soon.

This commit is contained in:
Christian Muehlhaeuser
2012-06-16 08:21:52 +02:00
parent 44bf61adc0
commit e1b0125a46

View File

@@ -607,6 +607,8 @@ QueryLabel::mouseMoveEvent( QMouseEvent* event )
QRect hoverArea;
m_hoverType = None;
if ( m_align & Qt::AlignLeft )
{
if ( m_type & Artist && x < artistX )
{
m_hoverType = Artist;
@@ -631,6 +633,19 @@ QueryLabel::mouseMoveEvent( QMouseEvent* event )
{
m_hoverType = Complete;
}
}
else
{
hoverArea.setLeft( 0 );
hoverArea.setRight( width() - 1 );
if ( m_type & Artist )
m_hoverType = Artist;
else if ( m_type & Album )
m_hoverType = Album;
else if ( m_type & Track )
m_hoverType = Track;
}
if ( hoverArea.width() )
{