[vlc-devel] commit: qt4: don't sort playlist by default take two (Ilkka Ollakka )
git version control
git at videolan.org
Mon Aug 3 12:48:22 CEST 2009
vlc | branch: 1.0-bugfix | Ilkka Ollakka <ileoo at videolan.org> | Sun Aug 2 16:07:48 2009 +0300| [a2ecaa663f2837ab39d61cc8ddbe76cbf6a74ecf] | 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.
(Cherry-picked from commit 28b4ac7c728e115eeeb44be9a6046787c4f77d5a)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a2ecaa663f2837ab39d61cc8ddbe76cbf6a74ecf
---
.../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 5a65e81..c9e5550 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -62,7 +62,6 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
/* Create and configure the QTreeView */
view = new QVLCTreeView;
-
view->setModel( model );
view->setIconSize( QSize( 20, 20 ) );
view->setAlternatingRowColors( true );
@@ -72,6 +71,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