mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-24 14:42:53 +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() ) )
|
if ( elidedText != s || ( m_result.isNull() && m_query.isNull() ) )
|
||||||
{
|
{
|
||||||
p.setBrush( palette().window() );
|
if ( m_hoverArea.width() )
|
||||||
p.setPen( palette().color( foregroundRole() ) );
|
{
|
||||||
|
p.setPen( palette().highlightedText().color() );
|
||||||
|
p.setBrush( palette().highlight() );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
p.setBrush( palette().window() );
|
||||||
|
p.setPen( palette().color( foregroundRole() ) );
|
||||||
|
}
|
||||||
p.drawText( r, align, elidedText );
|
p.drawText( r, align, elidedText );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user