Refactoring: Extract BaseTrackTableModel + BaseCoverArtDelegate#2538
Merged
Conversation
Contributor
Author
|
I guess it is better to integrate these changes before adding new features like the configurable background opacity for skins. |
Member
Member
|
Also, Mixxx segfaults when I try to load an external Serato Library. Here's a backtrace from gdb: |
- Reduce the hard-coded dependencies to other classes to be reusable for integrating external track collections - Send a single signal for marking rows as dirty or changed
Contributor
Author
|
The crash should be fixed, just a missing index validation. |
Contributor
Author
Holzhaus
approved these changes
Mar 14, 2020
Member
Holzhaus
left a comment
There was a problem hiding this comment.
I skimmed over the code and didn't spot any obvious issues. Both bugs (the segfault and the row background problem) are fixed. However, before we merge someone else should have a look at this, too.
Member
|
@mixxxdj/developers Can someone take a look? I'd merge this but since this is pretty big I want to make sure I didn't overlook something. |
Holzhaus
approved these changes
Apr 6, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Required for: #2545, #2524, #2282
I recommend to get this integrated into 2.3! Otherwise I expect a substantial amount of porting efforts in case of bug fixes in 2.3 that affect the table model and views.
BaseTrackTableModelfromBaseSqlTableModelBaseCoverArtDelegatefromCoverArtDelegateBaseCoverArtDelegateas a single signalBansheePlaylistModelThis PR lays the ground to reuse our table views for external libraries that are not populated from search queries executed on the internal database. As such it enables to provide different views on the internal track collection. Track objects are then still loaded from the internal database as before.
It includes an optimization of the communication between
CoverArtDelegateand the table view. Rows that have been marked as cache miss and need to be refreshed by the view are now sent byrowsChanged(QList<int> rows)all at once instead of one by one. This allows to refresh consecutive rows in the table view instead of only single cells.