Exemple #1
0
void
TrackProxyModel::setFilter( const QString& pattern )
{
    PlaylistInterface::setFilter( pattern );
    setFilterRegExp( pattern );

    emit filterChanged( pattern );
    emit trackCountChanged( trackCount() );
}
Exemple #2
0
 foreach (const QString &f, files) {
     m_playlist->addMedia(QMediaContent(QUrl::fromLocalFile(dir.absolutePath() + "/" + f)));
     emit tracksChanged(tracks());
     emit trackCountChanged(trackCount());
 }