-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add track move commands to controls library #13098
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR!
Please sign the Mixxx Contributor Agreement and comment here when you have done so. It gives us permission to distribute your contribution under the GPL v2 or later license and the Apple Mac App Store. It is also helpful for us to have contact information for contributors in case we may need it in the future.
Code LGTM, just a comment
src/library/librarycontrol.cpp
Outdated
emitKeyEvent(QKeyEvent{ | ||
QEvent::KeyPress, key, Qt::AltModifier, QString(), false, times}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately emitKeyEvent requires the library to be focused, which would limit the use cases (same with the current navigation controls, see #9294, #11285 and others).
Let's send the key event to m_pLibraryWidget
directly as this is the only widget that would accept this event (check if is not null)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, I couldn't test yet, does the code look right?
Sure. I believe I signed it already, though. |
9773a31
to
cb745eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just the names need to be changed.
pre-commit is complaining (didn't take a closer look) |
So I was finally able to test and |
Sorry, my mistake: I'll prepare a commit that allows to send the keypress to the current view (if it's a WTrackTableView). |
If you adopt my code suggestion, then rebase (and squash commits) onto |
@nlw0 Do you have time to rebase, cherry-pick and squash as I suggested above? Let us know if you don't, then I'd take over soonish in order to get this into 2.5 along with the keyboard improvement. |
Hi, I can look into it again, but I wasn't able to use that commit, how do I check it out? On GitHub it says |
The SlotMoveTrack commands don't seem to be on the 2.5 branch yet, should I wait for another branch to be merged first? |
yes, the Alt moves are available in 2.5 https://github.com/mixxxdj/mixxx/blob/2.5/src/widget/wtracktableview.cpp#L867 I think you need to |
…rary widget. Co-authored-by: ronso0 <[email protected]>
7abec53
to
e1d6fcc
Compare
All right I haven''t tested yet but here it is. Hope I didn't mess up anything. |
Yep, looks good, thank you! |
Could you also take care of documenting the new controls in the manual? : ) |
Add track move to controls library by emulating alt+up/down. Depends on #13092