DCONNECT( THEMIM, leafBecameParent( int ),
this, browseInto( int ) );
- CONNECT( model, currentChanged( const QModelIndex& ),
+ CONNECT( model, currentIndexChanged( const QModelIndex& ),
this, handleExpansion( const QModelIndex& ) );
- CONNECT( model, rootChanged(), this, browseInto() );
+ CONNECT( model, rootIndexChanged(), this, browseInto() );
- setRoot( p_root, false );
+ setRootItem( p_root, false );
}
StandardPLPanel::~StandardPLPanel()
/* Set the root of the new Playlist */
/* This activated by the selector selection */
-void StandardPLPanel::setRoot( playlist_item_t *p_item, bool b )
+void StandardPLPanel::setRootItem( playlist_item_t *p_item, bool b )
{
#ifdef MEDIA_LIBRARY
if( b )
currentView->setModel( mlmodel );
}
else
+#else
+ Q_UNUSED( b );
#endif
{
msg_Dbg( p_intf, "Normal PL/ML or SD" );
mod = model;
if( currentView->model() != mod )
currentView->setModel( mod );
+#else
+ Q_UNUSED( b_ml );
+ if( currentView->model() != model )
+ currentView->setModel( model );
#endif
}
else if( currentView == treeView )
showView( LIST_VIEW );
else if( currentView == listView )
+#ifndef NDEBUG
showView( PICTUREFLOW_VIEW );
else if( currentView == picFlowView )
+#endif
showView( ICON_VIEW );
else
assert( 0 );