[vlc-devel] commit: Qt: selector: correct expand-arrow position (Jakob Leben )

git version control git at videolan.org
Tue Feb 9 18:44:00 CET 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Tue Feb  9 18:42:11 2010 +0100| [3f26d384b5bac86b958623c5c80b1cc51ba3ddf8] | committer: Jakob Leben 

Qt: selector: correct expand-arrow position

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f26d384b5bac86b958623c5c80b1cc51ba3ddf8
---

 modules/gui/qt4/components/playlist/selector.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index 159cac3..43143f4 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -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 ) ?




More information about the vlc-devel mailing list