void PlayListWidget::onSelectionChanged(const QItemSelection & s, const QItemSelection & d) { Q_UNUSED(d); QModelIndexList idx = s.indexes(); if (idx.count() > 0) fileSelected(fileForIndex(idx.front())); else fileSelected(MediaFileRef()); }
void PlayListWidget::clearPlayList() { play_list->clear(); enableNext(false); fileSelected(MediaFileRef()); }
void MediaController::stopped() { info_label->setText(i18n("Ready to play")); current_file = MediaFileRef(QString()); }