vlc_linux/vlc-3.0.16/modules/gui/qt/components/playlist/playlist_model.cpp
/* Return the index of a given item */
Return the index of a given item
Return the index of a given item
QModelIndex PLModel::index( PLItem *item, int column ) const
{
    if( !item ) return QModelIndex();
    AbstractPLItem *parent = item->parent();
    if( parent )
        return createIndex( parent->lastIndexOf( item ),
                            column, item );
    return QModelIndex();
}
QModelIndex PLModel :: index ( PLItem * item , int column ) const { if ( ! item ) return QModelIndex ( ) ; AbstractPLItem * parent = item -> parent ( ) ; if ( parent ) return createIndex ( parent -> lastIndexOf ( item ) , column , item ) ; return QModelIndex ( ) ; }
Return the index of a given item
Return the index of a given item