Ejemplo n.º 1
0
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;
    }
}
Ejemplo n.º 2
0
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;
    }
}