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

Tooltips and CVS Export: Use BPM precision of four integer digits #3632

Merged
merged 5 commits into from
Feb 26, 2021

Conversation

daschuer
Copy link
Member

This is required to verify if a track is at a full 1/12 bpm.

The idea to use the tool-tips to show a higher precision was discussed here #2001
but it looks like it has slipped through the original review.

We want also full precision in cvs exports. This way we export the truth and not the optimized value for displaying purpose.

…s is required to verify if a track is at a full 1/12 bpm.
@daschuer daschuer mentioned this pull request Feb 13, 2021
@@ -16,6 +16,9 @@ class BaseTrackTableModel : public QAbstractTableModel, public TrackModel {
DISALLOW_COPY_AND_ASSIGN(BaseTrackTableModel);

public:
// This role is used for data export like in CSV files
static constexpr int kDataExportRole = Qt::UserRole + 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

The base class TrackModel already defines constants for. Qt::UserRole + 0 and Qt::UserRole + 1. Potential conflict?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not really, because it is used is a different context. However, I have moved it to TrackModel anyway, to avoid future confusion.

@daschuer
Copy link
Member Author

Done.

Copy link
Contributor

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

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

Thank you. LGTM

@uklotzde uklotzde merged commit 5932783 into mixxxdj:2.3 Feb 26, 2021
@daschuer daschuer deleted the bpm_precision branch September 26, 2021 17:42
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.

3 participants