Commit 3f26d384 authored by Jakob Leben's avatar Jakob Leben

Qt: selector: correct expand-arrow position

parent 9e48c559
...@@ -469,7 +469,8 @@ void PLSelector::drawBranches ( QPainter * painter, const QRect & rect, const QM ...@@ -469,7 +469,8 @@ void PLSelector::drawBranches ( QPainter * painter, const QRect & rect, const QM
if( !model()->hasChildren( index ) ) return; if( !model()->hasChildren( index ) ) return;
QStyleOption option; QStyleOption option;
option.initFrom( this ); option.initFrom( this );
option.rect = rect; option.rect = rect.adjusted( rect.width() - indentation(), 0, 0, 0 );
/*option.state = QStyle::State_Children; /*option.state = QStyle::State_Children;
if( isExpanded( index ) ) option.state |= QStyle::State_Open;*/ if( isExpanded( index ) ) option.state |= QStyle::State_Open;*/
style()->drawPrimitive( isExpanded( index ) ? style()->drawPrimitive( isExpanded( index ) ?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment