Skip to content

Commit

Permalink
Move default implementation of createPlaylistModelForPlaylist() to cp…
Browse files Browse the repository at this point in the history
…p file
  • Loading branch information
daschuer committed Jun 14, 2023
1 parent 6385f30 commit 324bf99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 7 additions & 0 deletions src/library/baseexternallibraryfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,10 @@ void BaseExternalLibraryFeature::appendTrackIdsFromRightClickIndex(
trackIds->append(trackId);
}
}

std::unique_ptr<BaseSqlTableModel>
BaseExternalLibraryFeature::createPlaylistModelForPlaylist(
const QString& playlist) {
Q_UNUSED(playlist);
return {};
}
7 changes: 2 additions & 5 deletions src/library/baseexternallibraryfeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ class BaseExternalLibraryFeature : public LibraryFeature {
void onRightClickChild(const QPoint& globalPos, const QModelIndex& index) override;

protected:
// Must be implemented by external Libraries copied to Mixxx DB
// Must be re-implemented by external Libraries copied to Mixxx DB
virtual std::unique_ptr<BaseSqlTableModel> createPlaylistModelForPlaylist(
const QString& playlist) {
Q_UNUSED(playlist);
return {};
}
const QString& playlist);
// Must be implemented by external Libraries not copied to Mixxx DB
virtual void appendTrackIdsFromRightClickIndex(QList<TrackId>* trackIds, QString* pPlaylist);

Expand Down

0 comments on commit 324bf99

Please sign in to comment.