Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrackModel::getTrackUrl() #4477

Merged
merged 3 commits into from
Oct 24, 2021
Merged

TrackModel::getTrackUrl() #4477

merged 3 commits into from
Oct 24, 2021

Conversation

uklotzde
Copy link
Contributor

One more tiny step to decouple the internal database from the UI.

@Be-ing
Copy link
Contributor

Be-ing commented Oct 23, 2021

I don't think there's a harm in doing this but the legacy LibraryFeatures won't be used with Qt6 so I'm not sure what the benefit is?

@@ -115,14 +125,12 @@ class TrackModel {
// empty list if the track ID is not present in the result set.
virtual const QVector<int> getTrackRows(TrackId trackId) const = 0;

bool isTrackModel() { return true;}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phew that's some dusty old code... last touched in 2009

@Be-ing Be-ing merged commit 181988d into mixxxdj:main Oct 24, 2021
@uklotzde
Copy link
Contributor Author

I don't think there's a harm in doing this but the legacy LibraryFeatures won't be used with Qt6 so I'm not sure what the benefit is?

The TrackModel is the central hub. We need to introduce bridges and adapters if we plan to decouple peripheral components like the analyzers from dependencies like the internal TrackId.

@uklotzde uklotzde deleted the trackmodel-url branch October 25, 2021 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants