void VimeoPlaylistDialog::onTabIndexChanged(int index) { if (index == 1) { showNewPlaylist(); } else { showPlaylists(); } }
void DailymotionPlaylistDialog::onTabIndexChanged(int index) { if (index == 1) { showNewPlaylist(); } else { showPlaylists(); } }
void PluginArtistWindow::showWindow(const QModelIndex &index) { if (isBusy()) { return; } switch (index.row()) { case 0: showTracks(); break; case 1: showPlaylists(); break; default: break; } }
void VimeoPlaylistDialog::onModelStatusChanged(QVimeo::ResourcesRequest::Status status) { switch (status) { case QVimeo::ResourcesRequest::Loading: showProgressIndicator(); return; case QVimeo::ResourcesRequest::Failed: QMessageBox::critical(this, tr("Error"), m_model->errorString()); break; default: break; } hideProgressIndicator(); if (m_view->isVisible()) { showPlaylists(); } }
void PluginView::onItemActivated(const QModelIndex &index) { const QVariantMap type = index.data(PluginNavModel::ValueRole).toMap(); if (type.isEmpty()) { showSearchDialog(); } else if (type.value("type") == Resources::CATEGORY) { showCategories(index.data(PluginNavModel::NameRole).toString(), type.value("id").toString()); } else if (type.value("type") == Resources::PLAYLIST) { showPlaylists(index.data(PluginNavModel::NameRole).toString(), type.value("id").toString()); } else if (type.value("type") == Resources::ARTIST) { showArtists(index.data(PluginNavModel::NameRole).toString(), type.value("id").toString()); } else { showTracks(index.data(PluginNavModel::NameRole).toString(), type.value("id").toString()); } }
void VimeoUserWindow::showWindow(const QModelIndex &index) { if (isBusy()) { return; } switch (index.row()) { case 0: showUploads(); break; case 1: showFavourites(); break; case 2: showPlaylists(); break; case 3: showSubscriptions(); break; default: break; } }
void SoundCloudView::onItemActivated(const QModelIndex &index) { switch (index.row()) { case 0: showAccounts(); break; case 1: showSearchDialog(); break; case 2: showTracks(); break; case 3: showFavourites(); break; case 4: showPlaylists(); break; case 5: showFollowings(); break; default: break; } }