void LibraryPage::addSelectionToDevice(const QString &udi) { QList<Song> songs=selectedSongs(); if (!songs.isEmpty()) { emit addToDevice(QString(), udi, songs); view->clearSelection(); } }
void LibraryPage::deleteSongs() { QList<Song> songs=selectedSongs(); if (!songs.isEmpty()) { if (MessageBox::Yes==MessageBox::warningYesNo(this, i18n("Are you sure you wish to delete the selected songs?\n\nThis cannot be undone."), i18n("Delete Songs"), StdGuiItem::del(), StdGuiItem::cancel())) { emit deleteSongs(QString(), songs); } view->clearSelection(); } }
void ShoutcastView::doubleClicked(const QModelIndex &) { MPD::instance()->addSongs(selectedSongs(), Config::instance()->enqueue()); }