#include <QStackedLayout>
#include <QSignalMapper>
#include <QSettings>
-#include <QScrollBar>
#include <assert.h>
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" );
if( currentView->model() != mod )
currentView->setModel( mod );
#else
+ Q_UNUSED( b_ml );
if( currentView->model() != model )
currentView->setModel( model );
#endif
return PICTUREFLOW_VIEW;
}
-int StandardPLPanel::getScrollBarsSize() const
-{
- /* FIXME: should return a set in case of different widths */
- return currentView->verticalScrollBar()->sizeHint().width();
-}
-
void StandardPLPanel::cycleViews()
{
if( currentView == iconView )
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 );