void StandardPLPanel::handleExpansion( const QModelIndex &index )
{
QModelIndex parent;
- view->scrollTo( index, QAbstractItemView::EnsureVisible );
if( model->isCurrent( index ) )
{
+ view->scrollTo( index, QAbstractItemView::EnsureVisible );
parent = index;
while( parent.isValid() )
{
{
i_showflags = config_GetInt( model->p_intf , "qt-pl-showflags" );
updateview();
+ } else {
+ i_showflags = parentItem->i_showflags;
+ //Add empty string and update() handles data appending
+ strings.append( qtr("") );
}
}
{
strings.clear();
+ if( model->i_depth == 1 ) //left window for playlist etc.
+ {
+ strings.append( qtr("") );
+ return;
+ }
+
for( int i_index=1; i_index <= VLC_META_ENGINE_MB_TRM_ID; i_index = i_index*2 )
{
if( i_showflags & i_index )
{
char psz_duration[MSTRTIME_MAX_SIZE];
assert( p_item->p_input->i_id == i_input_id );
- strings.clear();
type = p_item->p_input->i_type;
current = iscurrent;
else if( current )
model->removeArt();
+ strings.clear();
+
if( model->i_depth == 1 ) //left window for playlist etc.
{
strings.append( p_item->p_input->psz_name );
{
ADD_META( p_item->p_input->p_meta->psz_title );
} else {
- ADD_META( p_item->p_input->psz_name );
+ strings.append( qfu( p_item->p_input->psz_name ) );
}
break;
case VLC_META_ENGINE_DESCRIPTION:
int PLModel::columnCount( const QModelIndex &i) const
{
- if( i_depth == 1 ) return 1;
return rootItem->strings.count();
}