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:
@@ -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() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user