-
-
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
Only show the date in Date Added / Last Played columns #3945
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.
Why not use the full date/time for the tooltip and only the date for regular cell content?
good idea! done. |
@@ -625,7 +625,11 @@ QVariant BaseTrackTableModel::roleValue( | |||
VERIFY_OR_DEBUG_ASSERT(rawValue.canConvert<QDateTime>()) { | |||
return QVariant(); | |||
} | |||
return mixxx::localDateTimeFromUtc(rawValue.toDateTime()); | |||
QDateTime dt = mixxx::localDateTimeFromUtc(rawValue.toDateTime()); |
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.
You need to enclose the case block in a scope now, like the next one. C++ weirdness.
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.
ah yes of course
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, a really useful tweak! LGTM
This has annoyed me for a while -- I've never wanted to know what time of day I added a track, and the column itself says "date", not "datetime". This makes the columns much more manageable.