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

(fix) use 'played' track color also for played/play count delegate #13538

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Aug 5, 2024

PlayCountDelegate was not picking up the 'played' track color like other delegate(s).
(tick the played checkbox and its label color wouldn't change to grey)

This adds CheckboxDelegate base class (and removes now obsolete PlayCountDelegate).
It's used for BPMDelegate and the play count delegate, which allows moving redundant paintItem() code to CheckboxDelegate.

Add CheckboxDelegate base class, use it for BPMDelegate and play count delegate.
This allows moving redundant paintItem() code to CheckboxDelegate, and thereby
removing the PlayCountDelegate.
@ronso0 ronso0 added this to the 2.5.0 milestone Aug 5, 2024
@ronso0 ronso0 removed the build label Aug 5, 2024
@ronso0 ronso0 force-pushed the played-delegate-color-fix branch from d1cb360 to 4771726 Compare August 5, 2024 12:08
@github-actions github-actions bot added the build label Aug 5, 2024
@JoergAtGithub
Copy link
Member

Works as expected!

@JoergAtGithub JoergAtGithub changed the base branch from main to 2.5 August 6, 2024 18:29
@JoergAtGithub JoergAtGithub merged commit da02fcc into mixxxdj:2.5 Aug 6, 2024
13 checks passed
@JoergAtGithub
Copy link
Member

Thank you!

@ronso0 ronso0 deleted the played-delegate-color-fix branch August 6, 2024 20:36
ronso0 added a commit to ronso0/mixxx that referenced this pull request Aug 8, 2024
ronso0 added a commit to ronso0/mixxx that referenced this pull request Aug 8, 2024
Swiftb0y added a commit that referenced this pull request Aug 12, 2024
(fix) pre-commit/qsscheck: add c++ ObjectNames set via variable in #13538
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants