1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-25 06:51:13 +02:00

* Fix painting elided but hovered texts in QueryLabel.

This commit is contained in:
Christian Muehlhaeuser
2011-01-19 09:11:16 +01:00
parent 61578e4bbe
commit 9741174f62

View File

@@ -306,9 +306,17 @@ QueryLabel::paintEvent( QPaintEvent* event )
} }
if ( elidedText != s || ( m_result.isNull() && m_query.isNull() ) ) if ( elidedText != s || ( m_result.isNull() && m_query.isNull() ) )
{
if ( m_hoverArea.width() )
{
p.setPen( palette().highlightedText().color() );
p.setBrush( palette().highlight() );
}
else
{ {
p.setBrush( palette().window() ); p.setBrush( palette().window() );
p.setPen( palette().color( foregroundRole() ) ); p.setPen( palette().color( foregroundRole() ) );
}
p.drawText( r, align, elidedText ); p.drawText( r, align, elidedText );
} }
else else