Use override

This commit is contained in:
Jonas Kvinge
2020-06-15 21:55:05 +02:00
parent 72ede666d4
commit 651020388d
271 changed files with 1199 additions and 1231 deletions

View File

@@ -49,7 +49,7 @@ class PlaylistListModel : public QStandardItemModel {
Role_PlaylistId
};
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
// These icons will be used for newly created playlists and folders.
// The caller will need to set these icons on existing items if there are any.
@@ -77,7 +77,7 @@ class PlaylistListModel : public QStandardItemModel {
QStandardItem *NewPlaylist(const QString &name, int id) const;
// QStandardItemModel
bool setData(const QModelIndex &index, const QVariant &value, int role);
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
signals:
void PlaylistPathChanged(int id, const QString &new_path);