void PlaylistHistory::addToCurrent(const QList<QUrl> &filelist) { Playlist *playlist = current(); if (playlist != 0) playlist->append(filelist); else replaceCurrent(new Playlist(filelist)); }
Playlist OpenMediaFolderDialog::playlist() const { Playlist list; for (int i=0; i<d->ui.list->count(); ++i) { const auto item = d->ui.list->item(i); if (item->checkState() == Qt::Checked) list.append(item->data(Path).toString()); } return list; }