-
-
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
Tooltips and CVS Export: Use BPM precision of four integer digits #3632
Conversation
…s is required to verify if a track is at a full 1/12 bpm.
src/library/basetracktablemodel.h
Outdated
@@ -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; |
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.
The base class TrackModel already defines constants for. Qt::UserRole + 0 and Qt::UserRole + 1. Potential conflict?
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.
Not really, because it is used is a different context. However, I have moved it to TrackModel anyway, to avoid future confusion.
Done. |
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.
Thank you. LGTM
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.