From 655d7e1989ffeba39d92742a6a6bacb6a4b771f5 Mon Sep 17 00:00:00 2001 From: "Krzysztof A. Sobiecki" Date: Mon, 27 Jan 2014 13:46:43 +0100 Subject: [PATCH] CopyToDeviceSlot is a wrong name --- src/podcasts/podcastservice.cpp | 12 ++++++------ src/podcasts/podcastservice.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/podcasts/podcastservice.cpp b/src/podcasts/podcastservice.cpp index 88bf1ac94..fe5a15c34 100644 --- a/src/podcasts/podcastservice.cpp +++ b/src/podcasts/podcastservice.cpp @@ -118,15 +118,15 @@ QStandardItem* PodcastService::CreateRootItem() { return root_; } -void PodcastService::CopyToDeviceSlot() { +void PodcastService::CopyToDevice() { if (selected_episodes_.isEmpty() && explicitly_selected_podcasts_.isEmpty()) { - CopyToDeviceSlot(backend_->GetNewDownloadedEpisodes()); + CopyToDevice(backend_->GetNewDownloadedEpisodes()); } else { - CopyToDeviceSlot(selected_episodes_, explicitly_selected_podcasts_); + CopyToDevice(selected_episodes_, explicitly_selected_podcasts_); } } -void PodcastService::CopyToDeviceSlot(const PodcastEpisodeList& episodes_list) { +void PodcastService::CopyToDevice(const PodcastEpisodeList& episodes_list) { QList songs; Podcast podcast; for (const auto& episode : episodes_list) { @@ -140,7 +140,7 @@ void PodcastService::CopyToDeviceSlot(const PodcastEpisodeList& episodes_list) { organise_dialog_->show(); } -void PodcastService::CopyToDeviceSlot(const QModelIndexList& episode_indexes, +void PodcastService::CopyToDevice(const QModelIndexList& episode_indexes, const QModelIndexList& podcast_indexes) { PodcastEpisode episode_tmp; QList songs; @@ -334,7 +334,7 @@ void PodcastService::ShowContextMenu(const QPoint& global_pos) { this, SLOT(DeleteDownloadedData())); copy_to_device_ = context_menu_->addAction( IconLoader::Load("multimedia-player-ipod-mini-blue"), tr("Copy to device..."), - this, SLOT(CopyToDeviceSlot())); + this, SLOT(CopyToDevice())); remove_selected_action_ = context_menu_->addAction( IconLoader::Load("list-remove"), tr("Unsubscribe"), this, SLOT(RemoveSelectedPodcast())); diff --git a/src/podcasts/podcastservice.h b/src/podcasts/podcastservice.h index 87afe2d35..92c864b11 100644 --- a/src/podcasts/podcastservice.h +++ b/src/podcasts/podcastservice.h @@ -89,9 +89,9 @@ private slots: void CurrentSongChanged(const Song& metadata); - void CopyToDeviceSlot(); - void CopyToDeviceSlot(const PodcastEpisodeList& episodes_list); - void CopyToDeviceSlot(const QModelIndexList& episode_indexes, + void CopyToDevice(); + void CopyToDevice(const PodcastEpisodeList& episodes_list); + void CopyToDevice(const QModelIndexList& episode_indexes, const QModelIndexList& podcast_indexes); private: