Add default to switch

This commit is contained in:
Jonas Kvinge
2024-06-12 17:41:17 +02:00
parent 7b43a94055
commit 05358cdfe4
7 changed files with 34 additions and 9 deletions

View File

@@ -342,6 +342,8 @@ QVariant Playlist::data(const QModelIndex &idx, int role) const {
case Column_HasCUE: return song.has_cue();
default: break;
}
return QVariant();

View File

@@ -203,6 +203,9 @@ void PlaylistListContainer::RecursivelySetIcons(QStandardItem *parent) const {
case PlaylistListModel::Type_Playlist:
child->setIcon(model_->playlist_icon());
break;
default:
break;
}
}
@@ -423,6 +426,9 @@ void PlaylistListContainer::Delete() {
RecursivelyFindPlaylists(idx, &ids);
folders_to_delete << idx;
break;
default:
break;
}
}
@@ -461,6 +467,8 @@ void PlaylistListContainer::RecursivelyFindPlaylists(const QModelIndex &parent,
RecursivelyFindPlaylists(parent.model()->index(i, 0, parent), ids);
}
break;
default:
break;
}
}

View File

@@ -117,6 +117,9 @@ void PlaylistListModel::AddRowItem(QStandardItem *item, const QString &parent_pa
AddRowItem(child_item, parent_path);
}
break;
default:
break;
}
}
@@ -139,6 +142,9 @@ void PlaylistListModel::RowsAboutToBeRemoved(const QModelIndex &parent, const in
case Type_Folder:
break;
default:
break;
}
}
@@ -228,6 +234,9 @@ bool PlaylistListModel::setData(const QModelIndex &idx, const QVariant &value, i
// Walk all the children and modify their paths.
UpdatePathsRecursive(idx);
break;
default:
break;
}
return true;