mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +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;
|
QRect hoverArea;
|
||||||
m_hoverType = None;
|
m_hoverType = None;
|
||||||
|
|
||||||
|
if ( m_align & Qt::AlignLeft )
|
||||||
|
{
|
||||||
if ( m_type & Artist && x < artistX )
|
if ( m_type & Artist && x < artistX )
|
||||||
{
|
{
|
||||||
m_hoverType = Artist;
|
m_hoverType = Artist;
|
||||||
@@ -631,6 +633,19 @@ QueryLabel::mouseMoveEvent( QMouseEvent* event )
|
|||||||
{
|
{
|
||||||
m_hoverType = Complete;
|
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() )
|
if ( hoverArea.width() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user