mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
paint the hovered item w/o QStyle::State_Selected but w/ QStyle::State_Active
This commit is contained in:
@@ -182,7 +182,7 @@ SourceDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, co
|
|||||||
&& m_expandedMap.contains( index ) && m_expandedMap.value( index )->partlyExpanded() && dropTypeCount( item ) > 0 )
|
&& m_expandedMap.contains( index ) && m_expandedMap.value( index )->partlyExpanded() && dropTypeCount( item ) > 0 )
|
||||||
{
|
{
|
||||||
// Let Qt paint the original item. We add our stuff after it
|
// Let Qt paint the original item. We add our stuff after it
|
||||||
o.state &= QStyle::State_Selected;
|
o.state &= ~QStyle::State_Selected;
|
||||||
o.showDecorationSelected = false;
|
o.showDecorationSelected = false;
|
||||||
o.rect.adjust( 0, 0, 0, - option.rect.height() + m_expandedMap.value( index )->originalSize().height() );
|
o.rect.adjust( 0, 0, 0, - option.rect.height() + m_expandedMap.value( index )->originalSize().height() );
|
||||||
QStyledItemDelegate::paint( painter, o, index );
|
QStyledItemDelegate::paint( painter, o, index );
|
||||||
|
Reference in New Issue
Block a user