void CrateFeature::slotCrateTableChanged(int crateId) { //qDebug() << "slotPlaylistTableChanged() playlistId:" << playlistId; clearChildModel(); m_lastRightClickedIndex = constructChildModel(crateId); // Switch the view to the crate. m_crateTableModel.setTableModel(crateId); // Update selection emit(featureSelect(this, m_lastRightClickedIndex)); }
void PlaylistFeature::slotPlaylistTableChanged(int playlistId) { if (!m_pPlaylistTableModel) { return; } //qDebug() << "slotPlaylistTableChanged() playlistId:" << playlistId; enum PlaylistDAO::HiddenType type = m_playlistDao.getHiddenType(playlistId); if (type == PlaylistDAO::PLHT_NOT_HIDDEN || type == PlaylistDAO::PLHT_UNKNOWN) { // In case of a deleted Playlist clearChildModel(); m_lastRightClickedIndex = constructChildModel(playlistId); } }
void SetlogFeature::slotPlaylistTableRenamed(int playlistId, QString /* a_strName */) { if (!m_pPlaylistTableModel) { return; } //qDebug() << "slotPlaylistTableChanged() playlistId:" << playlistId; enum PlaylistDAO::HiddenType type = m_playlistDao.getHiddenType(playlistId); if (type == PlaylistDAO::PLHT_SET_LOG || type == PlaylistDAO::PLHT_UNKNOWN) { // In case of a deleted Playlist clearChildModel(); m_lastRightClickedIndex = constructChildModel(playlistId); if (type != PlaylistDAO::PLHT_UNKNOWN) { activatePlaylist(playlistId); } } }
void SetlogFeature::slotPlaylistTableChanged(int playlistId) { if (!m_pPlaylistTableModel) { return; } //qDebug() << "slotPlaylistTableChanged() playlistId:" << playlistId; PlaylistDAO::HiddenType type = m_playlistDao.getHiddenType(playlistId); if (type == PlaylistDAO::PLHT_SET_LOG || type == PlaylistDAO::PLHT_UNKNOWN) { // In case of a deleted Playlist clearChildModel(); m_lastRightClickedIndex = constructChildModel(playlistId); if (type != PlaylistDAO::PLHT_UNKNOWN) { // Switch the view to the playlist. m_pPlaylistTableModel->setTableModel(playlistId); // Update selection emit(featureSelect(this, m_lastRightClickedIndex)); } } }
void CrateFeature::slotCrateTableChanged(int crateId) { //qDebug() << "slotCrateTableChanged() crateId:" << crateId; clearChildModel(); m_lastRightClickedIndex = constructChildModel(crateId); }