[vlc-devel] commit: Turn off sorting on startup fix of #1529 (Lukas Durfina )
git version control
git at videolan.org
Mon Apr 7 07:52:53 CEST 2008
vlc | branch: master | Lukas Durfina <lukas.durfina at gmail.com> | Sat Apr 5 16:31:43 2008 +0200| [9a6d4ec468caec1b67a49f060b4a7a24294e420b]
Turn off sorting on startup fix of #1529
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a6d4ec468caec1b67a49f060b4a7a24294e420b
---
.../gui/qt4/components/playlist/standardpanel.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index be76a24..fc2272c 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -60,11 +60,12 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
/* Create and configure the QTreeView */
view = new QVLCTreeView( 0 );
+ view->setSortingEnabled( true );
+ view->sortByColumn( -1, Qt::AscendingOrder );
view->setModel(model);
view->setIconSize( QSize( 20, 20 ) );
view->setAlternatingRowColors( true );
view->setAnimated( true );
- view->setSortingEnabled( true );
view->setSelectionMode( QAbstractItemView::ExtendedSelection );
view->setDragEnabled( true );
view->setAcceptDrops( true );
More information about the vlc-devel
mailing list