[vlc-devel] commit: qt4: don't sort playlist by default take two	(Ilkka Ollakka )
    git version control 
    git at videolan.org
       
    Sun Aug  2 17:52:57 CEST 2009
    
    
  
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Aug  2 16:07:48 2009 +0300| [28b4ac7c728e115eeeb44be9a6046787c4f77d5a] | committer: Ilkka Ollakka 
qt4: don't sort playlist by default take two
If you setSortingEnabled after setting model, it doesn't call sorting,
otherway around it does. Missed thatone on previous try.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28b4ac7c728e115eeeb44be9a6046787c4f77d5a
---
 .../gui/qt4/components/playlist/standardpanel.cpp  |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 51cb0f9..3178c7d 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -61,8 +61,6 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
 
     /* Create and configure the QTreeView */
     view = new QVLCTreeView;
-    view->header()->setSortIndicator( 0 , Qt::AscendingOrder );
-    view->setSortingEnabled( true );
     view->setModel( model );
     view->setIconSize( QSize( 20, 20 ) );
     view->setAlternatingRowColors( true );
@@ -72,6 +70,8 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
     view->setDragEnabled( true );
     view->setAcceptDrops( true );
     view->setDropIndicatorShown( true );
+    view->header()->setSortIndicator( -1 , Qt::AscendingOrder );
+    view->setSortingEnabled( true );
 
 
     getSettings()->beginGroup("Playlist");
    
    
More information about the vlc-devel
mailing list