type = p_item->p_input->i_type;
current = iscurrent;
- char *psz_arturl = input_item_GetArtURL( p_item->p_input );
- if( ( current && psz_arturl ) &&
- !strncmp( psz_arturl, "file://", 7 ) )
- model->sendArt( qfu( psz_arturl ) ) ;
- else if( current )
- model->removeArt();
- free( psz_arturl );
-
strings.clear();
if( model->i_depth == 1 ) //left window for playlist etc.
/************************* Actions ******************************/
-void PLModel::sendArt( QString url )
-{
- QString arturl = url.replace( "file://",QString("" ) );
- emit artSet( arturl );
-}
-
-void PLModel::removeArt()
-{
- emit artSet( QString() );
-}
-
/**
* Deletion, here we have to do a ugly slow hack as we retrieve the full
* list of indexes to delete at once: when we delete a node and all of
int row, int column, const QModelIndex &target );
QStringList mimeTypes() const;
- void sendArt( QString url );
- void removeArt( );
-
int shownFlags() { return rootItem->i_showflags; }
private:
void addCallbacks();
int i_cached_id;
int i_cached_input_id;
signals:
- void artSet( QString );
void shouldRemove( int );
public slots:
void activateItem( const QModelIndex &index );