]> git.sesse.net Git - vlc/commitdiff
Qt: selector: correct expand-arrow position
authorJakob Leben <jleben@videolan.org>
Tue, 9 Feb 2010 17:42:11 +0000 (18:42 +0100)
committerJakob Leben <jleben@videolan.org>
Tue, 9 Feb 2010 17:42:11 +0000 (18:42 +0100)
modules/gui/qt4/components/playlist/selector.cpp

index 159cac33b19631328a0beba48bf963de8b1da154..43143f44ecb7ba99600d3a4ff84b5eb9bc5a9b61 100644 (file)
@@ -469,7 +469,8 @@ void PLSelector::drawBranches ( QPainter * painter, const QRect & rect, const QM
     if( !model()->hasChildren( index ) ) return;
     QStyleOption option;
     option.initFrom( this );
-    option.rect = rect;
+    option.rect = rect.adjusted( rect.width() - indentation(), 0, 0, 0 );
+
     /*option.state = QStyle::State_Children;
     if( isExpanded( index ) ) option.state |=  QStyle::State_Open;*/
     style()->drawPrimitive( isExpanded( index ) ?