mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-23 22:25:11 +02:00
* Fix painting elided but hovered texts in QueryLabel.
This commit is contained in:
@@ -307,8 +307,16 @@ QueryLabel::paintEvent( QPaintEvent* event )
|
||||
|
||||
if ( elidedText != s || ( m_result.isNull() && m_query.isNull() ) )
|
||||
{
|
||||
p.setBrush( palette().window() );
|
||||
p.setPen( palette().color( foregroundRole() ) );
|
||||
if ( m_hoverArea.width() )
|
||||
{
|
||||
p.setPen( palette().highlightedText().color() );
|
||||
p.setBrush( palette().highlight() );
|
||||
}
|
||||
else
|
||||
{
|
||||
p.setBrush( palette().window() );
|
||||
p.setPen( palette().color( foregroundRole() ) );
|
||||
}
|
||||
p.drawText( r, align, elidedText );
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user