]> git.sesse.net Git - vlc/commitdiff
Cosmetics
authorClément Stenac <zorglub@videolan.org>
Sat, 26 Aug 2006 21:33:56 +0000 (21:33 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 26 Aug 2006 21:33:56 +0000 (21:33 +0000)
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/dialogs/playlist.cpp
modules/gui/qt4/playlist_model.cpp

index b237baccf16b76d83a1a8bba362dc002b94a64b1..c080e29b6e811766d02b505f725752480aedebb6 100644 (file)
@@ -48,7 +48,7 @@ StandardPLPanel::StandardPLPanel( QWidget *_parent, intf_thread_t *_p_intf,
     view->setModel(model);
     view->setIconSize( QSize(20,20) );
     view->setAlternatingRowColors( true );
-    view->header()->resizeSection( 0, 300 );
+    view->header()->resizeSection( 0, 230 );
     view->header()->setSortIndicatorShown( true );
     view->header()->setClickable( true );
     view->setSelectionMode( QAbstractItemView::ExtendedSelection );
index d1d965101b3a68b87927c2414c79f87dbc55d66e..0e1d996cecc5927f45d6bfbba371f90c21c14ab3 100644 (file)
@@ -41,8 +41,11 @@ PlaylistDialog::PlaylistDialog( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     selector = new PLSelector( centralWidget(), p_intf, THEPL );
     selector->setMaximumWidth( 140 );
 
+    playlist_item_t *p_root = playlist_GetPreferredNode( THEPL,
+                                                THEPL->p_local_category );
+
     rightPanel = qobject_cast<PLPanel *>(new StandardPLPanel( centralWidget(),
-                              p_intf, THEPL, THEPL->p_local_category ) );
+                              p_intf, THEPL, p_root ) );
     connect( selector, SIGNAL( activated( int ) ),
              rightPanel, SLOT( setRoot( int ) ) );
 
@@ -50,7 +53,7 @@ PlaylistDialog::PlaylistDialog( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     layout->addWidget( selector, 0 );
     layout->addWidget( rightPanel, 10 );
     centralWidget()->setLayout( layout );
-    readSettings( "playlist", QSize( 600,500 ) );
+    readSettings( "playlist", QSize( 600,700 ) );
 }
 
 PlaylistDialog::~PlaylistDialog()
index 5ded54d7de18c93eb8ef6cbca5f41e00d4a148ba..291bf6fcd5241b53fc11b9ba3214abe7e4024042 100644 (file)
@@ -176,7 +176,6 @@ PLModel::~PLModel()
 
 void PLModel::addCallbacks()
 {
-     fprintf( stderr, "[%i] Adding callbacks\n", i_depth );
     /* Some global changes happened -> Rebuild all */
     var_AddCallback( p_playlist, "intf-change", PlaylistChanged, this );
     /* We went to the next item */
@@ -189,7 +188,6 @@ void PLModel::addCallbacks()
 
 void PLModel::delCallbacks()
 {
-     fprintf( stderr, "[%i] Rming callbacks\n", i_depth );
     var_DelCallback( p_playlist, "item-change", ItemChanged, this );
     var_DelCallback( p_playlist, "playlist-current", PlaylistNext, this );
     var_DelCallback( p_playlist, "intf-change", PlaylistChanged, this );
@@ -668,12 +666,10 @@ void PLModel::sort( int column, Qt::SortOrder order )
 void PLModel::search( QString search_text )
 {
     /** \todo Fire the search with a small delay ? */
-    fprintf( stderr, "Searching\n" );
     PL_LOCK;
     playlist_item_t *p_root = playlist_ItemGetById( p_playlist,rootItem->i_id );
     assert( p_root );
     char *psz_name = search_text.toUtf8().data();
-    fprintf( stderr, "Searching %s\n", psz_name );
     playlist_LiveSearchUpdate( p_playlist , p_root, psz_name );
     PL_UNLOCK;
     rebuild();