void TrackProxyModel::setFilter( const QString& pattern ) { PlaylistInterface::setFilter( pattern ); setFilterRegExp( pattern ); emit filterChanged( pattern ); emit trackCountChanged( trackCount() ); }
foreach (const QString &f, files) { m_playlist->addMedia(QMediaContent(QUrl::fromLocalFile(dir.absolutePath() + "/" + f))); emit tracksChanged(tracks()); emit trackCountChanged(trackCount()); }